Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038762Retail ModulesWeb POSpublic2018-06-14 17:572018-10-22 09:09
adrianromero 
adrianromero 
normalmajorhave not tried
closedfixed 
5
 
RR19Q1 
marvintm
No
0038762: OB.DEC functions does not take the scale from the arguments
In OB.DEC functions the scale to perform calculations is done this way:

var localscale = arg_scale || scale;

In the case of arg_scale === 0 expression takes the value of scale that it is wrong. localscale must be calculated this way:

var localscale = _.isNumber(arg_scale) ? arg_scale : scale;
N/A
See export file attached
No tags attached.
related to defect 0038743 closed adrianromero If there is a different currency precision on the foreign currency 
? issue3872.export (1,648) 2018-06-14 18:01
https://issues.openbravo.com/file_download.php?file_id=11861&type=bug
Issue History
2018-06-14 17:57adrianromeroNew Issue
2018-06-14 17:57adrianromeroAssigned To => adrianromero
2018-06-14 17:57adrianromeroTriggers an Emergency Pack => No
2018-06-14 17:58adrianromeroRelationship addedrelated to 0038743
2018-06-14 18:01adrianromeroFile Added: issue3872.export
2018-10-15 10:29hgbotCheckin
2018-10-15 10:29hgbotNote Added: 0107283
2018-10-15 10:29hgbotStatusnew => resolved
2018-10-15 10:29hgbotResolutionopen => fixed
2018-10-15 10:29hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f7ca9978f80f03bb41943753a62393f9f5d3eac9 [^]
2018-10-22 09:09marvintmReview Assigned To => marvintm
2018-10-22 09:09marvintmStatusresolved => closed
2018-10-22 09:09marvintmFixed in Version => RR19Q1

Notes
(0107283)
hgbot   
2018-10-15 10:29   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: f7ca9978f80f03bb41943753a62393f9f5d3eac9
Author: Adrián Romero <adrianromero <at> openbravo.com>
Date: Thu Jun 14 17:58:44 2018 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/f7ca9978f80f03bb41943753a62393f9f5d3eac9 [^]

Fixes issue 38762: OB.DEC functions does not take the scale from the arguments

---
M web/org.openbravo.mobile.core/source/utils/ob-arithmetic.js
---