Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034053Retail ModulesWeb POSpublic2016-08-12 09:522016-11-17 19:34
migueldejuana 
migueldejuana 
highmajorsometimes
closedfixed 
5
 
RR16Q2.3RR16Q2.3 
guilleaer
No
0034053: It is still possible to press twice Done or Layaway buttons
Clients like SuperdoƱa or Laeuropea are still having this problem from time to time.
We added a enyo.$.scrim.show(); but it is not enough. We have to research and find a way to avoid this double click.
Sometimes...

- Login
- Add a product
- Add exact payment
- Press Done twice
- ERROR: 2 Orders are send, one with all attributes initialized to null
No tags attached.
blocks defect 0033695 closed migueldejuana It is still possible to press twice Done or Layaway buttons 
Issue History
2016-09-22 11:11migueldejuanaTypedefect => backport
2016-09-22 11:11migueldejuanaTarget Version => RR16Q2.3
2016-09-22 15:39hgbotCheckin
2016-09-22 15:39hgbotNote Added: 0090170
2016-09-22 15:39hgbotStatusscheduled => resolved
2016-09-22 15:39hgbotResolutionopen => fixed
2016-09-22 15:39hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8288cc5de0f0c485a69011eceeaddd7d5ba8e55e [^] => http://code.openbravo.com/retail/backports/3.0RR16Q2.3/pi-mobile/rev/2ffc0fe74dd3a4b8f0a54437f166fd69486846e6 [^]
2016-09-22 15:39hgbotCheckin
2016-09-22 15:39hgbotNote Added: 0090171
2016-09-22 15:39hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR16Q2.3/pi-mobile/rev/2ffc0fe74dd3a4b8f0a54437f166fd69486846e6 [^] => http://code.openbravo.com/retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal/rev/6b285165afbcd634aa51070406d6c82ef913dee5 [^]
2016-09-26 23:08guilleaerStatusresolved => closed
2016-09-26 23:08guilleaerFixed in Version => RR16Q2.3
2016-10-05 12:39hgbotCheckin
2016-10-05 12:39hgbotNote Added: 0090495
2016-10-05 12:39hgbotStatusclosed => resolved
2016-10-05 12:39hgbotFixed in SCM revisionhttp://code.openbravo.com/retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal/rev/6b285165afbcd634aa51070406d6c82ef913dee5 [^] => http://code.openbravo.com/tools/automation/pi-mobile/rev/2ffc0fe74dd3a4b8f0a54437f166fd69486846e6 [^]
2016-11-17 19:34guilleaerNote Added: 0091641
2016-11-17 19:34guilleaerStatusresolved => closed

Notes
(0090170)
hgbot   
2016-09-22 15:39   
Repository: retail/backports/3.0RR16Q2.3/pi-mobile
Changeset: 2ffc0fe74dd3a4b8f0a54437f166fd69486846e6
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 15:38:58 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.3/pi-mobile/rev/2ffc0fe74dd3a4b8f0a54437f166fd69486846e6 [^]

Fixed issue 0034053: It is still possible to press twice Done or Layaway buttons

- Add time to wait until Done button can be pressed again
- Ensure that Done button is disabled after doing a sale

---
M src-test/org/openbravo/test/mobile/common/selenium/testhelpers/TestActionsHelper.java
M src-test/org/openbravo/test/mobile/common/selenium/utils/OBConstants.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/SALa010_CreateSale.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I33695_CashupInvoiceTaxPrecision.java
---
(0090171)
hgbot   
2016-09-22 15:39   
Repository: retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal
Changeset: 6b285165afbcd634aa51070406d6c82ef913dee5
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 15:26:30 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal/rev/6b285165afbcd634aa51070406d6c82ef913dee5 [^]

Fixed issue 0034053: It is still possible to press twice Done or Layaway buttons

- Block Done button during 1 second to avoid double click
- Delete current before setting to false calculateReceiptLock in order to do not trigger any receipt event when clearing the order
- Avoid calling updatePending or checkValidPayment when we are processing the receipt (after pressing Done button)

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---
(0090495)
hgbot   
2016-10-05 12:39   
Repository: tools/automation/pi-mobile
Changeset: 2ffc0fe74dd3a4b8f0a54437f166fd69486846e6
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Thu Sep 22 15:38:58 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/2ffc0fe74dd3a4b8f0a54437f166fd69486846e6 [^]

Fixed issue 0034053: It is still possible to press twice Done or Layaway buttons

- Add time to wait until Done button can be pressed again
- Ensure that Done button is disabled after doing a sale

---
M src-test/org/openbravo/test/mobile/common/selenium/testhelpers/TestActionsHelper.java
M src-test/org/openbravo/test/mobile/common/selenium/utils/OBConstants.java
M src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/sales/SALa010_CreateSale.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/cashup/I33695_CashupInvoiceTaxPrecision.java
---
(0091641)
guilleaer   
2016-11-17 19:34   
reclosing issue