Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0014348Openbravo ERP03. Procurement managementpublic2010-08-27 10:412010-09-13 12:38
networkb 
adrianromero 
urgentmajoralways
closedfixed 
5
2.50MP20 
2.50MP22 
Core
No
0014348: Line Net Amount is rounded when there is no PriceList in Requisition's header
When you create a Requisition without set any PriceList in the header and add a Line, Line Net Amount value is rounded
1. Procurement Management || Transactions || Requisition || Header : create record for McGiver and leave PriceList combo empty.
2. Procurement Management || Transactions || Requisition || Header >> Lines : add line for "beer" and choose PriceList= Purchase
 
Realize that UnitPrice is 0.95 but Line Net Amount has been rounded to 1

You can also try to leave PriceList combo empty and set any decimal price in Unit Price field and check that Line Net Amount is rounded.
No tags attached.
Issue History
2010-08-27 10:41networkbNew Issue
2010-08-27 10:41networkbAssigned To => adrianromero
2010-09-09 11:55adrianromeroStatusnew => scheduled
2010-09-09 11:55adrianromerofix_in_branch => pi
2010-09-10 12:25hgbotCheckin
2010-09-10 12:25hgbotNote Added: 0030934
2010-09-10 12:25hgbotStatusscheduled => resolved
2010-09-10 12:25hgbotResolutionopen => fixed
2010-09-10 12:25hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/fd51a5f4448f4fd9199168d305d8bf7b6fedc9fc [^]
2010-09-10 12:28adrianromeroNote Added: 0030936
2010-09-10 18:59hudsonbotCheckin
2010-09-10 18:59hudsonbotNote Added: 0030953
2010-09-13 10:41sureshbabuNote Added: 0030973
2010-09-13 10:41sureshbabuStatusresolved => closed
2010-09-13 12:38anonymoussf_bug_id0 => 3065187

Notes
(0030934)
hgbot   
2010-09-10 12:25   
Repository: erp/devel/pi
Changeset: fd51a5f4448f4fd9199168d305d8bf7b6fedc9fc
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Fri Sep 10 12:23:24 2010 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/fd51a5f4448f4fd9199168d305d8bf7b6fedc9fc [^]

Fixes issue 0014348: Line Net Amount is rounded when there is no PriceList in Requisition's header
It has been modified the Requisition Lines callout to not to round when there is no price list defined in the header.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_RequisitionLine_Amt.java
---
(0030936)
adrianromero   
2010-09-10 12:28   
* Testing of the issue

Just follow the steps to reproduce and find that amounts are not rounded if there is not selected a price list in the requisition header. Test also that if a price list is selected in the header, amounts are rounded according the precisions of the selected price list.

* Other areas affected

Only the Lines tab of the requisitions window is affected.
(0030953)
hudsonbot   
2010-09-10 18:59   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/fd51a5f4448f [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/f6779ed6c074 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.18365.obx [^]
(0030973)
sureshbabu   
2010-09-13 10:41   
verified