Openbravo Issue Tracking System - Retail Modules | ||||||||||||
| View Issue Details | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||||
| 0042603 | Retail Modules | Web POS | public | 2019-12-18 18:54 | 2019-12-20 09:32 | |||||||
| Reporter | ngarcia | |||||||||||
| Assigned To | ranjith_qualiantech_com | |||||||||||
| Priority | urgent | Severity | major | Reproducibility | always | |||||||
| Status | closed | Resolution | fixed | |||||||||
| Platform | OS | 5 | OS Version | |||||||||
| Product Version | ||||||||||||
| Target Version | Fixed in Version | RR20Q1 | ||||||||||
| Merge Request Status | ||||||||||||
| Review Assigned To | marvintm | |||||||||||
| OBNetwork customer | Gold | |||||||||||
| Support ticket | 13588 | |||||||||||
| Regression level | ||||||||||||
| Regression date | ||||||||||||
| Regression introduced in release | ||||||||||||
| Regression introduced by commit | ||||||||||||
| Triggers an Emergency Pack | No | |||||||||||
| Summary | 0042603: If a payment is modified in OBPOS_postAddPayment and the POS is refreshed (F5) that change is lost | |||||||||||
| Description | If a payment is modified in OBPOS_postAddPayment and the POS is refreshed (F5) that change is lost | |||||||||||
| Steps To Reproduce | In the POS: Open the developers tools of the browser Add the following code in the console: OB.UTIL.HookManager.registerHook('OBPOS_postAddPayment', function(args, callbacks) { args.paymentAdded.set('newproperty', true); OB.UTIL.HookManager.callbackExecutor(args, callbacks); }); Create a new receipt Add a payment to it Check the 'newproperty' is present in the payment by OB.MobileApp.model.receipt.attributes.payments.models[0].attributes Push F5 Check the 'newproperty' is not present in the payment by OB.MobileApp.model.receipt.attributes.payments.models[0].attributes Complete the receipt and check the JSON is sent without newproperty | |||||||||||
| Proposed Solution | Change the logic of saving the ticket after the hook: if (saveChanges && !payment.get('changePayment')) { order.adjustPayment(); order.trigger('displayTotal'); order.save(); order.trigger('saveCurrent'); } | |||||||||||
| Additional Information | ||||||||||||
| Tags | No tags attached. | |||||||||||
| Relationships |
| |||||||||||
| Attached Files | ||||||||||||
| Issue History | ||||||||||||
| Date Modified | Username | Field | Change | |||||||||
| 2019-12-18 18:54 | ngarcia | New Issue | ||||||||||
| 2019-12-18 18:54 | ngarcia | Assigned To | => Retail | |||||||||
| 2019-12-18 18:54 | ngarcia | OBNetwork customer | => Gold | |||||||||
| 2019-12-18 18:54 | ngarcia | Support ticket | => 13588 | |||||||||
| 2019-12-18 18:54 | ngarcia | Resolution time | => 1578438000 | |||||||||
| 2019-12-18 18:54 | ngarcia | Triggers an Emergency Pack | => No | |||||||||
| 2019-12-18 18:54 | ngarcia | Issue Monitored: networkb | ||||||||||
| 2019-12-19 12:35 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | |||||||||
| 2019-12-20 03:19 | ranjith_qualiantech_com | Status | new => scheduled | |||||||||
| 2019-12-20 03:39 | hgbot | Checkin | ||||||||||
| 2019-12-20 03:39 | hgbot | Note Added: 0116447 | ||||||||||
| 2019-12-20 03:39 | hgbot | Status | scheduled => resolved | |||||||||
| 2019-12-20 03:39 | hgbot | Resolution | open => fixed | |||||||||
| 2019-12-20 03:39 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3b75f505153444ce248669df317b4702da2330cf [^] | |||||||||
| 2019-12-20 09:32 | marvintm | Review Assigned To | => marvintm | |||||||||
| 2019-12-20 09:32 | marvintm | Status | resolved => closed | |||||||||
| 2019-12-20 09:32 | marvintm | Fixed in Version | => RR20Q1 | |||||||||
| 2020-01-02 08:54 | guillermogil | Relationship added | causes 0042671 | |||||||||
| Notes | |||||
|
|
|||||
|
|
||||