Openbravo Issue Tracking System - Retail Modules
View Issue Details
0028272Retail ModulesWeb POSpublic2014-11-25 11:582015-01-30 11:21
malsasua 
malsasua 
highmajoralways
closedfixed 
20Community Appliance
 
RR14Q4RR14Q4 
mtaal
Packaging and release
2014-07-31
main
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f7d836b8cbb7a68b9f124ff0715fd282a4c1d56c [^]
No
0028272: hook pre_ordersave is not cancelling the save of the order
In the hook preorder_save, has been removed the code that it cancels the save of the order
. execute this hook:

OB.UTIL.HookManager.registerHook('OBPOS_PreOrderSave', function (args, callbacks) {
      args.cancellation = true;
      OB.MobileApp.model.hookManager.callbackExecutor(args, callbacks);
    });

. create new receipt and close it
. it has been saved in backend and it should not be synced
No tags attached.
related to defect 0028102RR15Q1 closed mario_castello Hook OBPOS_PreOrderSave is not working fine if you cancel the save process 
Issue History
2014-11-25 11:58malsasuaNew Issue
2014-11-25 11:58malsasuaAssigned To => marvintm
2014-11-25 11:58malsasuaRegression level => Packaging and release
2014-11-25 11:58malsasuaRegression date => 2014-07-31
2014-11-25 11:58malsasuaRegression introduced in release => main
2014-11-25 11:58malsasuaRegression introduced by commit => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/f7d836b8cbb7a68b9f124ff0715fd282a4c1d56c [^]
2014-11-25 11:58malsasuaTriggers an Emergency Pack => No
2014-11-25 12:08malsasuaStatusnew => scheduled
2014-11-25 12:08malsasuaAssigned Tomarvintm => malsasua
2014-11-25 12:08malsasuafix_in_branch => pi
2014-11-25 12:09malsasuaNote Added: 0071969
2014-11-25 12:09malsasuaStatusscheduled => resolved
2014-11-25 12:09malsasuaFixed in Version => RR14Q4
2014-11-25 12:09malsasuaResolutionopen => fixed
2014-11-25 12:13malsasuaRelationship addedrelated to 0028102
2014-12-08 22:49mtaalReview Assigned To => mtaal
2014-12-08 22:49mtaalNote Added: 0072337
2014-12-08 22:49mtaalStatusresolved => closed
2015-01-30 11:21hgbotCheckin
2015-01-30 11:21hgbotNote Added: 0073937

Notes
(0071969)
malsasua   
2014-11-25 12:09   
fixed by changeset:
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6e1eb612267b [^]
(0072337)
mtaal   
2014-12-08 22:49   
related issue was solved and closed
(0073937)
hgbot   
2015-01-30 11:21   
Repository: tools/automation/pi-mobile
Changeset: 304dc41c97e02e546ea78114cba8fc10f587e2ca
Author: Rafa Alonso <rafael.alonso <at> openbravo.com>
Date: Thu Jan 29 20:27:56 2015 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/304dc41c97e02e546ea78114cba8fc10f587e2ca [^]

Related to issue 28272: Added the 'I28272_HookPreOrderSaveNotCancelling' test

---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/suites/SystemSuite.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/system/I28272_HookPreOrderSaveNotCancelling.java
---