Openbravo Issue Tracking System - POS2
View Issue Details
0058238POS2POSpublic2025-03-13 17:352025-03-27 11:59
javietxe 
inaki_luque 
normalmajorhave not tried
closedduplicate 
5
 
 
approved
Gold
No
0058238: 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.
depends on backport 005824525Q1.1 closed aaroncalero Sales factor unit 0.01 
depends on backport 005824624Q4.2 closed aaroncalero Sales factor unit 0.01 
png Popup.png (38,060) 2025-03-13 17:36
https://issues.openbravo.com/file_download.php?file_id=21045&type=bug
png

png ErrorNotValid.png (17,098) 2025-03-13 17:36
https://issues.openbravo.com/file_download.php?file_id=21046&type=bug
png

png LineModifier.png (14,318) 2025-03-13 17:36
https://issues.openbravo.com/file_download.php?file_id=21047&type=bug
png

? Screencast from 2025-03-18 15-57-40.webm (2,264,875) 2025-03-18 16:51
https://issues.openbravo.com/file_download.php?file_id=21063&type=bug
Issue History
2025-03-13 17:35javietxeNew Issue
2025-03-13 17:35javietxeAssigned To => Retail
2025-03-13 17:35javietxeOBNetwork customer => Gold
2025-03-13 17:35javietxeTriggers an Emergency Pack => No
2025-03-13 17:36javietxeFile Added: Popup.png
2025-03-13 17:36javietxeFile Added: ErrorNotValid.png
2025-03-13 17:36javietxeFile Added: LineModifier.png
2025-03-14 09:54jorgewederagoTypedesign defect => defect
2025-03-14 09:54jorgewederagoStatusnew => scheduled
2025-03-14 09:54jorgewederagoAssigned ToRetail => aaroncalero
2025-03-14 10:01hgbotMerge Request Status => open
2025-03-14 10:01hgbotNote Added: 0176836
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: 0176899
2025-03-17 16:27hgbotFixed in Version => 25Q2
2025-03-17 16:27hgbotNote Added: 0176900
2025-03-18 16:48jorgewederagoAssigned Toaaroncalero => inaki_luque
2025-03-18 16:48jorgewederagoStatusclosed => new
2025-03-18 16:48jorgewederagoResolutionfixed => open
2025-03-18 16:48jorgewederagoFixed in Version25Q2 =>
2025-03-18 16:48jorgewederagoStatusnew => scheduled
2025-03-18 16:51javietxeFile Added: Screencast from 2025-03-18 15-57-40.webm
2025-03-18 16:52javietxeNote Added: 0176959
2025-03-19 08:40hgbotNote Added: 0176971
2025-03-21 13:54hgbotNote Added: 0177114
2025-03-21 13:54hgbotNote Added: 0177115
2025-03-27 11:59hgbotNote Added: 0177352
2025-03-27 11:59hgbotStatusscheduled => closed
2025-03-27 11:59hgbotResolutionopen => duplicate

Notes
(0176836)
hgbot   
2025-03-14 10:01   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3610 [^]
(0176899)
hgbot   
2025-03-17 16:27   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3610 [^]
(0176900)
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: 56e9d921d7c62b97144294773d30909a0ea79682
Author: Aaron Calero <a.calero@orisha.com>
Date: 17-03-2025 16:23:27
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/commit/56e9d921d7c62b97144294773d30909a0ea79682 [^]

Fixed ISSUE-58238: [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
---
(0176959)
javietxe   
2025-03-18 16:52   
Video added with the behavior in livebuilds

 Screencast from 2025-03-18 15-57-40.webm
(0176971)
hgbot   
2025-03-19 08:40   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3632 [^]
(0177114)
hgbot   
2025-03-21 13:54   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3632 [^]
(0177115)
hgbot   
2025-03-21 13:54   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2 [^]
Changeset: 12b5534a2cc573b4f1ace02731ab947538e4b3bb
Author: IƱaki Luque <i.luque@orisha.com>
Date: 21-03-2025 13:54:09
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/commit/12b5534a2cc573b4f1ace02731ab947538e4b3bb [^]

Related to ISSUE-58238: 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
---
(0177352)
hgbot   
2025-03-27 11:59   
Issue exported to Jira: https://openbravo.atlassian.net/browse/RM-24084 [^]