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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0043880
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Discounts by Totalmajoralways2020-04-27 13:412020-05-25 09:33
ReporterLeyreView Statuspublic 
Assigned Toranjith_qualiantech_com 
PriorityurgentResolutionunable to reproduceFixed in VersionRR19Q4
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Tomarvintm
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0043880: Using the old discount engine, the "by total" discount is not calculated correctly on the receipt lines

DescriptionUsing the old discount engine, the "by total" discount is not calculated correctly on the receipt lines
Steps To ReproduceUsing the 20Q1 version, add the "Discount rules for Retail by total" module in the correct version:

** In our local instance:
Web POS 1.2.6703
Discounts & Promotions Rules for Retail 1.3.6701
Discount rules for Retail by total 1.0.1300

Apply the patches related to the issues 43322 and 43521 (or confirm that the patches are applied)

** Backend:
1. Configure the preference "Web POS Use advanced discounts engine" = N
2. Create a new "User Defined Amount" discount
3. Create a new "Variable Discount per Total Amount" discount

** Web POS:
1. Add two products non grouped with price = 9.90
2. Add another product with price = 2.90
3. Add the first discount "User Defined Amount" = 1
4. Try to add the second discount "Variable Discount per Total Amount" = 10.

Verify that the total discount/line is not applied correctly or proportionally on the products.

--> ANOTHER EXAMPLE DETECTED:

** Web POS:
1. Add one product = 699.9
2. Add another product 399.9
3. Add the first discount "User Defined Amount" = -20 only to the first product.
4. Add the second discount "Variable Discount per Total Amount" = -100

The sum of the "by total" discount, of all the lines is not 100
TagsNo tags attached.
Attached Filespatch file icon 43880 source bytotal.patch [^] (2,856 bytes) 2020-05-13 10:23 [Show Content]
patch file icon 43880 test.patch [^] (17,389 bytes) 2020-05-13 10:23 [Show Content]
patch file icon 43880_source_bytotal_v2.patch [^] (5,564 bytes) 2020-05-18 19:04 [Show Content]
patch file icon 43880_source_test_v2.patch [^] (19,770 bytes) 2020-05-18 19:05 [Show Content]
patch file icon 43880_source_bytotal_v3.patch [^] (7,327 bytes) 2020-05-25 09:32 [Show Content]
patch file icon 43880_source_test_v3.patch [^] (25,355 bytes) 2020-05-25 09:33 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
related to defect 0043521 closedrqueralta The by total discount is not applied correctly to the receipt lines 
related to defect 0043322 closedrqueralta The "By Total" discount does not apply correctly the discounted qty. on the receipt lines 

-  Notes
(0119839)
marvintm (manager)
2020-05-13 15:41

The problem cannot be currently reproduced in pi, as it only affected the old discounts engine. We have attached a patch with a solution which can be applied in previous releases.

- Issue History
Date Modified Username Field Change
2020-04-27 13:41 Leyre New Issue
2020-04-27 13:41 Leyre Assigned To => Retail
2020-04-27 13:41 Leyre Resolution time => 1589752800
2020-04-27 13:41 Leyre Triggers an Emergency Pack => No
2020-04-27 13:42 Leyre Relationship added related to 0043521
2020-04-27 13:43 Leyre Relationship added related to 0043322
2020-04-30 10:23 Leyre Steps to Reproduce Updated View Revisions
2020-04-30 10:23 Leyre Steps to Reproduce Updated View Revisions
2020-05-05 11:44 ranjith_qualiantech_com Assigned To Retail => ranjith_qualiantech_com
2020-05-06 04:57 ranjith_qualiantech_com Status new => scheduled
2020-05-06 12:43 ranjith_qualiantech_com File Added: 43880 source bytotal.patch
2020-05-06 12:47 ranjith_qualiantech_com Note Added: 0119623
2020-05-11 15:20 ranjith_qualiantech_com Note Deleted: 0119623
2020-05-12 09:02 ranjith_qualiantech_com File Deleted: 43880 source bytotal.patch
2020-05-13 10:23 ranjith_qualiantech_com File Added: 43880 source bytotal.patch
2020-05-13 10:23 ranjith_qualiantech_com File Added: 43880 test.patch
2020-05-13 15:41 marvintm Review Assigned To => marvintm
2020-05-13 15:41 marvintm Note Added: 0119839
2020-05-13 15:41 marvintm Status scheduled => closed
2020-05-13 15:41 marvintm Resolution open => unable to reproduce
2020-05-13 15:41 marvintm Fixed in Version => RR19Q4
2020-05-18 19:04 ranjith_qualiantech_com File Added: 43880_source_bytotal_v2.patch
2020-05-18 19:05 ranjith_qualiantech_com File Added: 43880_source_test_v2.patch
2020-05-25 09:32 ranjith_qualiantech_com File Added: 43880_source_bytotal_v3.patch
2020-05-25 09:33 ranjith_qualiantech_com File Added: 43880_source_test_v3.patch


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker