Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||||
View Issue Details | |||||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||||
0034360 | Retail Modules | Web POS | public | 2016-11-01 14:09 | 2016-11-30 17:54 | ||||||||||||||||
Reporter | marvintm | ||||||||||||||||||||
Assigned To | marvintm | ||||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||||
Product Version | |||||||||||||||||||||
Target Version | Fixed in Version | RR17Q1 | |||||||||||||||||||
Merge Request Status | |||||||||||||||||||||
Review Assigned To | Orekaria | ||||||||||||||||||||
OBNetwork customer | |||||||||||||||||||||
Support ticket | |||||||||||||||||||||
Regression level | |||||||||||||||||||||
Regression date | |||||||||||||||||||||
Regression introduced in release | |||||||||||||||||||||
Regression introduced by commit | |||||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||||
Summary | 0034360: Web POS is not calculating taxes at header level correctly if there are cascade taxes, with price including taxes | ||||||||||||||||||||
Description | Currently, the Web POS is not computing taxes correctly if: - Taxes are defined at document level - There are taxes defined to be calculated in cascade There are two main problems right now: - The taxes at line level are not properly calculated when defined in cascade, as they are calculated from a total which is computed from a rounded price, which is then multiplied by the quantity. This creates a precision problem. - The taxes at header level are also not computed properly, as currently the taxes are just summed from the taxes at line level, and then are adjusted so they respect the rate defined for the tax. This adjustment just doesn't work when taxes are defined in cascade. | ||||||||||||||||||||
Steps To Reproduce | The following ticket right now is not being computed correctly: Product Qty Price Total P1 1200 55.8 66960 P2 600 55.8 33480 P3 840 55.8 46872 P4 37 294.99 10914.63 P5 12 254.95 3059.4 P6 36 299.36 10776.96 172062.99 Taxes for P1, P2 and P3 are: IEPS 26.5% + 16% VAT (depending on IEPS) Taxes for P4, P5 and P6 are: IEPS 53% + 16% VAT (depending on IEPS) | ||||||||||||||||||||
Proposed Solution | The problem with the taxes at line level in cascade simply needs to be fixed by computing the tax from the total net amount of the line directly, instead of recalculating the net from the net price. The problem with the taxes at header level needs to be fixed by calculating the taxes at header level properly, directly from the totals computed by summing the lines, instead of calculating them from the taxes at line level. | ||||||||||||||||||||
Additional Information | |||||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||||
Relationships |
| ||||||||||||||||||||
Attached Files | |||||||||||||||||||||
Issue History | |||||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||||
2016-11-01 14:09 | marvintm | New Issue | |||||||||||||||||||
2016-11-01 14:09 | marvintm | Assigned To | => marvintm | ||||||||||||||||||
2016-11-01 14:09 | marvintm | Triggers an Emergency Pack | => No | ||||||||||||||||||
2016-11-01 14:10 | marvintm | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=13533#r13533 | ||||||||||||||||||
2016-11-01 14:13 | marvintm | Status | new => scheduled | ||||||||||||||||||
2016-11-01 19:22 | hgbot | Checkin | |||||||||||||||||||
2016-11-01 19:22 | hgbot | Note Added: 0091039 | |||||||||||||||||||
2016-11-01 19:22 | hgbot | Status | scheduled => resolved | ||||||||||||||||||
2016-11-01 19:22 | hgbot | Resolution | open => fixed | ||||||||||||||||||
2016-11-01 19:22 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/19f3df300f234399cf2a42837690936fc8eb8542 [^] | ||||||||||||||||||
2016-11-01 19:23 | hgbot | Checkin | |||||||||||||||||||
2016-11-01 19:23 | hgbot | Note Added: 0091040 | |||||||||||||||||||
2016-11-30 17:54 | Orekaria | Review Assigned To | => Orekaria | ||||||||||||||||||
2016-11-30 17:54 | Orekaria | Status | resolved => closed | ||||||||||||||||||
2016-11-30 17:54 | Orekaria | Fixed in Version | => RR17Q1 | ||||||||||||||||||
2017-02-02 19:22 | marvintm | Relationship added | related to 0035138 | ||||||||||||||||||
2017-03-06 14:23 | aferraz | Relationship added | related to 0032265 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|