Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043772Retail ModulesWeb POSpublic2020-04-03 13:152020-04-23 17:16
kchoperena 
prakashmurugesan88 
normalmajoralways
closedfixed 
5
 
RR20Q1.1RR20Q1.1 
marvintm
No
0043772: Cancel and Replace fails if the difference between the payment amounts are more than 1000
Cancel and Replace process fails when the difference between the payment of the cancelled and new order is more than 1000.

If the new order needs to add or return a payment higher than 1000, while adding the payment information fails because the toBigDecimal function is executing with an incorrect format number. I.e: 2,400.00
1.- Log into the WebPOS
2.- Create a Layaway with 20 Avalanche Transceivers -> Total amount: 3,010.00
3.- Synchronize the layaway
4.- Load again using the 'Open receipt' functionality of the menu
5.- In the menu, click on 'Cancel And Replace'
6.- Change the line qty to 1 -> Total amount: 150.50
7.- Try to return the money to the customer

EXPECTED RESULT:
The WebPOS does not add the return payment and in the developer tools console appears the next error:

BigDecimal-all-1.0.3.min.js:14 Uncaught BigDecimal(): Not a number: 2,,,8,5,9,.,5,0
No tags attached.
blocks defect 0043661 closed prakashmurugesan88 Cancel and Replace fails if the difference between the payment amounts are more than 1000 
Issue History
2020-04-17 13:45marvintmTypedefect => backport
2020-04-17 13:45marvintmTarget Version => RR20Q1.1
2020-04-20 09:33hgbotCheckin
2020-04-20 09:33hgbotNote Added: 0119252
2020-04-20 09:33hgbotStatusscheduled => resolved
2020-04-20 09:33hgbotResolutionopen => fixed
2020-04-20 09:33hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/03daf749c9106cebb21878d83a29e91c619f68da [^] => http://code.openbravo.com/retail/backports/3.0RR20Q1.1/org.openbravo.retail.posterminal/rev/b0c7ee21f317195dde31647adaab39917d5112ef [^]
2020-04-20 11:05martinsdanIssue Monitored: martinsdan
2020-04-23 17:16marvintmReview Assigned To => marvintm
2020-04-23 17:16marvintmStatusresolved => closed
2020-04-23 17:16marvintmFixed in Version => RR20Q1.1

Notes
(0119252)
hgbot   
2020-04-20 09:33   
Repository: retail/backports/3.0RR20Q1.1/org.openbravo.retail.posterminal
Changeset: b0c7ee21f317195dde31647adaab39917d5112ef
Author: Prakash M <prakash <at> qualiantech.com>
Date: Mon Apr 20 12:44:30 2020 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR20Q1.1/org.openbravo.retail.posterminal/rev/b0c7ee21f317195dde31647adaab39917d5112ef [^]

Fixed BUG-43772: Converted return payment from OBMasked to OBPlain for calculation

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---