Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040921Retail ModulesSelfcheckoutpublic2019-05-20 17:172019-06-17 19:10
joniturralde93 
rqueralta 
urgentmajoralways
closedfixed 
5
pi 
pi 
guilleaer
No
0040921: Negative transactions should not be allowed in SCO
If you manage to get to SCO POS with a negative amount transaction, there could be problems related to payments.
1. Create a new Discount (Price Adjustment) with amount 20 for product 'Adhesive body warmers'.
2. Add it in web pos (SCO-1): Product price 3.60, discount -20, final price -16.40
3. Go to SCO mode


In live builds it's not allowed to complete the transaction (payment behavior is strange), but in some customers there are mobile payment types which actually can make the customer pay (even if the amount was negative).

No tags attached.
Issue History
2019-05-20 17:17joniturralde93New Issue
2019-05-20 17:17joniturralde93Assigned To => Retail
2019-05-20 17:17joniturralde93Resolution time => 1560117600
2019-05-20 17:17joniturralde93Triggers an Emergency Pack => No
2019-05-28 14:55rqueraltaAssigned ToRetail => rqueralta
2019-05-28 14:55rqueraltaStatusnew => scheduled
2019-06-10 22:20hgbotCheckin
2019-06-10 22:20hgbotNote Added: 0112560
2019-06-10 22:20hgbotStatusscheduled => resolved
2019-06-10 22:20hgbotResolutionopen => fixed
2019-06-10 22:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.selfcheckout/rev/d8fd752d0974c06fff3d06dc5557a36de020faf6 [^]
2019-06-13 17:21hgbotCheckin
2019-06-13 17:21hgbotNote Added: 0112773
2019-06-17 19:10guilleaerReview Assigned To => guilleaer
2019-06-17 19:10guilleaerStatusresolved => closed

Notes
(0112560)
hgbot   
2019-06-10 22:20   
Repository: erp/pmods/org.openbravo.retail.selfcheckout
Changeset: d8fd752d0974c06fff3d06dc5557a36de020faf6
Author: Rafael Queralta <rafaelcuba81 <at> gmail.com>
Date: Mon Jun 10 16:20:04 2019 -0400
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.selfcheckout/rev/d8fd752d0974c06fff3d06dc5557a36de020faf6 [^]

Fixed issue 40921: Negative transactions should not be allowed in SCO

- If total amount is negative, the transaction cannot be completed and a message
 is shown

---
M src-db/database/sourcedata/AD_MESSAGE.xml
M src/org/openbravo/retail/selfcheckout/SCOComponentProvider.java
M web/org.openbravo.retail.selfcheckout/assets/css/ob-sco.css
M web/org.openbravo.retail.selfcheckout/source/panels/scanProductPanel.js
A web/org.openbravo.retail.selfcheckout/source/actions/doReceiptNegativeTotal.js
A web/org.openbravo.retail.selfcheckout/source/panels/receiptNegativeTotalPanel.js
A web/org.openbravo.retail.selfcheckout/source/steps/receiptNegativeTotal.js
---
(0112773)
hgbot   
2019-06-13 17:21   
Repository: tools/automation/pi-mobile
Changeset: d8872f7108987a7f1722169fe78e5b967d3bda80
Author: Alejandro <alekosmp86 <at> gmail.com>
Date: Tue Jun 11 14:55:17 2019 -0400
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/d8872f7108987a7f1722169fe78e5b967d3bda80 [^]

Related to issue 40921: added automated test

---
M src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/selfcheckoututils/TestIDSCO.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/selfcheckout/I40921_SCOVerifyNegativeTransactionsNotAllowed.java
---