Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049182Retail ModulesQuotationspublic2022-05-02 13:432022-06-01 11:08
idiez 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
RR22Q1.2 
RR22Q3 
No
0049182: Infinite Decimals Problem
Error reproduce in:
https://livebuilds.openbravo.com/retail_mp_3.0RR22Q1.2/web/org.openbravo.retail.posterminal/?terminal=VBS-1#retail.pointofsale [^]

https://livebuilds.openbravo.com/retail_mp_3.0RR22Q1.2 [^]
1) Go to the backoffice (system role) in the window "UNIT OF Measruge".
2) Look for the unit "Unit" we place in the tab "Standard Precision" 4
3) Go to the webpos
4) Add a product and modify the quantity, for example "0.06" 5) Open "DevTools" and select "DevTools".
5)Open "DevTools" and we look for the quantity we can see a large amount of decimals.
6)Look for "selectdReceiptLines.forEach(fuction(line)){" and we can observe that in the condition we get the decimal "0.60000000005".
7) It is expected that the quantity is not infinite, since it could bring problems at the time of making inventory.

The video with steps:
https://www.youtube.com/watch?v=-L9gpjs0pZU [^]
No tags attached.
diff 49182_20Q4_posterminal.diff (3,934) 2022-06-01 11:08
https://issues.openbravo.com/file_download.php?file_id=17100&type=bug
Issue History
2022-05-02 13:43idiezNew Issue
2022-05-02 13:43idiezAssigned To => Retail
2022-05-02 13:43idiezTriggers an Emergency Pack => No
2022-05-02 15:32PracticsIssue Monitored: Practics
2022-05-04 13:16ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-05-04 15:32ranjith_qualiantech_comStatusnew => scheduled
2022-05-05 07:54hgbotNote Added: 0136959
2022-05-27 08:11hgbotResolutionopen => fixed
2022-05-27 08:11hgbotStatusscheduled => closed
2022-05-27 08:11hgbotNote Added: 0137802
2022-05-27 08:11hgbotFixed in Version => RR22Q3
2022-05-27 08:11hgbotNote Added: 0137803
2022-06-01 11:08ranjith_qualiantech_comFile Added: 49182_20Q4_posterminal.diff

Notes
(0136959)
hgbot   
2022-05-05 07:54   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/786 [^]
(0137802)
hgbot   
2022-05-27 08:11   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/786 [^]
(0137803)
hgbot   
2022-05-27 08:11   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 9f11651a4e34597c01e80d76818a90e5cad99e5d
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 27-05-2022 06:11:41
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/9f11651a4e34597c01e80d76818a90e5cad99e5d [^]

Fixed ISSUE-49182: OB.DEC used when updating receipt line quantity

---
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/AddProductUtils.js
M web/org.openbravo.retail.posterminal/js/actions/changequantity.js
---