Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035445Retail ModulesWeb POSpublic2017-03-07 13:262017-03-16 14:03
aaroncalero 
migueldejuana 
normalmajoralways
closedfixed 
5
 
RR17Q2 
marvintm
No
0035445: When paying a multiorder, prepareToSendCallback is executed for every payment assigned
When a multiorder is paid (pay Open Tickets flow), all payments added to the multiorder are split between the receipts that are part of the multiorder.
Every time a split payment is added to a receipt, the prepareToSendCallback is executed.
This function acts differently depending on the OBMOBC_SynchronizedMode preference:
If the preference is not set, then the tickets on the multiorder are printed every time a split payment is added.
If the preference is set, then the 'close' event of each receipt is triggered every time a split payment is added.
Having the hardware manager configured.
Login in web pos and create two tickets in draft mode. Add a product to each ticket.
Go to the menu > Pay Open Tickets, search the two draft receipts and click on Done.
Pay the multiorder using 3 different payment methods.
Check the hardware manager: 3 tickets will be shown.
No tags attached.
? issue35445.commit (1,575) 2017-03-16 11:26
https://issues.openbravo.com/file_download.php?file_id=10575&type=bug
Issue History
2017-03-07 13:26aaroncaleroNew Issue
2017-03-07 13:26aaroncaleroAssigned To => Retail
2017-03-07 13:26aaroncaleroResolution time => 1490050800
2017-03-07 13:26aaroncaleroTriggers an Emergency Pack => No
2017-03-10 10:25migueldejuanaAssigned ToRetail => migueldejuana
2017-03-10 10:25migueldejuanaStatusnew => scheduled
2017-03-16 11:26migueldejuanaFile Added: issue35445.commit
2017-03-16 13:20hgbotCheckin
2017-03-16 13:20hgbotNote Added: 0095318
2017-03-16 13:20hgbotStatusscheduled => resolved
2017-03-16 13:20hgbotResolutionopen => fixed
2017-03-16 13:20hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/088e60886b16085d7de9be49f8cdcf3cffe02589 [^]
2017-03-16 14:03marvintmReview Assigned To => marvintm
2017-03-16 14:03marvintmStatusresolved => closed
2017-03-16 14:03marvintmFixed in Version => RR17Q2

Notes
(0095318)
hgbot   
2017-03-16 13:20   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 088e60886b16085d7de9be49f8cdcf3cffe02589
Author: Miguel de Juana <miguel.dejuana <at> openbravo.com>
Date: Tue Mar 14 07:41:01 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/088e60886b16085d7de9be49f8cdcf3cffe02589 [^]

Fixed issue 0035445: When paying a multiorder, prepareToSendCallback is executed for every payment assigned

- PrepareToSend the receipt just when the order has finished

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