Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0038847 | Retail Modules | Web POS | public | 2018-06-27 13:47 | 2018-07-26 10:03 | |||||||
Reporter | guilleaer | |||||||||||
Assigned To | guilleaer | |||||||||||
Priority | normal | Severity | minor | Reproducibility | have not tried | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR18Q4 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Support ticket | 2701 | |||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0038847: Wrong asynchrony point in in cash managment process | |||||||||||
Description | Wrong asynchrony point in in cash managment process file: cashmgmt.js line: 172 & 184 this.model.get('cashMgmtDropEvents').on('click', function (model) { this.model.depsdropstosave.trigger('paymentDone', model, this.currentPayment); delete this.currentPayment; }, this); delete this.currentPayment -> is being executed after trigger, but trigger is creating asynchrony. This is wrong. delete this.currentPayment should be executed when trigger execution really finishes. To do that trigger admits a callbacf function as a parameter. Is there where the instruction should be executed. | |||||||||||
Steps To Reproduce | Add this log OB.info('[CashMgmnt] Items to be processed (Apart from new one): ' + JSON.stringify(this.model.depsdropstosave.models.map(function (item) { return item.get('id') + ' Amount: ' + item.get('amount') + ' origAmount: ' + item.get('origAmount') + ' currency: ' + item.get('isocode') + ' paymentMethodId: ' + item.get('paymentMethodId') + ' cashup_id: ' + item.get('cashup_id') }))); just before delete this.currentPayment; You will se that log will show that the cash managment action is not already added | |||||||||||
Proposed Solution | ||||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=11909&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=11919&type=bug | |||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2018-06-27 13:47 | guilleaer | New Issue | ||||||||||
2018-06-27 13:47 | guilleaer | Assigned To | => Retail | |||||||||
2018-06-27 13:47 | guilleaer | OBNetwork customer | => No | |||||||||
2018-06-27 13:47 | guilleaer | Triggers an Emergency Pack | => No | |||||||||
2018-06-28 15:27 | guilleaer | Relationship added | related to 0038848 | |||||||||
2018-06-28 16:01 | egoitz | Issue Monitored: egoitz | ||||||||||
2018-06-28 17:20 | guilleaer | Assigned To | Retail => guilleaer | |||||||||
2018-06-28 17:20 | guilleaer | Status | new => scheduled | |||||||||
2018-06-28 17:21 | guilleaer | File Added: 38847_PI.diff | ||||||||||
2018-06-28 17:24 | guilleaer | OBNetwork customer | No => Yes | |||||||||
2018-06-28 17:24 | guilleaer | Support ticket | => 2701 | |||||||||
2018-06-28 17:42 | guilleaer | Resolution time | => 1531951200 | |||||||||
2018-07-02 14:06 | guilleaer | File Added: 38847_2_PI.diff | ||||||||||
2018-07-04 14:12 | hgbot | Checkin | ||||||||||
2018-07-04 14:12 | hgbot | Note Added: 0105572 | ||||||||||
2018-07-04 14:12 | hgbot | Status | scheduled => resolved | |||||||||
2018-07-04 14:12 | hgbot | Resolution | open => fixed | |||||||||
2018-07-04 14:12 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3c658d4c71ce95f1e520f743635820a3cee2adec [^] | |||||||||
2018-07-26 10:03 | marvintm | Review Assigned To | => marvintm | |||||||||
2018-07-26 10:03 | marvintm | Status | resolved => closed | |||||||||
2018-07-26 10:03 | marvintm | Fixed in Version | => RR18Q4 |
Notes | |||||
|
|||||
|
|