Openbravo Issue Tracking System - POS2
View Issue Details
0047696POS2Restaurantspublic2021-09-15 10:212021-10-19 18:18
jmelin 
AugustoMauch 
highmajoralways
closedfixed 
5
 
 
aferraz
No
0047696: JIRA 2314 - Add vat rate of the menu components
A menu can be composed of components with different vat.
The VAT of each rate is correctly saved in the data of the sales order in BO, but we don't have the initial name/rate of the vat
For example:
Menu VAT => name=3, rate=10%
Component A => name=3, rate=10%
Component B => name=2, rate=20%

In this case, the vat amount of the menu is not calculated using its own vat, but using the vat of each component over their prices.

In the BO, we correctly have the amount of each vat like to a menu.
But we lost the information of the vat name/rate the components at the time of the sales order
1.
For a sales order, in "Menu items" tab of a "menu" lines, add:
- vat name
- vat rate

I may be also interesting to add vat category ?


2.
When importing a sales order in BO, save the vat name/vat rate of the component when the order was made
No tags attached.
depends on backport 0047728TAP closed AugustoMauch JIRA 2314 - Add vat rate of the menu components 
Issue History
2021-09-15 10:21jmelinNew Issue
2021-09-15 10:21jmelinAssigned To => Retail
2021-09-15 10:21jmelinTriggers an Emergency Pack => No
2021-09-21 11:08guilleaerStatusnew => scheduled
2021-09-21 11:08guilleaerAssigned ToRetail => AugustoMauch
2021-09-21 17:04hgbotNote Added: 0131961
2021-09-21 17:13hgbotNote Added: 0131962
2021-09-24 11:12AugustoMauchReview Assigned To => aferraz
2021-09-24 11:12AugustoMauchSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23110#r23110
2021-09-24 11:13AugustoMauchStatusscheduled => resolved
2021-09-24 11:13AugustoMauchResolutionopen => fixed
2021-09-24 11:13AugustoMauchStatusresolved => closed
2021-09-24 11:16AugustoMauchStatusclosed => new
2021-09-24 11:16AugustoMauchResolutionfixed => open
2021-09-24 11:16AugustoMauchStatusnew => scheduled
2021-10-19 18:18hgbotNote Added: 0132462
2021-10-19 18:18hgbotResolutionopen => fixed
2021-10-19 18:18hgbotStatusscheduled => closed
2021-10-19 18:18hgbotFixed in Version => RR22Q1
2021-10-19 18:18hgbotNote Added: 0132463
2021-10-19 18:18hgbotNote Added: 0132464
2021-10-19 18:18hgbotNote Added: 0132465

Notes
(0131961)
hgbot   
2021-09-21 17:04   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/579 [^]
(0131962)
hgbot   
2021-09-21 17:13   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/78 [^]
(0132462)
hgbot   
2021-10-19 18:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/579 [^]
(0132463)
hgbot   
2021-10-19 18:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 99231606ff40acf37d73c695c8ab4631d73b71bf
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 2021-10-19T18:11:22+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/99231606ff40acf37d73c695c8ab4631d73b71bf [^]

Fixes ISSUE-47696: Adds per-item bom tax info

The tax engine has been modified to return more detailed information about BOM taxes. It used to return the information
grouped by tax category, now it additionally includes the same information (tax, taxable amount, taxed amount) per BOM line.

---
M web/org.openbravo.retail.posterminal/app/model/business-logic/taxes-engine/engine/tax-rules.js
M web/org.openbravo.retail.posterminal/app/model/business-logic/taxes-engine/interface/tax-posinterface.js
M web/org.openbravo.retail.posterminal/app/model/business-object/ticket/TicketUtils.js
---
(0132464)
hgbot   
2021-10-19 18:18   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: c05aaaadbdb7845883f699cb06dc9694fddc1954
Author: Augusto Mauch <augusto.mauch@openbravo.com>
Date: 2021-10-19T18:10:43+02:00
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/c05aaaadbdb7845883f699cb06dc9694fddc1954 [^]

Fixes ISSUE-47696: Include tax information per menu item

A new subtab to Order -> Order Line -> Menu Items has been added, to include the tax information related to each menu item.
This change depends on this merge request, that provides additional information for BOM taxes: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/579 [^]

---
A src-db/database/model/tables/OBREST_OL_MENU_ITEM_TAX.xml
M src-db/database/sourcedata/AD_COLUMN.xml
M src-db/database/sourcedata/AD_ELEMENT.xml
M src-db/database/sourcedata/AD_FIELD.xml
M src-db/database/sourcedata/AD_TAB.xml
M src-db/database/sourcedata/AD_TABLE.xml
M src/org/openbravo/pos2/restaurant/hook/AddMenuItemsToLine.java
---
(0132465)
hgbot   
2021-10-19 18:18   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/78 [^]