Openbravo Issue Tracking System - Retail Modules
View Issue Details
0036711Retail ModulesLayaway orderpublic2017-08-24 12:302017-09-08 15:10
airaceburu 
ranjith_qualiantech_com 
normalmajorsometimes
closedfixed 
5
 
piRR17Q4 
marvintm
No
0036711: Void layaway template can be printed without lines
In receipt.on('voidLayaway'... receipt.trigger('print') is called and just after orderList.deleteCurrent() is called.

If there is asynchrony in the fist call the second call can remove attributes that those asynchronous threads need. In that case the receipt object, once in the hardware manager will not have its lines, attributes... and therefore the printing will be wrong
Implement the preprint hook with asynchronous calls and some delay. Try to void a layaway and realize that it has no lines
The auxReceipt object is not being used. Probably using it fixes this
No tags attached.
Issue History
2017-08-24 12:30airaceburuNew Issue
2017-08-24 12:30airaceburuAssigned To => Retail
2017-08-24 12:30airaceburuResolution time => 1504735200
2017-08-24 12:30airaceburuTriggers an Emergency Pack => No
2017-08-31 14:25ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2017-08-31 14:25ranjith_qualiantech_comStatusnew => scheduled
2017-09-05 12:28hgbotCheckin
2017-09-05 12:28hgbotNote Added: 0098828
2017-09-05 12:28hgbotStatusscheduled => resolved
2017-09-05 12:28hgbotResolutionopen => fixed
2017-09-05 12:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b3ce316b046faf5de84f1c1cf650b7ff65058ef4 [^]
2017-09-08 15:10marvintmReview Assigned To => marvintm
2017-09-08 15:10marvintmStatusresolved => closed
2017-09-08 15:10marvintmFixed in Version => RR17Q4

Notes
(0098828)
hgbot   
2017-09-05 12:28   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: b3ce316b046faf5de84f1c1cf650b7ff65058ef4
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Sep 05 15:57:49 2017 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/b3ce316b046faf5de84f1c1cf650b7ff65058ef4 [^]

Fixed issue 36711 : Validate receipt before print

* Receipt should be cloned before preprint hook in order to avoid the loss of receipt data in preprint asynchronous hook call

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