Openbravo Issue Tracking System - POS2
View Issue Details
0049920POS2POSpublic2022-08-01 11:522022-08-01 13:04
jonae 
jonae 
immediatemajorhave not tried
closedfixed 
5
 
22Q4 
QA functional test
2022-08-01
pi
https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/00881dae80ffe97413da3024690c16ee05643c54 [^]
No
0049920: Every time a product button is loaded the system calls the backend to calculate the stock
Every time a product button is loaded the system calls the backend to calculate the stock. The stock needs to be got from the state instead of calling the backend.
- Load the product keymap
- Check that the backend manages as much requests as products the product keymap is showing.
Get the stock from the state
No tags attached.
caused by feature request 0049305 closed jonae Review the css classes used in the product button content component 
Issue History
2022-08-01 11:52jonaeNew Issue
2022-08-01 11:52jonaeAssigned To => jonae
2022-08-01 11:52jonaeRegression level => QA functional test
2022-08-01 11:52jonaeRegression date => 2022-08-01
2022-08-01 11:52jonaeRegression introduced in release => pi
2022-08-01 11:52jonaeRegression introduced by commit => https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/00881dae80ffe97413da3024690c16ee05643c54 [^]
2022-08-01 11:52jonaeTriggers an Emergency Pack => No
2022-08-01 12:17hgbotNote Added: 0139762
2022-08-01 12:56hgbotResolutionopen => fixed
2022-08-01 12:56hgbotStatusnew => resolved
2022-08-01 12:56hgbotNote Added: 0139764
2022-08-01 12:56hgbotFixed in Version => 22Q4
2022-08-01 12:56hgbotNote Added: 0139765
2022-08-01 12:57javierRodriguezStatusresolved => closed
2022-08-01 13:04javierRodriguezRelationship addedcaused by 0049305

Notes
(0139762)
hgbot   
2022-08-01 12:17   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1113 [^]
(0139764)
hgbot   
2022-08-01 12:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/1113 [^]
(0139765)
hgbot   
2022-08-01 12:56   
Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 97941ac51b6c2739527d7acec31e9b856f6cd513
Author: Jon Alegría <jon.alegria@openbravo.com>
Date: 01-08-2022 10:55:59
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/97941ac51b6c2739527d7acec31e9b856f6cd513 [^]

Fixes ISSUE-49920: Removing the request to the backend to calculate the stock of a product and get it from the state.

Before this change, every single product buttons made a request to the server to pick up the stock when they were rendered.

---
M web-jspack/org.openbravo.pos2/src/components/ProductButton/ProductButtonContent/ProductButtonContent.jsx
---