Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047948
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts and Promotionsmajoralways2021-10-28 18:202021-11-16 08:15
Reportercollazoandy4View Statuspublic 
Assigned Toranjith_qualiantech_com 
PrioritynormalResolutionfixedFixed in VersionRR22Q1
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0047948: Wrong User Defined Line Amount discount after C&R

DescriptionIf a C&R is created from a receipt which have a User Defined Line Amount discount applied the new receipt have a wrong total amount
Steps To ReproduceLog in the backoffice as White Valley Group Admin role
Go to Discount and Promotions and create a new record:
  Discount promotion type: User Defined Line Amount
  Name: Line Amount Discount
  Starting date: First date of the month
Log in YS-11 Pos terminal and create a new Layway
  Product: Avalanche Transceiver
Add the previous discount created and set as final price 140
A new discount line is created with an amount of -10.50
Check the total amount of receipt is 140.0
Syncronize the Layaway to the backoffice
Open the previous receipt and Cancel and Replace it
Check the new receipt total amount is 10.50 and the discount amount is 140
If more quantity to the product is added to the line the discount amount is calculated with wrong value
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0048068 closedranjith_qualiantech_com Wrong User Defined Line Amount discount after create a Sales Order from Quotation 

-  Notes
(0133087)
hgbot (developer)
2021-11-16 07:05

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/41 [^]
(0133088)
hgbot (developer)
2021-11-16 07:05

Merge Request created: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/144 [^]
(0133089)
hgbot (developer)
2021-11-16 08:15

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/41 [^]
(0133090)
hgbot (developer)
2021-11-16 08:15

Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: 521d90528068903d6b2146a5e8ef4fc2685d39d2
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-11-16T11:32:09+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/521d90528068903d6b2146a5e8ef4fc2685d39d2 [^]

Fixed ISSUE-47948: Updated User Defined Line Amount discount calculation
* For User Defined Line Amount Discount Type,
  Discount FinalLineGross should be updated with applied discount amount
* Discount FinalLineGross should not execeed the line gross amount

---
M src-test/org/openbravo/retail/discounts/test/unittests/DiscountUserDefinedLineAmountTest.java
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/engine/rules/manual-linefinalprice-promotions-discount.js
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---
(0133091)
hgbot (developer)
2021-11-16 08:15

Repository: https://gitlab.com/openbravo/ci/mobile-test [^]
Changeset: 75bc05bdc46a3c306fe097191433e6d77a3137a7
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-11-16T11:08:13+05:30
URL: https://gitlab.com/openbravo/ci/mobile-test/-/commit/75bc05bdc46a3c306fe097191433e6d77a3137a7 [^]

Verifies ISSUE-47948: Added Test I47948_VerifyUserDefinedLineDiscountWhenCR

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I47948_VerifyUserDefinedLineDiscountWhenCR.java
---
(0133092)
hgbot (developer)
2021-11-16 08:15

Merge request merged: https://gitlab.com/openbravo/ci/mobile-test/-/merge_requests/144 [^]

- Issue History
Date Modified Username Field Change
2021-10-28 18:20 collazoandy4 New Issue
2021-10-28 18:20 collazoandy4 Assigned To => Retail
2021-10-28 18:20 collazoandy4 Triggers an Emergency Pack => No
2021-11-09 07:05 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2021-11-16 01:51 collazoandy4 Relationship added related to 0048068
2021-11-16 07:05 hgbot Note Added: 0133087
2021-11-16 07:05 hgbot Note Added: 0133088
2021-11-16 08:15 hgbot Note Added: 0133089
2021-11-16 08:15 hgbot Resolution open => fixed
2021-11-16 08:15 hgbot Status new => closed
2021-11-16 08:15 hgbot Fixed in Version => RR22Q1
2021-11-16 08:15 hgbot Note Added: 0133090
2021-11-16 08:15 hgbot Note Added: 0133091
2021-11-16 08:15 hgbot Note Added: 0133092


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker