Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0012096Openbravo ERP07. Sales managementpublic2010-02-01 17:212010-03-10 18:29
networkb 
rafaroda 
immediatemajoralways
closedno change required 
5
2.50MP10 
2.50MP12 
Core
No
0012096: When saving an order line the total amount is modified with a wrong value
When saving an order line the total amount is modified with a wrong value. This happen because the callout and the trigger round the values in a different order.

-Create a product with 12,70€ in the three prices.
-Create a price adjustment,with discount of 1,95% for the previous product and all the partners. For that create a new price adjustment with a name. Then change the product combo to "all selected" and on the "Discount %" field write 1,95. Fill the starting date. Don't change any other field.
-Go to the product tab and select the product created previously.
-Create a new order with date bigger than the starting date of the price adjustment.
-Go to the lines.
-Select the product defined and see that the discount is applied.
-Change the quantity from 1 to 1290 and see that the total changes to 16063.60
-Save the line. The total changes to 16060.50
No tags attached.
related to defect 0010067 closed rafaroda Grant total amount changes before and after the completion of the sales order document. 
Issue History
2010-02-01 17:21networkbNew Issue
2010-02-01 17:21networkbAssigned To => rafaroda
2010-02-01 22:27psarobeNote Added: 0023904
2010-02-01 22:27psarobeStatusnew => feedback
2010-02-02 09:02networkbStatusfeedback => new
2010-02-02 09:02networkbProposed Solution updated
2010-02-08 12:42rafarodaRelationship addedrelated to 0010067
2010-02-09 11:14rafarodaNote Added: 0024048
2010-02-09 11:14rafarodaStatusnew => closed
2010-02-09 11:14rafarodaResolutionopen => no change required
2010-02-10 12:43anonymoussf_bug_id0 =>
2010-03-10 18:29anonymoussf_bug_id => 2968001

Notes
(0023904)
psarobe   
2010-02-01 22:27   
1. Please detail how you have defined the price adjustmanet
2. Please detail the first qty when you create the order line

Thanks
(0024048)
rafaroda   
2010-02-09 11:14   
This is not an issue but a wrong configuration problem.

In order to avoid it, before start working please match the precision of:
* Price Precision in General Setup || Application || Currency
* With the Output Format of priceEdition in https://code.openbravo.com/erp/devel/pi/file/tip/config/Format.xml.template [^] For more information see http://wiki.openbravo.com/wiki/index.php?title=ERP/2.50/Developers_Guide/Format.xml [^]