Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0036669Openbravo ERPA. Platformpublic2017-08-03 13:282017-08-23 11:06
JONHM 
markmm82 
normalmajoralways
closedfixed 
5
pi 
3.0PR17Q1.43.0PR17Q1.4 
aferraz
Core
No
0036669: Callouts retrieve wrong quantity when Format.xml file is set with too many decimals
When adding a product line in physical inventory (which is associated with SL_Inventory_Product callout), the quantity obtained from the product is not real, there are too many zeroes added to the real quantity.
It seems to be related to the configuration of the Format.xml file and its 'qtyRelation' and 'qtyEdition' fields when set with 5 decimals
- First of all, replace the Format.xml file by the attached one. Then, recompile the application.

1) Open "Physical Inventory" window and create a new one with default values.
2) Switch to lines tab and create a new one for product 'Vino Blanco 0,75L'.
--> Notice that the stock for that product is 31300 and the quantity retrieved from the callout is 3130000

(The quantity in database for that product is set as 31300.00)
No tags attached.
blocks defect 0036590 closed markmm82 Callouts retrieve wrong quantity when Format.xml file is set with too many decimals 
Issue History
2017-08-18 13:00aferrazTypedefect => backport
2017-08-18 13:00aferrazTarget Version => 3.0PR17Q1.4
2017-08-23 10:53aferrazAssigned Toinigosanchez => markmm82
2017-08-23 11:05hgbotCheckin
2017-08-23 11:05hgbotNote Added: 0098600
2017-08-23 11:05hgbotStatusscheduled => resolved
2017-08-23 11:05hgbotResolutionopen => fixed
2017-08-23 11:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR17Q1.4/rev/fad77014d60cba01c5da3f5f768345979c8d75c2 [^]
2017-08-23 11:05hgbotCheckin
2017-08-23 11:05hgbotNote Added: 0098602
2017-08-23 11:06aferrazReview Assigned To => aferraz
2017-08-23 11:06aferrazNote Added: 0098604
2017-08-23 11:06aferrazStatusresolved => closed
2017-08-23 11:06aferrazFixed in Version => 3.0PR17Q1.4

Notes
(0098600)
hgbot   
2017-08-23 11:05   
Repository: erp/backports/3.0PR17Q1.4
Changeset: fad77014d60cba01c5da3f5f768345979c8d75c2
Author: Mark <markmm82 <at> gmail.com>
Date: Mon Aug 21 15:43:39 2017 -0400
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.4/rev/fad77014d60cba01c5da3f5f768345979c8d75c2 [^]

Fixes issue 36669: Wrong quantity in inventory lines

* Send quantities as BigDecimal instead of String.
* Remove unnecessary displaylogic() execute.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_InOutLine_Product.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Locator.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Inventory_Product.java
M src/org/openbravo/erpCommon/ad_callouts/SL_Movement_Product.java
---
(0098602)
hgbot   
2017-08-23 11:05   
Repository: erp/backports/3.0PR17Q1.4
Changeset: c7126a45caf7d6e4fbd28a7af376983a2870c143
Author: Alvaro Ferraz <alvaro.ferraz <at> openbravo.com>
Date: Wed Aug 23 11:01:23 2017 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR17Q1.4/rev/c7126a45caf7d6e4fbd28a7af376983a2870c143 [^]

Related to issue 36669: Update copyright

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Movement_Product.java
---
(0098604)
aferraz   
2017-08-23 11:06   
Code review + Testing OK