Openbravo Issue Tracking System - POS2
View Issue Details
0048193POS2POSpublic2021-12-06 13:492021-12-17 09:49
jmelin 
nicola_uva 
urgentmajoralways
closedfixed 
5
 
 
guilleaer
No
0048193: JIRA 2538 - API Sales - Wrong value in unit_statistics.turnover
In unit_statistics, the data are grouped by vat/sales are/sales type.
But it doesn't reflect the one from the order compared to the receipt.

It happens only with menu because we take the menu tax instead of the menu component tax
Create an order and add a menu with 2 differents taxes.
For example:
menu tax is 10%
component A tax is 10%
component B tax is 20%
close the order
close the till

in unit_statistics.turnover, you only have 1 tax (10%) instead of being splitted over 10% and 20%
AGPCustom
Issue History
2021-12-06 13:49jmelinNew Issue
2021-12-06 13:49jmelinAssigned To => Retail
2021-12-06 13:49jmelinTriggers an Emergency Pack => No
2021-12-17 09:48caristuTag Attached: AGPCustom
2021-12-17 09:49guilleaerStatusnew => scheduled
2021-12-17 09:49guilleaerAssigned ToRetail => nicola_uva
2021-12-17 09:49guilleaerStatusscheduled => resolved
2021-12-17 09:49guilleaerResolutionopen => fixed
2021-12-17 09:49guilleaerReview Assigned To => guilleaer
2021-12-17 09:49guilleaerNote Added: 0133796
2021-12-17 09:49guilleaerStatusresolved => closed

Notes
(0133796)
guilleaer   
2021-12-17 09:49   
https://gitlab.com/obcustomers/AGAP/com.openbravo.flunch.reports/-/merge_requests/13 [^]