Openbravo Issue Tracking System - Retail Modules
View Issue Details
0026697Retail ModulesWeb POSpublic2014-05-26 19:282014-05-30 10:57
caristu 
marvintm 
urgentmajoralways
closedfixed 
5
 
RR14Q3RR14Q3 
Orekaria
No
0026697: Change pointofsale-model to guaranty the delete of the order at the end in case a hook is executed
The following lines must be replaced in pointofsale-model:

  receipt.trigger('print'); // to guaranty execution order
  orderList.deleteCurrent(true);

A callback must be added in order to ensure that deleteCurrent is executed at the end of the print actions, including the possible actions performed from the hook.
.
No tags attached.
causes defect 0028140 closed migueldejuana Print last module doesn't work 
diff Issue1.diff (3,172) 2014-05-27 13:33
https://issues.openbravo.com/file_download.php?file_id=6951&type=bug
Issue History
2014-05-26 19:28caristuNew Issue
2014-05-26 19:28caristuAssigned To => malsasua
2014-05-26 19:28caristuTriggers an Emergency Pack => No
2014-05-26 19:28caristuIssue Monitored: networkb
2014-05-27 13:33caristuFile Added: Issue1.diff
2014-05-27 13:33caristuAssigned Tomalsasua => marvintm
2014-05-27 13:34caristuTarget Version => RR14Q3
2014-05-27 17:03hgbotCheckin
2014-05-27 17:03hgbotNote Added: 0067482
2014-05-27 17:03hgbotStatusnew => resolved
2014-05-27 17:03hgbotResolutionopen => fixed
2014-05-27 17:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/000ed0092ce4c50b3047b59e86d456a1731168ca [^]
2014-05-30 10:57OrekariaReview Assigned To => Orekaria
2014-05-30 10:57OrekariaNote Added: 0067605
2014-05-30 10:57OrekariaStatusresolved => closed
2014-05-30 10:57OrekariaFixed in Version => RR14Q3
2014-11-12 13:38dmitry_mezentsevRelationship addedcauses 0028140

Notes
(0067482)
hgbot   
2014-05-27 17:03   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 000ed0092ce4c50b3047b59e86d456a1731168ca
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Tue May 27 17:03:10 2014 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/000ed0092ce4c50b3047b59e86d456a1731168ca [^]

Fixed issue 26697. Now the order will always be deleted after the execution of the hook in the print event.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---
(0067605)
Orekaria   
2014-05-30 10:57   
Tested with head 71ac85d89457