Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0007498Openbravo ERP03. Procurement managementpublic2009-02-11 12:482009-03-18 11:02
sureshbabu 
alostale 
urgentmajoralways
closedfixed 
20rPath Linux
2.50alpha-r10 
2.50beta 
Core
No
0007498: System wrongly creates new PO id, when the user comes back and changes the BP after entering the line item details
System wrongly creates new purchase order id, when the user comes back and changes the Business partner and clicks the line item tab without clicking the save button, after entering the line item details.

 
    * Login as userA
    * Go to Procurement management->Transactions->Purchase Order
    * Click New and select BP: Vendor A
    * Move to tab Lines and click New and select Product:RMA
    * Fill in Ordered quantity= 1
    * Move to header and change the BP:Vendor B, without clicking the save button click the line tab.
    * A message will show up. Click Cancel
    * Click again lines

What it happens is that when changing the bpartner the application thinks it is a new record, so if you click OK you discard the action but if you click cancel it creates a new one


Actual Result: New PO is created with the same Header details and Line item details will be blank.
No tags attached.
Issue History
2009-02-11 12:48sureshbabuNew Issue
2009-02-11 12:48sureshbabuAssigned To => rafaroda
2009-02-17 18:41psarobeProposed Solution updated
2009-02-17 18:50psarobePrioritynormal => urgent
2009-02-17 18:50psarobeStatusnew => scheduled
2009-02-17 18:50psarobeAssigned Torafaroda => alostale
2009-02-17 18:50psarobefix_in_branch => trunk
2009-02-19 14:37alostaleNote Added: 0013741
2009-02-19 18:14alostaleNote Added: 0013756
2009-02-19 18:15svnbotCheckin
2009-02-19 18:15svnbotNote Added: 0013757
2009-02-19 18:15svnbotStatusscheduled => resolved
2009-02-19 18:15svnbotResolutionopen => fixed
2009-02-19 18:15svnbotsvn_revision => 13417
2009-02-26 09:30sureshbabuRegression testing => No
2009-02-26 09:30sureshbabuStatusresolved => closed
2009-02-26 09:30sureshbabuNote Added: 0014084
2009-02-26 09:30sureshbabuFixed in Version => trunk
2009-03-18 11:02anonymoussf_bug_id0 => 2691380

Notes
(0013741)
alostale   
2009-02-19 14:37   
This is not only related to Central Changes. This flow also fails:
-Once you have changed the BP in the header click on save.
-A correct error message is shown
-Notice that the document no is not the one that it should be but a new one: <1234>. Which is the same problem as described above.
(0013756)
alostale   
2009-02-19 18:14   
The problem is that javasource.javaxml file was changed in central changes control project merge (r10428) making the new control not to work properly.
(0013757)
svnbot   
2009-02-19 18:15   
Repository: openbravo
Revision: 13417
Author: alostale
Date: 2009-02-19 18:15:35 +0100 (Thu, 19 Feb 2009)

fixed bug 0007498: System wrongly creates new PO id, when the user comes back and changes the BP after entering the line item details

---
U trunk/src-wad/src/org/openbravo/wad/javasource.javaxml
---

https://dev.openbravo.com/websvn/openbravo/?rev=13417&sc=1 [^]
(0014084)
sureshbabu   
2009-02-26 09:30   
Retested in context http://79.125.56.185/openbravotrunk [^]

Now the system not allowing the user to complete the PO, after the BP has been changed.

Now throwing error as " ERROR: Cannot change bussiness partner or price list if there are lines
 "