Openbravo Issue Tracking System - Retail Modules
View Issue Details
0040112Retail ModulesWeb POSpublic2019-01-15 12:432019-03-05 17:35
asiermartirena 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR19Q1 
jorge-garcia
No
0040112: The callbacks of a calculateReceipt are executed with the calculateReceipt process set
When the callbacks of a calculate receipt are executed, those executions are made with the process controller of the calculateReceipt set. The process should finish and them the callbacks should be called.

This also occurred for the calculatingReceipt property.

Those properties should be set before calling to the callbacks, copying the calculateReceiptCallbacks to a new array and unsetting it. In this way, if one of the callbacks executes the calculate receipt when all the callbacks haven't been executed, those new callbacks won't be set to the same array.
Add a line in the Web POS and debug the code.
No tags attached.
blocks defect 0039950 closed ranjith_qualiantech_com The callbacks of a calculateReceipt are executed with the calculateReceipt process set 
Issue History
2019-02-04 09:16marvintmTypedefect => backport
2019-02-04 09:16marvintmTarget Version => RR19Q1
2019-02-12 12:23hgbotCheckin
2019-02-12 12:23hgbotNote Added: 0109704
2019-02-12 12:23hgbotStatusscheduled => resolved
2019-02-12 12:23hgbotResolutionopen => fixed
2019-02-12 12:23hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/6a36d470afb3d679175071bb3ef645bd2771a7b0 [^] => http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/6c33f298453eeff85a9b546730332e4065240501 [^]
2019-03-05 17:35jorge-garciaReview Assigned To => jorge-garcia
2019-03-05 17:35jorge-garciaNote Added: 0110239
2019-03-05 17:35jorge-garciaStatusresolved => closed

Notes
(0109704)
hgbot   
2019-02-12 12:23   
Repository: retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal
Changeset: 6c33f298453eeff85a9b546730332e4065240501
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Tue Feb 12 16:52:31 2019 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR19Q1/org.openbravo.retail.posterminal/rev/6c33f298453eeff85a9b546730332e4065240501 [^]

Fixed issue 40112 : Changes in calculateReceipt callback functions

* If calculateReceipt is presents inside callback of calculateReceipt, callback should be called when the calculateReceipt process is completed

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0110239)
jorge-garcia   
2019-03-05 17:35   
Code reviewed and tested