Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045096Retail ModulesDiscounts and Promotionspublic2020-09-18 12:252020-09-21 13:37
rafademiguel 
ranjith_qualiantech_com 
urgentmajoralways
closedfixed 
5
RR20Q3 
RR20Q2.2RR20Q2.2 
marvintm
Production - Confirmed Stable
RR19Q4
No
0045096: The discount type 'User Defined Line Amount' is not working as expected. It is working as an amount of discount
The discount type 'User Defined Line Amount' is not working as expected. It is working as an amount of discount even if it is well configured.

This regression was introduced in 19Q4 and fixed by chance it was fixed in 20Q3 however is broken in 20Q1 and 20Q2.
1. Login Webpos
2. Add a product to the ticket
3. Click on the orderline and click on 'Discount' button
4. Select one Discount type of 'Final Price'
5. Check that it is working as an amount and not as final price as it supposed to work.
No tags attached.
blocks defect 0045093 closed ranjith_qualiantech_com The discount type 'User Defined Line Amount' is not working as expected. It is working as an amount of discount 
Issue History
2020-09-21 08:31marvintmTypedefect => backport
2020-09-21 08:31marvintmTarget Version => RR20Q2.2
2020-09-21 09:43hgbotResolutionopen => fixed
2020-09-21 09:43hgbotStatusscheduled => resolved
2020-09-21 09:43hgbotFixed in Version => RR20Q2.2
2020-09-21 09:43hgbotNote Added: 0123248
2020-09-21 13:37marvintmReview Assigned To => marvintm
2020-09-21 13:37marvintmStatusresolved => closed

Notes
(0123248)
hgbot   
2020-09-21 09:43   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 14cbb350a7150717e71e0d3bc67147c37f2ee293
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2020-09-21T13:13:22+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/14cbb350a7150717e71e0d3bc67147c37f2ee293 [^]

Fixed ISSUE-45096: Updated User Defined Line amount discount calculation
* User amount should be set as final price of the line instead of product amount irrespective of qty

---
M web/org.openbravo.retail.posterminal/js/discountsengine/pos/pos-discounts.js
---