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

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0046514
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[POS2] POScriticalhave not tried2021-05-05 13:422021-05-18 09:59
ReporterebecerraView Statuspublic 
Assigned Toprakashmurugesan88 
PrioritynormalResolutionfixedFixed in Version
StatusclosedFix in branchFixed in SCM revision
ProjectionnoneETAnoneTarget Version
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned To
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0046514: JIRA 1868 - Menu prices load from main prices list

DescriptionIn the POS2 when select a menu, the prices used is the main price list for the store, not be used the schema's prices.
Steps To ReproduceLog in the backoffice.

Go to organization window.

Open an organization, and navigate to the price list by default.

Set a price for a menu.

Go to back to the organization window.

Select a schema, navigate to it's price list (different from the default one) and put a different price for the same menu.

Log in the new POS

Change the schema to the one that we have changed the price.

Check that the price showing is the one in the default pricelist and not the one of the schema pricelist.
 
TagsTakeaway
Attached Filespng file icon 1.png [^] (39,809 bytes) 2021-05-05 13:42


png file icon 2.png [^] (42,463 bytes) 2021-05-05 13:42


png file icon 3.png [^] (163,700 bytes) 2021-05-05 13:43


png file icon 4.png [^] (124,847 bytes) 2021-05-05 13:43

- Relationships Relation Graph ] Dependency Graph ]
depends on backport 0046523TAP closedprakashmurugesan88 Menu prices load from main prices list 

-  Notes
(0127861)
dmiguelez (developer)
2021-05-06 15:49

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 (reporter)
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 (developer)
2021-05-13 08:35

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/33 [^]
(0128126)
hgbot (developer)
2021-05-14 13:17

Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/455 [^]
(0128294)
hgbot (developer)
2021-05-18 09:59

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 7f0e04714f0923453289a5dca873547692775bf6
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-05-18T11:06:03+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7f0e04714f0923453289a5dca873547692775bf6 [^]

Related to BUG-46514: Moved getSchemaProductPrices to common utils file

---
M web-jspack/org.openbravo.pos2/src/components/ProductButton/ProductPopover/__test__/ProductPopover.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductButton/ProductPopoverPrice/ProductPopoverPrice.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/__test__/ProductKeymap.test.jsx
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketUtils.js
R web-jspack/org.openbravo.pos2/src/components/ProductKeymap/GetSchemaProductPrices.js
---
(0128295)
hgbot (developer)
2021-05-18 09:59

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/455 [^]
(0128296)
hgbot (developer)
2021-05-18 09:59

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 5547cda2af57f28579e699caaaaa2c7936769884
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-05-18T11:06:03+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/5547cda2af57f28579e699caaaaa2c7936769884 [^]

Related to BUG-46514: Moved getSchemaProductPrices to common utils file

---
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/GetProductKeymapInfo.js
---
(0128297)
hgbot (developer)
2021-05-18 09:59

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 3958f79c40ad76cdd659632daed25bbb23d761f9
Author: Prakash M <prakash@qualiantech.com>
Date: 2021-05-18T13:17:21+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/3958f79c40ad76cdd659632daed25bbb23d761f9 [^]

Related to BUG-46514: Moved getSchemaProductPrices to common utils file

---
M web-jspack/org.openbravo.pos2/src/components/ProductButton/ProductPopover/__test__/ProductPopover.test.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductButton/ProductPopoverPrice/ProductPopoverPrice.jsx
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/GetProductKeymapInfo.js
M web-jspack/org.openbravo.pos2/src/components/ProductKeymap/__test__/ProductKeymap.test.jsx
M web-jspack/org.openbravo.pos2/src/model/ticket/TicketUtils.js
R web-jspack/org.openbravo.pos2/src/components/ProductKeymap/GetSchemaProductPrices.js
---
(0128298)
hgbot (developer)
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 (developer)
2021-05-18 09:59

Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2.restaurant/-/merge_requests/33 [^]

- Issue History
Date Modified Username Field Change
2021-05-05 13:42 ebecerra New Issue
2021-05-05 13:42 ebecerra Assigned To => Retail
2021-05-05 13:42 ebecerra File Added: 1.png
2021-05-05 13:42 ebecerra Triggers an Emergency Pack => No
2021-05-05 13:42 ebecerra File Added: 2.png
2021-05-05 13:43 ebecerra File Added: 3.png
2021-05-05 13:43 ebecerra File Added: 4.png
2021-05-05 13:48 javietxe Tag Attached: Takeaway
2021-05-05 13:52 javietxe Severity major => critical
2021-05-05 13:52 javietxe Steps to Reproduce Updated View Revisions
2021-05-05 17:15 guilleaer Status new => scheduled
2021-05-05 17:15 guilleaer Status scheduled => acknowledged
2021-05-06 12:00 guilleaer Resolution time => 1620424800
2021-05-06 15:49 dmiguelez Note Added: 0127861
2021-05-10 05:41 prakashmurugesan88 Assigned To Retail => prakashmurugesan88
2021-05-10 05:41 prakashmurugesan88 Status acknowledged => scheduled
2021-05-11 15:07 jmelin Note Added: 0127993
2021-05-13 08:35 hgbot Note Added: 0128055
2021-05-14 13:17 hgbot Note Added: 0128126
2021-05-14 17:32 jmelin Summary Menu prices load from main prices list => JIRA 1868 - Menu prices load from main prices list
2021-05-18 09:59 hgbot Note Added: 0128294
2021-05-18 09:59 hgbot Note Added: 0128295
2021-05-18 09:59 hgbot Note Added: 0128296
2021-05-18 09:59 hgbot Note Added: 0128297
2021-05-18 09:59 hgbot Resolution open => fixed
2021-05-18 09:59 hgbot Status scheduled => closed
2021-05-18 09:59 hgbot Note Added: 0128298
2021-05-18 09:59 hgbot Note Added: 0128299


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker