Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0008913Openbravo ERP03. Procurement managementpublic2009-03-24 12:192009-05-15 11:16
networkb 
vinothbabu 
immediatemajoralways
closedfixed 
5
2.40MP2 
2.35MP13 
Core
No
0008913: The documentno of and order shouldn't change without modify the document type
When you have an order saved but without completed, if you change the organization
the documentno is modified. It shouldn't be modified if the document type is not modified.
Besides, if you select again the original organization (the original document type) the documentno takes the next documentno and it should take the documentno used when the order was saved.
It happens in purchese orders and sales order.
-Create an order (sales or purchase).
-Save it
-Change the organization.
-You will see that the documentno changes and the document type has not change what is bad.
-Select again the organization used when the order was saved.
-The documentno is not changed to the documentno used previously
The behavior has to be the same as it happens in the sales invoice:
1. Only when the document type changes the documentno has to change. In this case when changing the organization the document type doesn't change so it doesn't make sense the current behavior
No tags attached.
blocks defect 0008249 closed sathiyan The documentno of and order shouldn't change without modify the document type 
Issue History
2009-05-05 15:26psarobeTypedefect => backport
2009-05-05 15:26psarobefix_in_branch => 2.3x
2009-05-06 07:44sathiyanAssigned Tosathiyan => jayakumar
2009-05-06 15:47vinothbabuAssigned Tojayakumar => vinothbabu
2009-05-06 15:51hgbotCheckin
2009-05-06 15:51hgbotNote Added: 0016105
2009-05-06 15:51hgbotStatusscheduled => resolved
2009-05-06 15:51hgbotResolutionopen => fixed
2009-05-06 15:51hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/21739fc08fbb96286eca466ca69092924936eb27 [^] => http://code.openbravo.com/erp/stable/2.3x/rev/361416c2ee003351cb9e6cb9edeaf0fed6b24986 [^]
2009-05-12 10:25psarobeFixed in Version => 2.35MP13
2009-05-15 11:16sureshbabuStatusresolved => closed
2009-05-15 11:16sureshbabuNote Added: 0016372

Notes
(0016105)
hgbot   
2009-05-06 15:51   
Repository: erp/stable/2.3x
Changeset: 361416c2ee003351cb9e6cb9edeaf0fed6b24986
Author: VinothBabu<vinoth.babu <at> openbravo.com>
Date: Wed May 06 19:15:59 2009 +0530
URL: http://code.openbravo.com/erp/stable/2.3x/rev/361416c2ee003351cb9e6cb9edeaf0fed6b24986 [^]

Fixes bug 8913 The document no of and order shouldn't change without modify the document type.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_DocType.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_DocType_data.xsql
---
(0016372)
sureshbabu   
2009-05-15 11:16   
Tested working fine