Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031438Retail ModulesWeb POSpublic2015-11-12 08:352015-11-20 08:55
guillermogil 
guillermogil 
normalmajorN/A
closedfixed 
5
 
RR16Q1 
marvintm
No
0031438: Create a Hook that will be executed on the scan functionality
Add Hooks on scan functionality to allow external modules to modify the information of the UPC or to set different functionalities on scan process.
e.g.- Scan a loyalty card and set a Business Partner to the receipt

Right now there is no possibility to modify that behaviour using modules.
N/A
See diff attached
No tags attached.
diff issue31438.diff (847) 2015-11-12 16:46
https://issues.openbravo.com/file_download.php?file_id=8715&type=bug
Issue History
2015-11-12 08:35guillermogilNew Issue
2015-11-12 08:35guillermogilAssigned To => guillermogil
2015-11-12 08:35guillermogilTriggers an Emergency Pack => No
2015-11-12 08:37guillermogilDescription Updatedbug_revision_view_page.php?rev_id=10175#r10175
2015-11-12 16:46guillermogilFile Added: issue31438.diff
2015-11-12 16:47guillermogilProposed Solution updated
2015-11-12 16:56guillermogilNote Added: 0081762
2015-11-13 09:03guillermogilReview Assigned To => marvintm
2015-11-13 18:17hgbotCheckin
2015-11-13 18:17hgbotNote Added: 0081836
2015-11-13 18:17hgbotStatusnew => resolved
2015-11-13 18:17hgbotResolutionopen => fixed
2015-11-13 18:17hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/730211a01999af2349a666578e158c0ebb3118ab [^]
2015-11-20 07:42hgbotCheckin
2015-11-20 07:42hgbotNote Added: 0082001
2015-11-20 07:42hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/730211a01999af2349a666578e158c0ebb3118ab [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/302ccfbf8009aa2d9ca375cbc29ea0570dc0a4de [^]
2015-11-20 08:55marvintmStatusresolved => closed
2015-11-20 08:55marvintmFixed in Version => RR16Q1

Notes
(0081762)
guillermogil   
2015-11-12 16:56   
Documentation of the hook:
http://wiki.openbravo.com/wiki/List_of_Hooks_in_Web_POS#Hooks [^]
(0081836)
hgbot   
2015-11-13 18:17   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 730211a01999af2349a666578e158c0ebb3118ab
Author: Guillermo Gil <guillermo.gil <at> openbravo.com>
Date: Thu Nov 12 16:45:23 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/730211a01999af2349a666578e158c0ebb3118ab [^]

Fixed issue 31438:Create a Hook that will be executed on barcode scan

OBPOS_PostBarcodeScan hook created with an argument to cancel the action
It is executed once some UPC has been scanned or added manually

---
M web/org.openbravo.retail.posterminal/js/pointofsale/view/keyboardorder.js
---
(0082001)
hgbot   
2015-11-20 07:42   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 302ccfbf8009aa2d9ca375cbc29ea0570dc0a4de
Author: Guillermo Gil <guillermo.gil <at> openbravo.com>
Date: Thu Nov 19 16:32:09 2015 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/302ccfbf8009aa2d9ca375cbc29ea0570dc0a4de [^]

Fixed issue 31438:Create Hooks on the barcode scan

Modified name OBPOS_PostBarcodeScan to OBPOS_BarcodeScan
Created new hook OBPOS_BarcodeSearch to be executed just after the Query of the products

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