Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015975Openbravo ERP03. Procurement managementpublic2011-02-14 13:352011-04-15 12:53
xabiermerino 
adrianromero 
highminoralways
closedfixed 
5
2.50MP26 
2.50MP28 
Core
No
0015975: 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.
depends on defect 0016811 closed dalsasua The callout calculates wrong the Net Unit Price when Discount % is 100 
has duplicate defect 00165653.0RC7 closed adrianromero Oracle database: Discount field in sales order is not working properly 
has duplicate backport 00165662.50MP31 closed adrianromero Oracle database: Discount field in sales order is not working properly 
Issue History
2011-02-14 13:35xabiermerinoNew Issue
2011-02-14 13:35xabiermerinoAssigned To => adrianromero
2011-02-14 13:35xabiermerinoModules => Core
2011-02-14 13:36xabiermerinoIssue Monitored: networkb
2011-03-31 16:13AinhoaPagolaNote Added: 0035429
2011-03-31 16:26adrianromeroRelationship addedhas duplicate 0016565
2011-03-31 16:26adrianromeroRelationship addedhas duplicate 0016566
2011-04-14 14:01adrianromeroStatusnew => scheduled
2011-04-14 14:01adrianromeroTypedefect => backport
2011-04-14 14:01adrianromeroIssue cloned0016811
2011-04-14 14:01adrianromeroRelationship addeddepends on 0016811
2011-04-14 14:04hgbotCheckin
2011-04-14 14:04hgbotNote Added: 0035942
2011-04-14 14:04hgbotStatusscheduled => resolved
2011-04-14 14:04hgbotResolutionopen => fixed
2011-04-14 14:04hgbotFixed in SCM revision => http://code.openbravo.com/erp/stable/2.50/rev/c1380d175fd977ddf00b6f07143ef5dbdd71a714 [^]
2011-04-14 14:07adrianromeroNote Added: 0035943
2011-04-15 12:53xabiermerinoNote Added: 0035975
2011-04-15 12:53xabiermerinoStatusresolved => closed

Notes
(0035429)
AinhoaPagola   
2011-03-31 16:13   
This issue reproduces in Openbravo 3.0 and Openbravo 2.50 ONLY on PostgreSQL database. It works fine in Oracle.

The Net Unit Price should be set to 0, but instead 12 is always the result, no matter the net price list nor the product.
(0035942)
hgbot   
2011-04-14 14:04   
Repository: erp/stable/2.50
Changeset: c1380d175fd977ddf00b6f07143ef5dbdd71a714
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Apr 14 14:03:33 2011 +0200
URL: http://code.openbravo.com/erp/stable/2.50/rev/c1380d175fd977ddf00b6f07143ef5dbdd71a714 [^]

Fixes issue 0015975: 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
---
(0035943)
adrianromero   
2011-04-14 14:07   
* 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.
(0035975)
xabiermerino   
2011-04-15 12:53   
verified