Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0019314Openbravo ERPA. Platformpublic2011-12-15 18:002012-04-01 20:37
VictorVillar 
jecharri 
highminoralways
closedfixed 
5
3.0MP6 
3.0MP10 
Core
No
0019314: Net Unit Price resets when quantity changes
In Lines tab from Sales Order, Net Unit Price resets when the user changes the ordered quantity.
As Group Admin role,
Go to Sales Order
 - Create a new register
      *Business Partner: Healthy Food
Go to Lines Tab:
  - create a new register
       * Select product: Cherry Cola
       * Change the net unit price: 10, before it is 0.83
       * Change the Ordered Quantity: 5
We realise that the Net Unit Price is 0.83 again.
No tags attached.
Issue History
2011-12-15 18:00VictorVillarNew Issue
2011-12-15 18:00VictorVillarAssigned To => alostale
2011-12-15 18:00VictorVillarModules => Core
2011-12-15 18:00VictorVillarResolution time => 1330556400
2012-01-25 11:33alostaleAssigned Toalostale => jonalegriaesarte
2012-02-23 12:18jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2012-02-29 18:29jecharriTarget Version3.0MP9 => 3.0MP10
2012-03-05 10:23hgbotCheckin
2012-03-05 10:23hgbotNote Added: 0046025
2012-03-05 10:23hgbotStatusnew => resolved
2012-03-05 10:23hgbotResolutionopen => fixed
2012-03-05 10:23hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/5a5c8436364b270bde2476eb4efca5ae6b918d95 [^]
2012-03-05 10:29jecharriNote Added: 0046027
2012-03-06 17:46VictorVillarNote Added: 0046102
2012-03-06 17:46VictorVillarStatusresolved => closed
2012-04-01 20:37hudsonbotCheckin
2012-04-01 20:37hudsonbotNote Added: 0047029

Notes
(0046025)
hgbot   
2012-03-05 10:23   
Repository: erp/devel/pi
Changeset: 5a5c8436364b270bde2476eb4efca5ae6b918d95
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Mon Mar 05 10:22:55 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/5a5c8436364b270bde2476eb4efca5ae6b918d95 [^]

Fixes issue 19314: Net Unit Price resets when quantity changes.
Now the net unit price only change when the offer change it

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Amt.java
---
(0046027)
jecharri   
2012-03-05 10:29   
Test case:
-create two offers to one BP and to one Product and to different quantities:
   +0-10: without offer
   +10-19: 50% of discount
   +20-30: 100% of dicount
-go to window sales order and create one header for the same BP
-go to lines and create one line for the previous product
-now play with the quantity:
   +see that net price does not change with values between 0-9 or 31-99999999999
   +change the qty to one value between 10-19. See that net unit price change
   +do the same with values between 20-30

Now do the same test but inside the same offer put your price (change the proposal price, and see that it doesn't change if the offer does not change).
(0046102)
VictorVillar   
2012-03-06 17:46   
Verified
(0047029)
hudsonbot   
2012-04-01 20:37   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/640de9acc2d5 [^]

Maturity status: Test