Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0005603Openbravo ERP06. Material requirement planning (MRP)public2008-10-21 09:432009-04-21 11:04
RenateNieuwkoop 
AinhoaPagola 
normalminoralways
closedfixed 
5
2.40beta 
 
Core
No
0005603: Purchasing Plan: Purchase Orders created are in locked status
Material Requirement Planning (MRP) || Transactions || Purchasing Plan

When you run the Purchasing plan and the outcome is suggested purchase orders, when you click 'Create Purchase Orders' the actual Purchase Order is created.

The Purchase Order is not in draft status, but in locked status. So you first have to unlock it. It has happened to me during teaching class, I saw it happened to the students also and Josep Tarbal who was teaching had the same result.
Make sure that the created Purchase Order is in 'draft' status
comsup_sprint3
depends on backport 0005668 closed AinhoaPagola Purchasing Plan: Purchase Orders created are in locked status 
Issue History
2008-10-21 09:43RenateNieuwkoopNew Issue
2008-10-21 09:43RenateNieuwkoopAssigned To => cromero
2008-10-21 09:43RenateNieuwkoopsf_bug_id0 => 2183860
2008-10-27 10:25psarobeStatusnew => scheduled
2008-10-27 10:25psarobeAssigned Tocromero => gorkaion
2008-10-27 10:25psarobefix_in_branch => trunk
2008-12-18 19:00AinhoaPagolaAssigned Togorkaion => AinhoaPagola
2008-12-22 12:52svnbotCheckin
2008-12-22 12:52svnbotNote Added: 0011647
2008-12-22 12:52svnbotStatusscheduled => resolved
2008-12-22 12:52svnbotResolutionopen => fixed
2008-12-22 12:52svnbotsvn_revision => 11456
2008-12-22 12:56AinhoaPagolaNote Added: 0011648
2008-12-23 12:33AinhoaPagolaTag Attached: comsup_sprint3
2009-01-27 11:35AinhoaPagolaNote Added: 0012675
2009-01-27 11:44svnbotCheckin
2009-01-27 11:44svnbotNote Added: 0012678
2009-01-27 11:44svnbotsvn_revision11456 => 12306
2009-04-21 11:04psarobeStatusresolved => closed

Notes
(0011647)
svnbot   
2008-12-22 12:52   
Repository: openbravo
Revision: 11456
Author: AinhoaPagola
Date: 2008-12-22 12:52:49 +0100 (Mon, 22 Dec 2008)

Fixes bug 0005603. Purchasing plan: Purchase order created are in locked status.

---
U trunk/src-db/database/model/functions/MRP_PURCHASEORDER.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=11456&sc=1 [^]
(0011648)
AinhoaPagola   
2008-12-22 12:56   
The problem is that the purchase orders are created with the organization that the user has logged in with. The purchase orders should be created with the organization in the header.

This way, f you log in with * organization, the PO are created with * organization, which is wrong. When you try to access them they are blocked.
(0012675)
AinhoaPagola   
2009-01-27 11:35   
There is still an open issue with this defect. It is described in the backport. The created PO are in draft status but when the complete button is clicked the options offered are "unlock or process" instead of complete option.

The solution is to set "processing" column to 'N' in the inserts into c_order in the mrp_purchaseorder function.
(0012678)
svnbot   
2009-01-27 11:44   
Repository: openbravo
Revision: 12306
Author: AinhoaPagola
Date: 2009-01-27 11:44:31 +0100 (Tue, 27 Jan 2009)

Fixes bug 0005603 Purchase Orders created in locked status. Processing column is set to 'N' when inserts are done into c_order in mrp_purchaseorder function.

---
U trunk/src-db/database/model/functions/MRP_PURCHASEORDER.xml
---

https://dev.openbravo.com/websvn/openbravo/?rev=12306&sc=1 [^]