Openbravo Issue Tracking System - POS2
View Issue Details
0048356POS2Restaurantspublic2022-01-05 10:282022-02-15 09:13
mmohammad 
ebecerra 
normalmajoralways
closedfixed 
5
 
 
javierRodriguez
No
0048356: jira 2177 - [FS] 0 missing when the amount is a decimal
On WEBPOS, the amount of the POP is not not well displayed. Indeed, we expect a display of the amount in decimal with two decimal places. But we observe that this is not the case. It is the same on the input box of total amount in payment method.

When wanting to select POP with filling in amount and the amount is a decimal and finish by 0 (ex 65.50) , the displayed value don’t have the 0 (for the same example 65.5)
Go to sales on WEBPOS
Create a receipt with products
Go to payment => the total amount in the checkbox is with 1 decimal and we expected 2
Choose payment and validate the sale.
Go to last order POP
Create new and fill in amount => the amount displayed is with 1 decimal and we expected with 2.
No tags attached.
jpg Decimal.jpg (80,708) 2022-01-05 10:28
https://issues.openbravo.com/file_download.php?file_id=16495&type=bug
jpg
Issue History
2022-01-05 10:28mmohammadNew Issue
2022-01-05 10:28mmohammadAssigned To => Retail
2022-01-05 10:28mmohammadFile Added: Decimal.jpg
2022-01-05 10:28mmohammadTriggers an Emergency Pack => No
2022-01-10 09:14ebecerraAssigned ToRetail => ebecerra
2022-01-10 09:15ebecerraStatusnew => scheduled
2022-01-12 09:16guilleaerNote Added: 0134244
2022-01-14 15:11hgbotNote Added: 0134304
2022-01-14 15:12hgbotResolutionopen => fixed
2022-01-14 15:12hgbotStatusscheduled => resolved
2022-01-14 15:12hgbotNote Added: 0134305
2022-01-14 15:12hgbotNote Added: 0134306
2022-02-15 09:13cbernerReview Assigned To => javierRodriguez
2022-02-15 09:13cbernerStatusresolved => closed

Notes
(0134244)
guilleaer   
2022-01-12 09:16   
https://gitlab.com/openbravo/devel/pmods/org.openbravo.pos2/-/merge_requests/82 [^]
(0134304)
hgbot   
2022-01-14 15:11   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/778 [^]
(0134305)
hgbot   
2022-01-14 15:12   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 8e0611ece6f57812de74ff4c288c9257223a8866
Author: Eduardo Becerra (OB) <eduardo.becerra@openbravo.com>
Date: 14-01-2022 15:10:08
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/8e0611ece6f57812de74ff4c288c9257223a8866 [^]

Fixes ISSUE-48356: 0 missing when the amount is a decimal

---
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentPanel/PaymentPanel.jsx
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentPanel/__test__/PaymentPanel.test.jsx
M web-jspack/org.openbravo.pos2/src/components/Payments/PaymentPanel/stories/PaymentPanel.stories.jsx
M web-jspack/org.openbravo.pos2/src/components/ProofOfPayment/ProofOfPaymentHeader/ProofOfPaymentFillConfigDialog/ProofOfPaymentAmountInput/ProofOfPaymentAmountInput.jsx
M web-jspack/org.openbravo.pos2/src/components/ProofOfPayment/ProofOfPaymentHeader/ProofOfPaymentFillConfigDialog/ProofOfPaymentAmountInput/__test__/ProofOfPaymentAmountInput.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ProofOfPayment/ProofOfPaymentHeader/ProofOfPaymentFillConfigDialog/ProofOfPaymentFillConfigDialogContent/__test__/ProofOfPaymentFillConfigDialogContent.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ProofOfPayment/ProofOfPaymentHeader/ProofOfPaymentFillConfigDialog/__test__/ProofOfPaymentFillConfigDialog.test.jsx
---
(0134306)
hgbot   
2022-01-14 15:12   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/778 [^]