Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036694Retail ModulesWeb POSpublic2017-08-22 14:032018-01-03 12:39
ngarcia 
jorge-garcia 
urgentmajoralways
closedfixed 
5
 
RR18Q1 
marvintm
No
0036694: In Currency window, POS precision can be higher than the currency's real precision (commonly 2)
In Currency window, POS precision can be higher than the currency's real precision (commonly 2)

The POS Precision is used to round all the amounts and prices of the documents created in the POS. As the majority of currencies do not allow to pay an amount lower than 0.01, a warning could be shown when the POS precision is defined with a value higher than 2 or when it is empty and the price precision is higher than 2 (as Price Precision is used as POS Precision when this is empty)
As System Admin role:
   Go to EUR currency and check you can save the record with the following values and it is not correct:
      Price Precision: 6
      Pos Precision: empty

   Go to EUR currency and check you can save the record with the following values and it is not correct:
      Pos Precision: 6
No tags attached.
related to design defect 0036693 closed markmm82 Openbravo ERP In Currency window, Standard precision can be higher than the currency's real precision (commonly 2) 
related to design defect 0033762 new Retail Retail Modules POS precision is not aligned with options available in backoffice: this can create "inconsistent" orders between channels 
related to defect 0042929 closed AtulOpenbravo Openbravo ERP Wrong warning shown when trying to change the standard precision of a currency to a value higher than 2 
Issue History
2017-08-22 14:03ngarciaNew Issue
2017-08-22 14:03ngarciaAssigned To => Retail
2017-08-22 14:03ngarciaTriggers an Emergency Pack => No
2017-08-22 14:03ngarciaRelationship addedrelated to 0036693
2017-08-22 14:03ngarciaRelationship addedrelated to 0033762
2017-09-06 13:46ngarciaNote Added: 0098861
2017-11-15 13:56jorge-garciaStatusnew => scheduled
2017-11-15 13:56jorge-garciaAssigned ToRetail => jorge-garcia
2017-11-17 08:34hgbotCheckin
2017-11-17 08:34hgbotNote Added: 0100561
2017-11-17 08:34hgbotCheckin
2017-11-17 08:34hgbotNote Added: 0100563
2017-11-17 08:34hgbotStatusscheduled => resolved
2017-11-17 08:34hgbotResolutionopen => fixed
2017-11-17 08:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ce48d1e0930ae73731c405d4e66b04592a16388f [^]
2017-11-20 17:08hgbotCheckin
2017-11-20 17:08hgbotNote Added: 0100627
2017-12-07 13:53marvintmReview Assigned To => marvintm
2017-12-07 13:53marvintmStatusresolved => closed
2017-12-07 13:53marvintmFixed in Version => RR18Q1
2018-01-03 12:39hudsonbotCheckin
2018-01-03 12:39hudsonbotNote Added: 0101429
2018-01-03 12:39hudsonbotCheckin
2018-01-03 12:39hudsonbotNote Added: 0101442
2020-01-17 12:54ngarciaRelationship addedrelated to 0042929

Notes
(0098861)
ngarcia   
2017-09-06 13:46   
Currency codes - ISO 4217:

https://www.iso.org/iso-4217-currency-codes.html [^]
(0100561)
hgbot   
2017-11-17 08:34   
Repository: erp/devel/pi
Changeset: 6488f29c70a0831c3e9e3052b2b86a778f78e154
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Nov 15 13:37:59 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/6488f29c70a0831c3e9e3052b2b86a778f78e154 [^]

Related to issue 36694. Related to issue 36693

The code related to the ISO currency precision included in the callout has
been moved to a new class called ISOCurrencyPrecision. Now, the
method getCurrencyPrecisionInISO4217Spec is public.

---
M src/org/openbravo/erpCommon/ad_callouts/SL_Currency_StdPrecision.java
A src/org/openbravo/erpCommon/utility/ISOCurrencyPrecision.java
---
(0100563)
hgbot   
2017-11-17 08:34   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: ce48d1e0930ae73731c405d4e66b04592a16388f
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Nov 15 13:29:42 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ce48d1e0930ae73731c405d4e66b04592a16388f [^]

Fixed issue 36694: In Currency window, POS precision can be higher than the
currency's real precision (commonly 2)

The solution is to implement a new callout linked to POS precision to check
if the value is correct.

---
M src-db/database/sourcedata/AD_CALLOUT.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT.xml
M src-db/database/sourcedata/AD_MODEL_OBJECT_MAPPING.xml
A src/org/openbravo/retail/posterminal/ad_callouts/POSCurrencyPrecision.java
---
(0100627)
hgbot   
2017-11-20 17:08   
Repository: erp/devel/pi
Changeset: 72ca71e6b78a340ee3126792286f5bf970d7c673
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Nov 20 12:01:56 2017 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/72ca71e6b78a340ee3126792286f5bf970d7c673 [^]

Related to issue 36694. Related to issue 36693

 * Fix problem with log messages in the new API
 * Added copyright to ISOCurrencyPrecision
 * Added class Javadoc to ISOCurrencyPrecision
 * Use getResourceAsStream to read the xml file with the standard
   currency precisions.

---
M src/org/openbravo/erpCommon/utility/ISOCurrencyPrecision.java
---
(0101429)
hudsonbot   
2018-01-03 12:39   
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/c81e0d3cbab5 [^]
Maturity status: Test
(0101442)
hudsonbot   
2018-01-03 12:39   
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/c81e0d3cbab5 [^]
Maturity status: Test