Openbravo Issue Tracking System - Retail Modules
View Issue Details
0037392Retail ModulesWeb POSpublic2017-11-27 13:302017-11-28 17:59
lmonreal 
jorge-garcia 
urgentmajorrandom
closedfixed 
5
 
RR18Q1 
marvintm
No
0037392: ON paymentDone trigger, Done button has to be deactivated.
ON paymentDone trigger, Done button has to be deactivated.
It can rely on several critical issues when someone clicks on Done by anychance.

1. Do a transaction
2. Done can be clicked and is clicked.
No tags attached.
Issue History
2017-11-27 13:30lmonrealNew Issue
2017-11-27 13:30lmonrealAssigned To => Retail
2017-11-27 13:30lmonrealResolution time => 1513551600
2017-11-27 13:30lmonrealTriggers an Emergency Pack => No
2017-11-27 13:34jorge-garciaStatusnew => scheduled
2017-11-27 13:34jorge-garciaAssigned ToRetail => jorge-garcia
2017-11-28 09:10hgbotCheckin
2017-11-28 09:10hgbotNote Added: 0100753
2017-11-28 09:10hgbotStatusscheduled => resolved
2017-11-28 09:10hgbotResolutionopen => fixed
2017-11-28 09:10hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3230913ba6871672fda3f90e60a5a729b50a2760 [^]
2017-11-28 17:56marvintmSeveritycritical => major
2017-11-28 17:59marvintmReview Assigned To => marvintm
2017-11-28 17:59marvintmStatusresolved => closed
2017-11-28 17:59marvintmFixed in Version => RR18Q1

Notes
(0100753)
hgbot   
2017-11-28 09:10   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3230913ba6871672fda3f90e60a5a729b50a2760
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Nov 27 16:35:22 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3230913ba6871672fda3f90e60a5a729b50a2760 [^]

Fixed issue 37392: ON paymentDone trigger, Done button has to be
deactivated

The solution is to implement a trigger inside paymentDone listener to
disable the done button.

This will avoid to push the done button during a paymentDone process
(launched in the code).

The trigger is implemented for single and multi orders.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/view/payment.js
---