Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032062Retail ModulesWeb POSpublic2016-01-29 16:122016-02-02 12:32
marvintm 
jorge-garcia 
normalminorhave not tried
closedfixed 
5
 
RR16Q2 
marvintm
No
0032062: A new hook which receives the print information which is going to be sent to the Hardware Manager needs to be created
When a new receipt is printed, a template is used to generate the final receipt information, and finally this information is sent to the Hardware Manager which prints it.

It would be very useful to create a hook which receives the complete receipt information which is going to be sent to the Hardware Manager, just before it is sent to be printed. This information then could be persisted or used in whatever system needs it.
.
No tags attached.
Issue History
2016-01-29 16:12marvintmNew Issue
2016-01-29 16:12marvintmAssigned To => Retail
2016-01-29 16:12marvintmTriggers an Emergency Pack => No
2016-02-01 12:55OrekariaStatusnew => acknowledged
2016-02-01 12:55OrekariaResolution time => 1455490800
2016-02-01 13:01jorge-garciaStatusacknowledged => scheduled
2016-02-01 13:01jorge-garciaAssigned ToRetail => jorge-garcia
2016-02-02 12:09hgbotCheckin
2016-02-02 12:09hgbotNote Added: 0083840
2016-02-02 12:09hgbotStatusscheduled => resolved
2016-02-02 12:09hgbotResolutionopen => fixed
2016-02-02 12:09hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/bda68470bc952e2c96bfd90fe0e654106d6c66b4 [^]
2016-02-02 12:32marvintmReview Assigned To => marvintm
2016-02-02 12:32marvintmStatusresolved => closed
2016-02-02 12:32marvintmFixed in Version => RR16Q2

Notes
(0083840)
hgbot   
2016-02-02 12:09   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: bda68470bc952e2c96bfd90fe0e654106d6c66b4
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 02 12:02:56 2016 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/bda68470bc952e2c96bfd90fe0e654106d6c66b4 [^]

Fixed issue 32062: A new hook which receives the print information which is
going to be sent to the Hardware Manager needs to be created

Added hook OBPRINT_PostPrint.

The hook only works with templates type XML.

---
M web/org.openbravo.retail.posterminal/js/datasource.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-print.js
---