Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0016811Openbravo ERP03. Procurement managementpublic2011-04-14 14:012011-06-13 10:59
adrianromero 
dalsasua 
highminoralways
closedfixed 
5
pi 
3.0MP0 
Core
No
0016811: The callout calculates wrong the Net Unit Price when Discount % is 100
The callout calculates wrong the Net Unit Price when Discount % is 100
-As Openbravo Admin go to Procurement Management || Transactions || Purchase Order || Header >> Lines
- Product: hammer
- Discount: 100
- Realize that the Net Unit Price is 12.
No tags attached.
blocks backport 00159752.50MP28 closed adrianromero The callout calculates wrong the Net Unit Price when Discount % is 100 
Issue History
2011-04-14 14:01adrianromeroNew Issue
2011-04-14 14:01adrianromeroAssigned To => adrianromero
2011-04-14 14:01adrianromeroModules => Core
2011-04-14 14:01adrianromeroIssue generated from0015975
2011-04-14 14:01adrianromeroRelationship addedblocks 0015975
2011-04-14 15:29adrianromeroNote Added: 0035947
2011-04-20 10:06hgbotCheckin
2011-04-20 10:06hgbotNote Added: 0036039
2011-04-20 10:06hgbotStatusnew => resolved
2011-04-20 10:06hgbotResolutionopen => fixed
2011-04-20 10:06hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b750b36d757ee547637fa2b46a0100dc434c3be7 [^]
2011-05-12 13:25hudsonbotCheckin
2011-05-12 13:25hudsonbotNote Added: 0036749
2011-06-03 10:58dalsasuaAssigned Toadrianromero => dalsasua
2011-06-13 10:59jonalegriaesarteNote Added: 0038285
2011-06-13 10:59jonalegriaesarteStatusresolved => closed
2011-06-13 10:59jonalegriaesarteFixed in Version => 3.0MP0

Notes
(0035947)
adrianromero   
2011-04-14 15:29   
* Testing the issue

Follow the steps to test and verify that now when the discount is 100%, the net unit price is 0

Verify that it still works as expected when using other discounts: 50%, 0%, 200%

* Other areas affected

No other areas affected only the format when invoking GETOFFERSPRICE() in the callout has been modified.
(0036039)
hgbot   
2011-04-20 10:06   
Repository: erp/devel/pi
Changeset: b750b36d757ee547637fa2b46a0100dc434c3be7
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Apr 14 15:11:11 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/b750b36d757ee547637fa2b46a0100dc434c3be7 [^]

Fixes issue 0016811: The callout calculates wrong the Net Unit Price when Discount % is 100
It has been modified the format of the price when invoking GetOffersPrice() to use an standard format and not a cientific format

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Order_Amt.java
---
(0036749)
hudsonbot   
2011-05-12 13:25   
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/c40e579fcd38 [^]

Maturity status: Test
(0038285)
jonalegriaesarte   
2011-06-13 10:59   
Verified