Openbravo Issue Tracking System - Retail Modules
View Issue Details
0042672Retail ModulesWeb POSpublic2020-01-02 08:542020-01-21 09:43
guillermogil 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR20Q1RR20Q1 
guilleaer
No
0042672: Save on PostAddPaymentHook breaks custom functionality
Save on PostAddPaymentHook breaks custom functionality on 20Q1 due to a new save done after the hook
On postAddPaymentHook execute the following:
order.trigger('paymentDone', OB.UTIL.isOpenDrawer(payment));

WebPOS breaks.
See diff attached.

With the proposed diff the hook has control on whether the save should happen or not, and therefore can prevent the problem from happening.
No tags attached.
blocks defect 0042671 closed ranjith_qualiantech_com Save on PostAddPaymentHook breaks custom functionality 
Issue History
2020-01-02 08:58marvintmTypedefect => backport
2020-01-02 08:58marvintmTarget Version => RR20Q1
2020-01-03 10:14hgbotCheckin
2020-01-03 10:14hgbotNote Added: 0116623
2020-01-03 10:14hgbotStatusscheduled => resolved
2020-01-03 10:14hgbotResolutionopen => fixed
2020-01-03 10:14hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR20Q1/org.openbravo.retail.posterminal/rev/e029e033236ff15ea329b37e095248b1ef0675dd [^]
2020-01-21 09:43guilleaerReview Assigned To => guilleaer
2020-01-21 09:43guilleaerStatusresolved => closed
2020-01-21 09:43guilleaerFixed in Version => RR20Q1

Notes
(0116623)
hgbot   
2020-01-03 10:14   
Repository: retail/backports/3.0RR20Q1/org.openbravo.retail.posterminal
Changeset: e029e033236ff15ea329b37e095248b1ef0675dd
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri Jan 03 14:30:20 2020 +0530
URL: http://code.openbravo.com/retail/backports/3.0RR20Q1/org.openbravo.retail.posterminal/rev/e029e033236ff15ea329b37e095248b1ef0675dd [^]

Fixed issue 42672 : Updated PostAddPayment hook arguments

* saveChanges values should be added to PostAddPayment hook

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---