Openbravo Issue Tracking System - POS2
View Issue Details
0057178POS2POSpublic2024-11-19 12:212024-11-21 18:32
nicolasuriz 
javierRodriguez 
highmajoralways
closedfixed 
5
 
25Q1 
No
0057178: When flag at Organization "Force the Price for a Product at 0 on WebPOS" is to True, avoid the Kit Items to be added.
If the field at Organization level in the BO "Force the Price for a Product at 0 on WebPOS" is set to True, the Kits are not working as the Kit Items have to be set in the price list to Price 0.

When you click on a Kit Item to add it to the ticket, a technical error is displayed avoiding to add it.
1. Login BO
2. Go to Organization and check to True the field "Force the Price for a Product at 0 on WebPOS"
3. Configure a KIT with its KIT ITEMS as it is defined in POS2 User guide.
4. Login POS and try to add the kit with its items, the kit items remain blocked.
The add product hook setPriceForProductsWithPriceZero is not checking if there are products inside the payload.

kit items are not common lines, there are added to the kit line. during the add product, if a kit item is added, it is included inside the kit and it is removed from the payload.

SOLUTION: Check if inside the payload there is products to do its stuff. Otherwise, do not execute nothing
No tags attached.
Issue History
2024-11-19 12:21nicolasurizNew Issue
2024-11-19 12:21nicolasurizAssigned To => Retail
2024-11-19 12:21nicolasurizTriggers an Emergency Pack => No
2024-11-19 13:40javierRodriguezStatusnew => scheduled
2024-11-19 13:40javierRodriguezProposed Solution updated
2024-11-19 13:53javierRodriguezAssigned ToRetail => javierRodriguez
2024-11-19 14:14hgbotNote Added: 0172233
2024-11-21 18:32hgbotNote Added: 0172446
2024-11-21 18:32hgbotResolutionopen => fixed
2024-11-21 18:32hgbotStatusscheduled => closed
2024-11-21 18:32hgbotFixed in Version => 25Q1
2024-11-21 18:32hgbotNote Added: 0172447

Notes
(0172233)
hgbot   
2024-11-19 14:14   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3112 [^]
(0172446)
hgbot   
2024-11-21 18:32   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3112 [^]
(0172447)
hgbot   
2024-11-21 18:32   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 7f495d18d6452ab91d794f0188a7a1eb4bce409d
Author: Javier Rodriguez Regueiro <j.rodriguez@orisha.com>
Date: 21-11-2024 17:31:06
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.pos2/-/commit/7f495d18d6452ab91d794f0188a7a1eb4bce409d [^]

Fixed ISSUE-57178: Skip setPriceForProductsWithPriceZero if there is not any product inside the payload

---
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/AddProductHooks.js
M web-jspack/org.openbravo.pos2/src/model/ticket/actions/__test__/AddProductActionPreparation.test.js
---