Openbravo Issue Tracking System - Retail Modules | ||||||||||||
View Issue Details | ||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
0036275 | Retail Modules | Web POS | public | 2017-06-19 16:59 | 2017-06-27 09:12 | |||||||
Reporter | jonibc | |||||||||||
Assigned To | ranjith_qualiantech_com | |||||||||||
Priority | high | Severity | major | Reproducibility | always | |||||||
Status | closed | Resolution | fixed | |||||||||
Platform | OS | 5 | OS Version | |||||||||
Product Version | ||||||||||||
Target Version | Fixed in Version | RR17Q3 | ||||||||||
Merge Request Status | ||||||||||||
Review Assigned To | marvintm | |||||||||||
OBNetwork customer | OBPS | |||||||||||
Support ticket | ||||||||||||
Regression level | ||||||||||||
Regression date | ||||||||||||
Regression introduced in release | ||||||||||||
Regression introduced by commit | ||||||||||||
Triggers an Emergency Pack | No | |||||||||||
Summary | 0036275: [SERQA 3022] Error callback not done in runSyncProcess (PostCustomerSave hook) | |||||||||||
Description | Error callback is not sent to RunSyncProcess function, so if an error is raised, while saving a customer, can block 'Save' and 'Cancel' buttons until a refresh is done in the browser. OB.UTIL.HookManager.executeHooks('OBPOS_PostCustomerSave', { customer: customer, bpToSave: bpToSave }, function (args) { OB.Dal.save(bpToSave, function () { // update each order also so that new name is shown and the bp // in the order is the same as what got saved .... var successCallback, errorCallback, List; successCallback = function () { if (callback) { callback(); } OB.UTIL.showSuccess(OB.I18N.getLabel('OBPOS_customerSaved', [customer.get('_identifier')])); }; OB.MobileApp.model.runSyncProcess(successCallback); }, function () { //error saving BP changes with changes in changedbusinesspartners OB.UTIL.showError(OB.I18N.getLabel('OBPOS_errorSavingCustomerChanges', [customer.get('_identifier')])); }); | |||||||||||
Steps To Reproduce | N/A | |||||||||||
Proposed Solution | Add callback to runSyncProcess function as follows: OB.MobileApp.model.runSyncProcess(successCallback, callback); Also to avoid the error added in Notes, the proposal is: Send a boolean parameter through callback function, that allows to skip the code if an error is raised. | |||||||||||
Additional Information | ||||||||||||
Tags | No tags attached. | |||||||||||
Relationships |
| |||||||||||
Attached Files | ||||||||||||
Issue History | ||||||||||||
Date Modified | Username | Field | Change | |||||||||
2017-06-19 16:59 | jonibc | New Issue | ||||||||||
2017-06-19 16:59 | jonibc | Assigned To | => Retail | |||||||||
2017-06-19 16:59 | jonibc | OBNetwork customer | => Yes | |||||||||
2017-06-19 16:59 | jonibc | Resolution time | => 1499119200 | |||||||||
2017-06-19 16:59 | jonibc | Triggers an Emergency Pack | => No | |||||||||
2017-06-19 17:15 | jonibc | Relationship added | related to 0035981 | |||||||||
2017-06-20 11:46 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
2017-06-20 11:46 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
2017-06-20 13:19 | jonibc | Note Added: 0097509 | ||||||||||
2017-06-20 13:19 | jonibc | Proposed Solution updated | ||||||||||
2017-06-26 14:23 | hgbot | Checkin | ||||||||||
2017-06-26 14:23 | hgbot | Note Added: 0097655 | ||||||||||
2017-06-26 14:23 | hgbot | Status | scheduled => resolved | |||||||||
2017-06-26 14:23 | hgbot | Resolution | open => fixed | |||||||||
2017-06-26 14:23 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/62e2b80668eb5009711ab99c962b5bfe0acec569 [^] | |||||||||
2017-06-27 09:12 | marvintm | Review Assigned To | => marvintm | |||||||||
2017-06-27 09:12 | marvintm | Status | resolved => closed | |||||||||
2017-06-27 09:12 | marvintm | Fixed in Version | => RR17Q3 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|