Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030208Retail ModulesWeb POSpublic2015-06-19 09:392015-07-20 13:59
malsasua 
guilleaer 
normalmajoralways
closedfixed 
20Community Appliance
 
 
migueldejuana
No
0030208: create a hook when receipt is created in webpos
A hook should be created when the button new receipt is clicked in webpos
n/a
patch attached
No tags attached.
causes defect 0031035RR15Q4 closed dbaz Deprecation messages when logging in web pos 
causes defect 0034412 closed jorge-garcia Multi ticket is not working when preference "Web POS Print suspended order" is set to "Y" 
diff hookOBPOS_CreateReceipt.diff (3,284) 2015-06-19 09:39
https://issues.openbravo.com/file_download.php?file_id=8218&type=bug
diff addHooks_issue_30208_final.diff (3,520) 2015-06-30 13:58
https://issues.openbravo.com/file_download.php?file_id=8249&type=bug
Issue History
2015-06-19 09:39malsasuaNew Issue
2015-06-19 09:39malsasuaAssigned To => Retail
2015-06-19 09:39malsasuaFile Added: hookOBPOS_CreateReceipt.diff
2015-06-19 09:39malsasuaResolution time => 1436652000
2015-06-19 09:39malsasuaTriggers an Emergency Pack => No
2015-06-30 11:58guilleaerAssigned ToRetail => guilleaer
2015-06-30 13:57guilleaerFile Added: addHooks_issue_30208_final.diff
2015-06-30 13:58guilleaerFile Deleted: addHooks_issue_30208_final.diff
2015-06-30 13:58guilleaerFile Added: addHooks_issue_30208_final.diff
2015-06-30 14:08guilleaerNote Added: 0078593
2015-06-30 14:08guilleaerNote Edited: 0078593bug_revision_view_page.php?bugnote_id=0078593#r8950
2015-07-02 16:34hgbotCheckin
2015-07-02 16:34hgbotNote Added: 0078626
2015-07-02 16:34hgbotStatusnew => resolved
2015-07-02 16:34hgbotResolutionopen => fixed
2015-07-02 16:34hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/def6db59d486662f86abaef2ac435dca19c5db5b [^]
2015-07-20 13:59migueldejuanaReview Assigned To => migueldejuana
2015-07-20 13:59migueldejuanaNote Added: 0078971
2015-07-20 13:59migueldejuanaStatusresolved => closed
2015-10-02 16:01OrekariaRelationship addedcauses 0031035
2016-11-13 18:43dmitry_mezentsevRelationship addedcauses 0034412

Notes
(0078593)
guilleaer   
2015-06-30 14:08   
Attached a diff which includes 2 new hooks [addHooks_issue_30208_final.diff]

OBPOS_PreCreateNewReceipt:
Executed when new button is pressed. At this point the developer can modify the information about the model or cancel the operation.
  Arguments:
    In:
      model-> current window model
      context -> Enyo component which represent the button.
    Out:
      cancelOperation -> Cancel the creation of the new order
  Example of use:
    Whenever a new receipt is created the developer wants to check something external and then add information to the new order model.

OBPOS_PostCreateNewReceipt:
Executed when the new order has been already added to the list of opened orders
  Arguments:
    In:
      model-> current window model
      context -> Enyo component which represent the button.
  Example of use:
    Once a new ticket is created, show the receipt properties dialog.

These hooks will be part of 15Q4 Release

(0078626)
hgbot   
2015-07-02 16:34   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: def6db59d486662f86abaef2ac435dca19c5db5b
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Jul 02 11:57:56 2015 +0200
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/def6db59d486662f86abaef2ac435dca19c5db5b [^]

fixed issue 30208: 2 new hooks have been added to allow the customization of the process which creates new orders.

OBPOS_PreCreateNewReceipt: Executed when new button is pressed. At this point the developer can modify the information about the model or cancel the operation.
OBPOS_PostCreateNewReceipt: Executed when the new order has been already added to the list of opened orders.

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/toolbar-left.js
---
(0078971)
migueldejuana   
2015-07-20 13:59   
Tested and reviewed in 976cfed505b7