Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036701Retail ModulesWeb POSpublic2017-08-23 10:222017-09-15 11:56
jonibc 
jorge-garcia 
highmajoralways
closedfixed 
5
 
RR17Q4 
marvintm
No
0036701: [SERQA 3212] EnableButtonsCallback is not done in cancellation of BeforeCustomerAddrSave hook
If cancellation argument is true, enableButtonsCallback is not done.

The buttons get blocked and it is not possible to save any new address until a refresh is done.
Implement a hook where we always set args.cancellation = true.

Check that buttons for addresses are blocked until a refresh is done.
Do call to enableButtonsCallback before return true in cancellation of BeforeCustomerAddrSave hook. Check the following extract of code.

                OB.UTIL.HookManager.executeHooks('OBPOS_BeforeCustomerAddrSave', {
                    customerAddr: this.model.get('customerAddr'),
                    isNew: true,
                    windowComponent: me
                }, function(args) {
                    if (args && args.cancellation && args.cancellation === true) {
                        // Add enableButtonsCallback
                        enableButtonsCallback();
                        return true;
                    }
No tags attached.
related to defect 0035981pi closed jorge-garcia [SERQA 2847] Buttons for customer and locations are not blocked in synchronized mode. 
Issue History
2017-08-23 10:22jonibcNew Issue
2017-08-23 10:22jonibcAssigned To => Retail
2017-08-23 10:22jonibcResolution time => 1504562400
2017-08-23 10:22jonibcTriggers an Emergency Pack => No
2017-08-23 10:23jonibcSummary[SERQA 3212] EnableButtonsCallback is not done in cancellation => [SERQA 3212] EnableButtonsCallback is not done in cancellation of BeforeCustomerAddrSave hook
2017-08-23 10:35jonibcRelationship addedrelated to 0035981
2017-08-23 23:32rqueraltaAssigned ToRetail => rqueralta
2017-08-23 23:32rqueraltaStatusnew => scheduled
2017-08-29 09:58jonibcIssue Monitored: jonibc
2017-09-11 11:17jorge-garciaAssigned Torqueralta => jorge-garcia
2017-09-11 17:07hgbotCheckin
2017-09-11 17:07hgbotNote Added: 0098951
2017-09-11 17:08hgbotCheckin
2017-09-11 17:08hgbotNote Added: 0098952
2017-09-11 17:08hgbotStatusscheduled => resolved
2017-09-11 17:08hgbotResolutionopen => fixed
2017-09-11 17:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e3d4f2d75c3455e767f3471ee4937896ebd04ad9 [^]
2017-09-15 11:56marvintmReview Assigned To => marvintm
2017-09-15 11:56marvintmStatusresolved => closed
2017-09-15 11:56marvintmFixed in Version => RR17Q4

Notes
(0098951)
hgbot   
2017-09-11 17:07   
Repository: tools/automation/pi-mobile
Changeset: ed53fed0527ecc97309f0d5e45a0a1ed91e48ce1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Sep 11 11:59:41 2017 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/ed53fed0527ecc97309f0d5e45a0a1ed91e48ce1 [^]

Verifies issue 36701: [SERQA 3212] EnableButtonsCallback is not done in
cancellation of BeforeCustomerAddrSave hook

Added test I36701_EnableButtonsInCancellationHook.

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/customercreation/I36701_EnableButtonsInCancellationHook.java
---
(0098952)
hgbot   
2017-09-11 17:08   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: e3d4f2d75c3455e767f3471ee4937896ebd04ad9
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Sep 11 11:19:58 2017 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/e3d4f2d75c3455e767f3471ee4937896ebd04ad9 [^]

Fixed issue 36701: [SERQA 3212] EnableButtonsCallback is not done in
cancellation of BeforeCustomerAddrSave hook

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/subwindows/customeraddress/components/sharedcomponents.js
---