Openbravo Issue Tracking System - POS2
View Issue Details
0058245POS2POSpublic2025-03-13 17:352025-03-21 13:54
javietxe 
aaroncalero 
normalmajorhave not tried
closedfixed 
5
 
25Q1.125Q1.1 
approved
Gold
No
0058245: Sales factor unit 0.01
When a product is set with the sales factor unit 0.01 and selecting in the POS a value as for example 2.38 as quantity, several problems occur:

1) A popup is shown saying that the quantity is not a multiple of 0.01 while clearly it is (Popup.png). In fact one of the options is the written one.

2) While selecting any of the options in the popup, even apparently it is a valid multiple, the line is in error saying that the quantity selected is not multiple (ErrorNotValid.png)

3) While trying to modify this number using the + button does nothing (LineModifier.png)

BackOffice

Create a new product defining the UOM = Kilogram and Sales factor unit = 0.01.

POS:

Error 1)
- Browse for the new product
- Add it to the order
- Click in the line
- Click in "Qty" so a numeric pad appears
- Click in Qty and set 2.38
- Click OK -> Check that the Quantity adjustment popup is opened

Error 2)
- After the steps on Error 1, click in any quantity suggested. See that the line has the error shown

Error 3)

- After the steps on Error 2, click in the line.
- Try to modify the quantity pressing in +. See that it doesn't work

No tags attached.
blocks defect 0058238 closed inaki_luque Sales factor unit 0.01 
Issue History
2025-03-14 09:54jorgewederagoTypedefect => backport
2025-03-14 09:54jorgewederagoTarget Version => 25Q1.1
2025-03-14 10:17hgbotMerge Request Status => open
2025-03-14 10:17hgbotNote Added: 0176838
2025-03-14 10:19aaroncaleroAssigned ToRetail => aaroncalero
2025-03-17 16:27hgbotMerge Request Statusopen => approved
2025-03-17 16:27hgbotResolutionopen => fixed
2025-03-17 16:27hgbotStatusscheduled => closed
2025-03-17 16:27hgbotNote Added: 0176901
2025-03-17 16:27hgbotFixed in Version => 25Q1.1
2025-03-17 16:27hgbotNote Added: 0176902
2025-03-19 09:02hgbotNote Added: 0176972
2025-03-21 13:54hgbotNote Added: 0177118
2025-03-21 13:54hgbotNote Added: 0177119

Notes
(0176838)
hgbot   
2025-03-14 10:17   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3611 [^]
(0176901)
hgbot   
2025-03-17 16:27   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3611 [^]
(0176902)
hgbot   
2025-03-17 16:27   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: d8e39512b7e964ffaf86687cd959a526011a0eb9
Author: Aaron Calero <a.calero@orisha.com>
Date: 14-03-2025 10:15:44
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/commit/d8e39512b7e964ffaf86687cd959a526011a0eb9 [^]

Fixed ISSUE-58245: [Sales factor with decimals] Use OB.DEC.div to avoid rounding errors

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLinePopover/TicketLineSalesUnitFactorQuantity/TicketLineSalesUnitFactorQuantityUtils.js
---
(0176972)
hgbot   
2025-03-19 09:02   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3633 [^]
(0177118)
hgbot   
2025-03-21 13:54   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3633 [^]
(0177119)
hgbot   
2025-03-21 13:54   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 11139b7bc88bebad1a86bbebdd99a4b03b4b6e5a
Author: IƱaki Luque <i.luque@orisha.com>
Date: 21-03-2025 13:54:13
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/commit/11139b7bc88bebad1a86bbebdd99a4b03b4b6e5a [^]

Related to ISSUE-58245: [25Q1] Using OB.DEC for getting the previous and next multiples

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLinePopover/TicketLineSalesUnitFactorQuantity/TicketLineSalesUnitFactorQuantityUtils.js
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLinePopover/TicketLineSalesUnitFactorQuantity/__test__/TicketLineSalesUnitFactorQuantity.test.jsx
---