Openbravo Issue Tracking System - POS2
View Issue Details
0050947POS2POSpublic2022-11-18 12:212023-08-02 11:22
charlotte_vasseur 
meriem_azaf 
normalmajoralways
closedfixed 
5
 
23Q4 
No
0050947: [Initial count] Error when entering some amounts via keyboard or calculator
An error 'The counted amount for payment method Cash (Coins) must be multiple of 0.01' is displayed when entering some amounts via keyboard or calculator when doing the initial count
Always reproductible with amount 34.01

No error with counting tool for the same amount
Log in POS
Click on 'Split Coins & Bills' button
Click on 'Cash (Coins)' button
Enter amount 34.01 with the keyboard
=> Error 'The counted amount for payment method Cash (Coins) must be multiple of 0.01' is displayed
(See Error when entering amount via keyboard or calculator.png)

Same if I enter the same amount via the calculator (34.01)

But no error if I click on 'Counting tool' and add coins to have 34.01
(See No error via counting tool.png)
No tags attached.
png Error when entering amount via keyboard or calculator.png (98,957) 2022-11-18 12:21
https://issues.openbravo.com/file_download.php?file_id=17860&type=bug
png

png No error via counting tool.png (93,020) 2022-11-18 12:21
https://issues.openbravo.com/file_download.php?file_id=17861&type=bug
png
Issue History
2022-11-18 12:21charlotte_vasseurNew Issue
2022-11-18 12:21charlotte_vasseurAssigned To => Retail
2022-11-18 12:21charlotte_vasseurFile Added: Error when entering amount via keyboard or calculator.png
2022-11-18 12:21charlotte_vasseurTriggers an Emergency Pack => No
2022-11-18 12:21charlotte_vasseurFile Added: No error via counting tool.png
2022-11-18 14:29rafarodaSeverityminor => major
2022-12-12 13:06hgbotNote Added: 0144519
2023-04-04 15:04guillermogilAssigned ToRetail => Aaron_Alvarez
2023-04-04 15:05guillermogilStatusnew => scheduled
2023-05-09 15:49guillermogilNote Deleted: 0144519
2023-05-09 15:49guillermogilAssigned ToAaron_Alvarez => Retail
2023-05-09 15:49guillermogilStatusscheduled => acknowledged
2023-05-09 15:49guillermogilStatusacknowledged => scheduled
2023-06-21 15:49hgbotNote Added: 0151447
2023-07-28 11:36meriem_azafAssigned ToRetail => meriem_azaf
2023-07-31 15:50hgbotNote Added: 0153034
2023-08-01 12:31AugustoMauchNote Deleted: 0151447
2023-08-02 11:22hgbotResolutionopen => fixed
2023-08-02 11:22hgbotStatusscheduled => closed
2023-08-02 11:22hgbotNote Added: 0153096
2023-08-02 11:22hgbotFixed in Version => 23Q4
2023-08-02 11:22hgbotNote Added: 0153097

Notes
(0153034)
hgbot   
2023-07-31 15:50   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1989 [^]
(0153096)
hgbot   
2023-08-02 11:22   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1989 [^]
(0153097)
hgbot   
2023-08-02 11:22   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 2b6055f7c72f82799fbf17fafb68fd31a1c85b17
Author: Meriem Azaf <meriem.azaf@openbravo.com>
Date: 02-08-2023 11:09:02
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/2b6055f7c72f82799fbf17fafb68fd31a1c85b17 [^]

Fixes ISSUE-50947: [Initial count] Error when entering some amounts via keyboard or calculator

An error 'The counted amount for payment method Cash (Coins) must be multiple of 0.01' is displayed when entering some amounts via keyboard or calculator when doing the initial count.

The problem was in the division. So, we use the big decimal to fix it.

---
M web-jspack/org.openbravo.pos2/src/components/Cashup/CashupSplitInputs/CashupSplitInputs.jsx
---