Openbravo Issue Tracking System - Retail Modules
View Issue Details
0048318Retail ModulesWeb POSpublic2021-12-14 12:192022-01-03 09:31
aferraz 
ranjith_qualiantech_com 
normalmajorhave not tried
closedfixed 
5
 
RR21Q4.3RR21Q4.3 
Production - Confirmed Stable
2021-07-07
RR21Q4
https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/47c20b2a17f30c967126313c475d1c79e903c047 [^]
No
0048318: Wrong ticket amount when doing a Verified Return of a ticket with discount
Wrong ticket amount when doing a Verified Return of a ticket with discount.

Jest tests should be added for 0047254 and 0048248.
- In Backoffice, Create a Discount and Promotion of type Fixed Discount per Total Amount and amount 10.
- In POS2, create a ticket with one unit of Avalanche transceiver, add previously created Order Discount and complete. Check ticket amount is 140.50€.
- In POS2, create verified return for previously created ticket. Check ticket amount is 130.50€. This is not correct.
No tags attached.
blocks defect 0048248 closed ranjith_qualiantech_com Wrong ticket amount when doing a Verified Return of a ticket with discount 
Issue History
2021-12-24 09:11marvintmTypedefect => backport
2021-12-24 09:11marvintmTarget Version => RR21Q4.3
2021-12-31 07:04hgbotNote Added: 0134081
2022-01-03 09:31hgbotResolutionopen => fixed
2022-01-03 09:31hgbotStatusscheduled => closed
2022-01-03 09:31hgbotFixed in Version => RR21Q4.3
2022-01-03 09:31hgbotNote Added: 0134093
2022-01-03 09:31hgbotNote Added: 0134094

Notes
(0134081)
hgbot   
2021-12-31 07:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/677 [^]
(0134093)
hgbot   
2022-01-03 09:31   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 152048afcfc879e05a433afd4c45138555241aca
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 29-12-2021 14:30:26
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/152048afcfc879e05a433afd4c45138555241aca [^]

Fixed ISSUE-48318: DiscountAmount should not be used to calculate line Gross Amount
* When calculating line gross amount with skipPromotion enabled,
  discount amount should not be used to calculate line Gross Amount,
  since gross amount already adjusted with discount amount

---
M web-test/model/business-object/ticket/CalculateTotalsModelHook.test.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
---
(0134094)
hgbot   
2022-01-03 09:31   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/677 [^]