Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035035Retail ModulesWeb POSpublic2017-01-23 15:162017-03-28 17:51
inaki_garcia 
rqueralta 
normalminoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0035035: [UX][RR17Q1] Decimal format isn't validated in the field of the Amount to Layaway popup of the Pay Open Tickets window
The field of the Amount to Layaway popup that appears when clicking on a Layaway of the Pay Open Tickets window doesn't validate inputting a correct number decimal format. Moreover, when inputting a number using a comma (",") as a decimal separator (assuming the configured decimal format is with a dot, "."), the inputted amount is set but without its decimal part.

A popup should be shown, asking to input a number with the correct decimal format.
0. Log in the Web POS as user "vallblanca"

1. Create more than one Layaway with the following steps
 1.1. Click on the Browse button and select some products (p.e., "Avalanche transceiver" and "Headlamp ultralight")
 1.2. Click on the Total button (should be shown as "169.40")
 1.3. Open the dropdown menu and select the "Layaway this Receipt" option
 1.4. Click on the "Layaway" button to complete the receipt

2. Select "Pay Open Tickets" option from the dropdown menu
 2.1. Click on the search magnifying glass and select all the created layaways
 2.2. Click on "Done".

Testing the validations mentioned in the description on the "Pay Open Tickets" screen
3. Click on a Layaway to open the "Amount to Layaway" popup
 3.1. Set, p.e., '25.35' and click on "Apply"
 3.2. Notice how the amount set for the Layaway is '25.00'
No tags attached.
related to defect 0035031 new Retail [UX][RR17Q1] Incomplete field validation for the Amount to Layaway popup of the Pay Open Tickets option 
Issue History
2017-01-23 15:16inaki_garciaNew Issue
2017-01-23 15:16inaki_garciaAssigned To => Retail
2017-01-23 15:16inaki_garciaTriggers an Emergency Pack => No
2017-01-23 15:17inaki_garciaRelationship addedrelated to 0035031
2017-02-16 19:27rqueraltaAssigned ToRetail => rqueralta
2017-03-20 13:50hgbotCheckin
2017-03-20 13:50hgbotNote Added: 0095421
2017-03-20 13:50hgbotStatusnew => resolved
2017-03-20 13:50hgbotResolutionopen => fixed
2017-03-20 13:50hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/342f05b5fca148c56e2ed37ab006f959b7a9dcb2 [^]
2017-03-20 13:52hgbotCheckin
2017-03-20 13:52hgbotNote Added: 0095422
2017-03-20 13:52hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/342f05b5fca148c56e2ed37ab006f959b7a9dcb2 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0afbe9aae887bed52e1af40f0c4008c6c8006449 [^]
2017-03-28 17:51marvintmReview Assigned To => marvintm
2017-03-28 17:51marvintmStatusresolved => closed
2017-03-28 17:51marvintmFixed in Version => RR17Q2

Notes
(0095421)
hgbot   
2017-03-20 13:50   
Repository: erp/pmods/org.openbravo.mobile.core
Changeset: 342f05b5fca148c56e2ed37ab006f959b7a9dcb2
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Feb 13 18:43:01 2017 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/rev/342f05b5fca148c56e2ed37ab006f959b7a9dcb2 [^]

Fixed issue 35035: Decimal format isn't validated in the Amount field to Layaway

Decimal format isn't validated in the field of the Amount to Layaway popup.
A new function OB.I18N.isValidNumber was added in order to fix it. This function
validate the number format

---
M web/org.openbravo.mobile.core/source/utils/ob-i18n.js
---
(0095422)
hgbot   
2017-03-20 13:52   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 0afbe9aae887bed52e1af40f0c4008c6c8006449
Author: Rafael Queralta Pozo <rqueralta <at> nauta.cu>
Date: Mon Feb 13 18:41:48 2017 -0500
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/0afbe9aae887bed52e1af40f0c4008c6c8006449 [^]

Fixed issue 35035: Decimal format isn't validated in the Amount field to Layaway

Checked is the amount has a valid format and if this amount has a valid thousand
separator, this is replace by ""

---
M web/org.openbravo.retail.posterminal/js/components/modalmultiorderslayaway.js
---