Anonymous | Login
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Retail Modules] Web POSmajorhave not tried2019-09-04 19:362019-09-04 19:36
ReportermarvintmView Statuspublic 
Assigned Tojorge-garcia 
PrioritynormalResolutionopenFixed in Version
StatusnewFix 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

0041752: Split lines is not distributing correctly the amounts

DescriptionWhen a line which contains manual discounts is split, the code which computes the resulting partial discounts does the following:

      var amount = (clonedPromotion.amt / clonedPromotion.originalQty) * qty;

This is not correct for two reasons:
- It doesn't use the OB.DEC API, so it doesn't properly round amounts
- It doesn't adjust the resulting quantity, so in some cases it may happen that the resulting partial discounts do not sum the total amount of the original discount
Steps To ReproduceGenerate a line with amount 18.9, and quantity 3.
Add a manual for total amount 5 EUR
Split in two lines (quantities 2 and 1). Debug the previously mentioned code, and verify that resulting promotion amounts are not properly rounded.

Also, see tests SplitLineWithManualPromoDiscretionaryFixAmt and SplitLineWithManualPromoUserDefAmt
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-09-04 19:36 marvintm New Issue
2019-09-04 19:36 marvintm Assigned To => jorge-garcia
2019-09-04 19:36 marvintm Triggers an Emergency Pack => No

Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker