Notes |
|
|
There are several places in the restaurants modules in which the price and the taxes are not taken into account the Schema:
grep -ri "product.standardPrice" .
./components/MenuWizard/MenuWizardProductKeymapLayout/MenuWizardProductButton/MenuWizardProductButton.jsx: currentProduct.additionalCostProduct.standardPrice
./model/food-menu/GetMenuTaxesInfo.js: const amount = product.standardPrice + additionalCost;
./model/ticket/actions/AddProductActionPreparation.js: foundProduct.additionalCost = mcp.additionalCostProduct.standardPrice;
./model/ticket/actions/AddProductActionPreparation.js: additionalCostProduct.standardPrice
./model/ticket/actions/AddProductActionPreparation.js: ? additionalCostProduct.standardPrice
./model/ticket/actions/AddProductActionPreparation.js: menuUnitPrice: menuDefinition.product.standardPrice,
./model/ticket/actions/InitMenu.js: const initialMenuPrice = menuDefinition.product.standardPrice;
./model/ticket/actions/__test__/InitMenu.test.js: menuUnitPrice: SimpleMenu.product.standardPrice,
./model/user-interface/user-actions/AddProductToMenu.js: additionalCostProduct.standardPrice
./model/user-interface/user-actions/AddProductToMenu.js: return additionalCostProduct.standardPrice;
grep -ri "product.taxCategory" .
./model/food-menu/GetMenuTaxesInfo.js: taxCategory: product.taxCategory
This should be fixed by:
- Create a generic function to retrieve the product price based on the schema
- This method should be very similar to the existing one getSchemaProductPrices
- Use this method to retrieve the proper price
- Use the schema product price to set the correct price or tax if available or use the default if not |
|
|
(0127993)
|
jmelin
|
2021-05-11 15:07
|
|
I don't know if it's directly related but the product extra cost is not available on POS. |
|
|
(0128055)
|
hgbot
|
2021-05-13 08:35
|
|
|
|
(0128126)
|
hgbot
|
2021-05-14 13:17
|
|
|
|
(0128294)
|
hgbot
|
2021-05-18 09:59
|
|
|
|
(0128295)
|
hgbot
|
2021-05-18 09:59
|
|
|
|
(0128296)
|
hgbot
|
2021-05-18 09:59
|
|
|
|
(0128297)
|
hgbot
|
2021-05-18 09:59
|
|
|
|
(0128298)
|
hgbot
|
2021-05-18 09:59
|
|
Directly closing issue as related merge request is already approved.
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant [^]
Changeset: a67aa826800f21d93f51f8bc2456d2cba12c0551
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-05-18T13:10:33+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/commit/a67aa826800f21d93f51f8bc2456d2cba12c0551 [^]
Fixed BUG-46514: Fixes schema price not applied for menu products
---
A web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/actions/InitMenuActionPreparation.js
A web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/actions/__test__/InitMenuActionPreparation.test.js
A web-jspack/org.openbravo.pos2.restaurant/src/model/user-interface/actions/UpdateMenuActionPreparation.js
M web-jspack/org.openbravo.pos2.restaurant/src/components/MenuWizard/MenuWizardProductKeymapLayout/MenuWizardProductButton/MenuWizardProductButton.jsx
M web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/TicketExtension.js
M web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/actions/AddProductActionPreparation.js
M web-jspack/org.openbravo.pos2.restaurant/src/model/ticket/actions/__test__/AddProductActionPreparation.test.js
M web-jspack/org.openbravo.pos2.restaurant/src/model/user-interface/__test__/AddProductToMenu.test.js
M web-jspack/org.openbravo.pos2.restaurant/src/model/user-interface/user-actions/AddProductToMenu.js
M web-jspack/org.openbravo.pos2.restaurant/src/ob-init.js
---
|
|
|
(0128299)
|
hgbot
|
2021-05-18 09:59
|
|
|