Openbravo Issue Tracking System - POS2
View Issue Details
0057844POS2POSpublic2025-02-03 15:152025-02-13 08:38
Daria_Sh 
ranjith_qualiantech_com 
normalminoralways
closedfixed 
5
 
25Q2 
No
0057844: [25Q1] The non-unit product with a decimal quantity can not be fully returned
When a non-unit product has a decimal quantity, a full return is not possible since there is no option to select the remaining 0.5 quantity for return

Pre-condition (in the Backoffice):
1. Go to 'Product' window
2. Add new Product with the following values:
- Organization
- Search Key
- Name
- UOM: Kilogram
- Tax Category: IVA Normal
- Product Category
- Purchase: ✔
- Active: ✔
- UPC/EAN
3. Go to 'Price' tab
4. Add new tab with following values:
- Price List Version
- Unit Price
- List Price
5. Go to 'Assortment' window
6. Add the newly created product into 'Product' tab of selected assortment
7. Go to 'Unit of Measure' window
8. Ensure 'Kilogram' unit of measure is present in the list
1. Log in to POS
2. Add non-unit product to the Order
3. Push the product line
4. Set the product amount equal to value with decimal (e.g. 1.5)
5. Push 'Ok' button
6. Complete the order (Clic k 'Pay', select 'Cash' and click 'Done')
7. Go to Orders → Select the newly created Order
8. Click the 3 vertical dots → Select 'Verified Returns' option
9. Tick the flag next to product to complete full return → Push 'Apply' button
10. Pay attention to the product quantity (the product quantity is equal to 1)
11. Push 'Refund' button → Complete the Order
12. Go to Orders → Select the initially created Order that was fully returned
13. Attempt to complete 'Verified Returns' once again

Actual result: A remaining quantity of 0.5 is displayed, and the checkbox cannot be selected to complete the full return.
Expected result: The order is fully returned and cannot be processed for return again.
No tags attached.
png Screenshot_90.png (113,289) 2025-02-03 15:15
https://issues.openbravo.com/file_download.php?file_id=20836&type=bug
png

png Screenshot_91.png (97,043) 2025-02-03 15:15
https://issues.openbravo.com/file_download.php?file_id=20837&type=bug
png

png Screenshot_92.png (114,550) 2025-02-03 15:15
https://issues.openbravo.com/file_download.php?file_id=20838&type=bug
png
Issue History
2025-02-03 15:15Daria_ShNew Issue
2025-02-03 15:15Daria_ShAssigned To => Retail
2025-02-03 15:15Daria_ShFile Added: Screenshot_90.png
2025-02-03 15:15Daria_ShTriggers an Emergency Pack => No
2025-02-03 15:15Daria_ShFile Added: Screenshot_91.png
2025-02-03 15:15Daria_ShFile Added: Screenshot_92.png
2025-02-05 10:37Daria_ShSummary[25Q1] The non-unit product can not be fully returned => [25Q1] The non-unit product with a decimal quantity can not be fully returned
2025-02-05 10:37Daria_ShDescription Updatedbug_revision_view_page.php?rev_id=29168#r29168
2025-02-05 10:37Daria_ShSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29170#r29170
2025-02-05 11:37Daria_ShSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29171#r29171
2025-02-05 12:23Daria_ShDescription Updatedbug_revision_view_page.php?rev_id=29172#r29172
2025-02-07 14:26ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2025-02-10 07:14ranjith_qualiantech_comStatusnew => scheduled
2025-02-11 12:58hgbotNote Added: 0175478
2025-02-11 12:58hgbotNote Added: 0175479
2025-02-11 19:08martinsdanIssue Monitored: martinsdan
2025-02-12 10:29Matthieu_AhnNote Added: 0175514
2025-02-13 08:38hgbotNote Added: 0175569
2025-02-13 08:38hgbotResolutionopen => fixed
2025-02-13 08:38hgbotStatusscheduled => closed
2025-02-13 08:38hgbotFixed in Version => 25Q2
2025-02-13 08:38hgbotNote Added: 0175570
2025-02-13 08:38hgbotNote Added: 0175571
2025-02-13 08:38hgbotNote Added: 0175572

Notes
(0175478)
hgbot   
2025-02-11 12:58   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3482 [^]
(0175479)
hgbot   
2025-02-11 12:58   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1762 [^]
(0175514)
Matthieu_Ahn   
2025-02-12 10:29   
For a returned product, with a specific UOM, the expected behavior on return would be:
To return units quantities (and not UOM quantities).
To display the total UOM under the name of the product.
To display the UOM remaining quantity under the remaining quantity.
To display the UOM based on the quantity returned somewhere.

Design to come.
(0175569)
hgbot   
2025-02-13 08:38   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3482 [^]
(0175570)
hgbot   
2025-02-13 08:38   
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: 85424a125bfac0c5699b59695f1d8e91b7be2eca
Author: Ranjith S R <r.rangaraju@external.orisha.com>
Date: 13-02-2025 07:23:04
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/commit/85424a125bfac0c5699b59695f1d8e91b7be2eca [^]

Fixed ISSUE-57844: Quantity To Return should be validated based on product UOM
* If the product has UOM other than Unit,
  whole quantity should be allowed to return instead of partial qty
* When showing SalesUnitFactor in VR Popup, OrderLine SalesUnitFactor should be shown instead of product SalesUnitFactor

---
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/ProductCharacteristics.jsx
M web-jspack/org.openbravo.pos2/src/components/Ticket/TicketLines/__test__/ProductCharacteristics.test.jsx
M web-jspack/org.openbravo.pos2/src/components/VerifiedReturns/VerifiedReturnsGrid/QuantityInputRenderCell/QuantityInputRenderCell.jsx
M web-jspack/org.openbravo.pos2/src/components/VerifiedReturns/VerifiedReturnsGrid/VerifiedReturnsDetailsRow.jsx
---
(0175571)
hgbot   
2025-02-13 08:38   
Merge request merged: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/merge_requests/1762 [^]
(0175572)
hgbot   
2025-02-13 08:38   
Repository: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2 [^]
Changeset: f8e32bd57d06ee19a46b90c89bb2e9ae4873d4f3
Author: Ranjith S R <r.rangaraju@external.orisha.com>
Date: 13-02-2025 07:23:06
URL: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.core2/-/commit/f8e32bd57d06ee19a46b90c89bb2e9ae4873d4f3 [^]

Related to ISSUE-57844: Validate incrementalValue when updating using set action in useEditNumber
* When setting value in useEditNumber, value should be incremented to nearest incrementValue.

---
M web-jspack/org.openbravo.core2/src/hooks/useEditNumber/useEditNumber.js
---