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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0047682
TypeCategorySeverityReproducibilityDate SubmittedLast Update
backport[POS2] Restaurantsmajoralways2021-09-10 14:282021-10-15 12:33
Reportertimothee_catteeuwView Statuspublic 
Assigned TojavierRodriguez 
PrioritynormalResolutionfixedFixed in VersionTAP
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget VersionTAP
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned Toguilleaer
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0047682: JIRA 2304 - Proof of payment - rounding are not properly executed in some cases

DescriptionAt some point when you want to generate a proof of payment the split amount values are not correctly done.
You can find several cases which allow to reproduce.
There is an issue on how we distribute amount and/or taxes.
Steps To ReproduceCase 1 :

On WebPOS (TAP version), select 2 different products with 1.95 € amount (let's say item A and item B).
Both articles have the same tax (10%)
--> Amount with tax 3.90, without taxes 3.55 and taxes are equals to 0.35

Currently what we do in OB in that case

1st proof of payment : 1.94 including 0.17 €
2nd proof of payment : 1.96 including 0.18 €

The correct result has to be :
1st proof of payment : 1.95 including 0.17 €
2nd proof of payment : 1.95 including 0.18 €

For information if I select item A twice for example, both proof of payment are OK.

Case 2 :
I put several articles in my basket with this configuration
ITEM A amount without tax = 6.77, 10% tax = 0.68 €, amount by including tax 7.45 €
ITEM B amount without tax = 1.63, 20% tax = 0.32 €, amount by including tax 1.95 €
ITEM C amount without tax = 0.59, 10% tax = 0.06 €, amount by including tax 0.65 €
ITEM D amount without tax = 0.91, 10% tax = 0.09 €, amount by including tax 1.00 €
ITEM E amount without tax = 7.23, 10% tax = 0.72 €, amount by including tax 7.95 €

If I split in 2 proof of payments, it necessary to manage amount like that :
1) Total amount = 9,50 €
10 % tax 0,78 €
20 % tax 0,16 €

2) Total amount = 9,50 €
10% tax 0,77 €
20% tax 0,16 €

Nowadays we manage it in OB like that :
1) Total amount = 9,52 €
10 % tax 0,78 €
20 % tax 0,16 €

2) Total amount = 9,48 €
10% tax 0,77 €
20% tax 0,16 €
Proposed SolutionSplit correctly (in equal part) as much as possible. There will some cases when proof of payment amounts won'be equal (ex: 19.55 /2 = 9.77 and 9.78)
TagsNo tags attached.
Attached Files

- Relationships Relation Graph ] Dependency Graph ]
duplicate of backport 0047856TAP closedjavierRodriguez Refactor divide in equal parts in Proof of payment 
blocks defect 0047673TAP closedjavierRodriguez JIRA 2304 - Proof of payment - rounding are not properly executed in some cases 

-  Notes
(0132364)
guilleaer (manager)
2021-10-15 12:33

Closed with fix for TAP of

https://issues.openbravo.com/view.php?id=47856 [^]

- Issue History
Date Modified Username Field Change
2021-09-13 15:54 dmiguelez Type defect => backport
2021-09-13 16:09 dmiguelez Assigned To Retail => jorge-garcia
2021-09-14 11:12 guilleaer Summary Proof of payment - rounding are not properly executed in some cases => JIRA 2304 - Proof of payment - rounding are not properly executed in some cases
2021-10-11 20:40 guilleaer Assigned To jorge-garcia => javierRodriguez
2021-10-15 12:33 guilleaer Relationship added duplicate of 0047856
2021-10-15 12:33 guilleaer Status scheduled => resolved
2021-10-15 12:33 guilleaer Fixed in Version => TAP
2021-10-15 12:33 guilleaer Resolution open => fixed
2021-10-15 12:33 guilleaer Review Assigned To => guilleaer
2021-10-15 12:33 guilleaer Note Added: 0132364
2021-10-15 12:33 guilleaer Status resolved => closed


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker