Openbravo Issue Tracking System - POS2 | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0050221 | POS2 | POS | public | 2022-09-12 11:05 | 2022-09-12 11:47 |
Reporter | mtaal | ||||
Assigned To | mtaal | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | |||||
Target Version | Fixed in Version | 22Q4 | |||
Merge Request Status | approved | ||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0050221: Coupon Delivery Control Method does not work | ||||
Description | In pos2 standard without custom overrides the coupon delivery control method results in a javascript error [1] [1] Uncaught (in promise) DOMException: Failed to execute 'put' on 'IDBObjectStore': #<Promise> could not be cloned. at https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/8.efb9cf6e.chunk.js:1:118123 [^] at Array.forEach (<anonymous>) at OB.App.Class.IndexedDBController.write (https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/8.efb9cf6e.chunk.js:1:118106 [^]) at OB.App.Class.IndexedDBController.put (https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/8.efb9cf6e.chunk.js:1:117969 [^]) at Object.put (https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/8.efb9cf6e.chunk.js:1:174097 [^]) at OB.App.Class.SynchronizationBuffer.onMessagesChanged (https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/8.efb9cf6e.chunk.js:1:175822 [^]) at https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/8.efb9cf6e.chunk.js:1:112480 [^] at Array.forEach (<anonymous>) at OB.App.Class.PersistenceChangeListenerManager.handleChange (https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/8.efb9cf6e.chunk.js:1:112445 [^]) at Object.m [as dispatch] (https://restaurant-demo.services.openbravo.com/openbravo/web/pos/static/js/12.3f0ae5b0.chunk.js:2:111818 [^]) | ||||
Steps To Reproduce | Set a delivery control method as coupon, or print a coupon when the pager does not work because the pager is not connected. The error occurs because the system passes an unresolved promise in the message which is stored in to the messagebuffer. The messagebuffer tries to persist itself but promises can not be persisted. | ||||
Proposed Solution | Remove the word async here [1], it is not needed [1] https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/blob/master/web-jspack/org.openbravo.pos2/src/core/pickupPoint/deliveryControl/coupon/CouponDeliveryControlMethod.js#L35 [^] | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2022-09-12 11:05 | mtaal | New Issue | |||
2022-09-12 11:05 | mtaal | Assigned To | => mtaal | ||
2022-09-12 11:05 | mtaal | OBNetwork customer | => No | ||
2022-09-12 11:05 | mtaal | Triggers an Emergency Pack | => No | ||
2022-09-12 11:46 | hgbot | Merge Request Status | => open | ||
2022-09-12 11:46 | hgbot | Note Added: 0141013 | |||
2022-09-12 11:47 | hgbot | Merge Request Status | open => approved | ||
2022-09-12 11:47 | hgbot | Resolution | open => fixed | ||
2022-09-12 11:47 | hgbot | Status | new => closed | ||
2022-09-12 11:47 | hgbot | Fixed in Version | => 22Q4 | ||
2022-09-12 11:47 | hgbot | Note Added: 0141014 | |||
2022-09-12 11:47 | hgbot | Note Added: 0141015 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|