Openbravo Issue Tracking System - Retail Modules
View Issue Details
0043661Retail ModulesWeb POSpublic2020-04-03 13:152020-04-20 10:02
kchoperena 
prakashmurugesan88 
normalmajoralways
closedfixed 
5
 
RR20Q3 
marvintm
Production - Confirmed Stable
RR19Q1
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/70933f1a2d22#l14.41 [^]
No
0043661: 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.
depends on backport 0043771RR20Q2 closed prakashmurugesan88 Cancel and Replace fails if the difference between the payment amounts are more than 1000 
depends on backport 0043772RR20Q1.1 closed prakashmurugesan88 Cancel and Replace fails if the difference between the payment amounts are more than 1000 
depends on backport 0043773RR19Q4.4 closed prakashmurugesan88 Cancel and Replace fails if the difference between the payment amounts are more than 1000 
Issue History
2020-04-03 13:15kchoperenaNew Issue
2020-04-03 13:15kchoperenaAssigned To => Retail
2020-04-03 13:15kchoperenaResolution time => 1587074400
2020-04-03 13:15kchoperenaTriggers an Emergency Pack => No
2020-04-10 13:45prakashmurugesan88Assigned ToRetail => prakashmurugesan88
2020-04-10 15:38prakashmurugesan88Statusnew => scheduled
2020-04-13 12:12hgbotCheckin
2020-04-13 12:12hgbotNote Added: 0119136
2020-04-13 12:12hgbotStatusscheduled => resolved
2020-04-13 12:12hgbotResolutionopen => fixed
2020-04-13 12:12hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/03daf749c9106cebb21878d83a29e91c619f68da [^]
2020-04-16 19:04marvintmSeveritycritical => major
2020-04-17 13:45marvintmStatusresolved => new
2020-04-17 13:45marvintmResolutionfixed => open
2020-04-17 13:45marvintmStatusnew => scheduled
2020-04-17 13:46marvintmStatusscheduled => resolved
2020-04-17 13:46marvintmFixed in Version => RR20Q3
2020-04-17 13:46marvintmResolutionopen => fixed
2020-04-17 13:46marvintmReview Assigned To => marvintm
2020-04-17 13:46marvintmStatusresolved => closed
2020-04-17 13:47marvintmRegression level => Production - Confirmed Stable
2020-04-17 13:47marvintmRegression introduced in release => RR19Q1
2020-04-17 13:47marvintmRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/70933f1a2d22#l14.41 [^]
2020-04-20 10:02hgbotCheckin
2020-04-20 10:02hgbotNote Added: 0119254

Notes
(0119136)
hgbot   
2020-04-13 12:12   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 03daf749c9106cebb21878d83a29e91c619f68da
Author: Prakash M <prakash <at> qualiantech.com>
Date: Mon Apr 13 15:41:36 2020 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/03daf749c9106cebb21878d83a29e91c619f68da [^]

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

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0119254)
hgbot   
2020-04-20 10:02   
Repository: tools/automation/pi-mobile
Changeset: 42bd907d48911ff77484655b99e5a05284eb347e
Author: Prakash M <prakash <at> qualiantech.com>
Date: Mon Apr 20 13:31:28 2020 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/42bd907d48911ff77484655b99e5a05284eb347e [^]

Related to BUG-43661: Verifies Cancel and Replace with return amount in 4 digit

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cancelandreplace/I43661_CancelAndRplcLayawayReturnAmtIn4Digit.java
---