Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045469Retail ModulesWeb POSpublic2020-11-04 17:332020-11-23 06:34
martinsdan 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
30Ubuntu 18.04.1 LTS
 
RR20Q3.2RR20Q3.2 
marvintm
No
0045469: Rounding payment should not be added if the payment is not added
If the rounding feature is configured for a payment and the payment is canceled when inserting, the rounding payment is still added.
If an OBPOS_preAddPayment adds the flag cancellation to true, the original payment is not added but the rounding payment is.
- Create an OBPOS_preAddPayment hook that adds "args.cancellation = false" if a payment is bigger than 100.
- Add a rounding to the payment method cash
  - Go to Terminal Type | Payment Method
  - Create a new payment method marked as rounding
  - Go to the payment method cash and add a new entry in the subtab Payment Rounding
  - Activate it for sales, Rounding down and "Rounding Multiple in Sales" = 0.05
- Login to the touchpoint
- Add a product that costs 101.23
- Pay it in cash

See that the only payment added is the rounding payment with an amount of 0.03
If the flag canceled is true after running all the hooks, the respective rounding payment should be reverted.
No tags attached.
blocks defect 0045377 closed ranjith_qualiantech_com Rounding payment should not be added if the payment is not added 
Issue History
2020-11-20 08:38marvintmTypedefect => backport
2020-11-20 08:38marvintmTarget Version => RR20Q3.2
2020-11-23 04:27hgbotResolutionopen => fixed
2020-11-23 04:27hgbotStatusscheduled => resolved
2020-11-23 04:27hgbotFixed in Version => RR20Q3.2
2020-11-23 04:27hgbotNote Added: 0124552
2020-11-23 06:34marvintmReview Assigned To => marvintm
2020-11-23 06:34marvintmStatusresolved => closed

Notes
(0124552)
hgbot   
2020-11-23 04:27   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 299cbcbb854b3b5a1769199748028e5c0a79a422
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-11-23T08:56:48+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/299cbcbb854b3b5a1769199748028e5c0a79a422 [^]

Fixed ISSUE-45469: Payment Rounding should be added after AddPrePayment Hook

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