Openbravo Issue Tracking System - POS2
View Issue Details
0057843POS2POSpublic2025-02-03 14:562025-02-06 07:10
Daria_Sh 
Bimla_vm 
normalminoralways
scheduledopen 
5
 
 
No
0057843: [25Q1] The non-unit product is not removed from the Order when its quantity is equal to 0
The expected behavior for unit products is that when their quantity drops below 0, they are automatically removed from the order.

However, for non-unit products with decimal quantities, if the quantity falls below 0, the product remains in the order instead of being removed.

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/Scan one non-unit product
3. Push the product line
4. Place the cursor in the field to adjust the amount
5. Set the value with decimals into 'kg' field (e.g 1.55)
6. Push 'Ok' button
7. Push the product line
8. Click '-' button to decrease the product amount to 0.55
9. Click '-' button once again to decrease the product amount to 0

Actual result: The product stays in the order with a negative quantity.
Expected result: The product is removed from the order when its quantity drops below 0.
No tags attached.
png Screenshot_89.png (98,974) 2025-02-03 14:56
https://issues.openbravo.com/file_download.php?file_id=20834&type=bug
png

png Screenshot_88.png (98,986) 2025-02-03 14:56
https://issues.openbravo.com/file_download.php?file_id=20835&type=bug
png
Issue History
2025-02-03 14:56Daria_ShNew Issue
2025-02-03 14:56Daria_ShAssigned To => Retail
2025-02-03 14:56Daria_ShFile Added: Screenshot_89.png
2025-02-03 14:56Daria_ShTriggers an Emergency Pack => No
2025-02-03 14:56Daria_ShFile Added: Screenshot_88.png
2025-02-04 09:04Bimla_vmAssigned ToRetail => Bimla_vm
2025-02-04 09:04Bimla_vmStatusnew => scheduled
2025-02-05 10:30Daria_ShDescription Updatedbug_revision_view_page.php?rev_id=29164#r29164
2025-02-05 10:30Daria_ShSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=29166#r29166
2025-02-05 12:23Daria_ShDescription Updatedbug_revision_view_page.php?rev_id=29173#r29173
2025-02-06 07:10hgbotNote Added: 0175193

Notes
(0175193)
hgbot   
2025-02-06 07:10   
Merge Request created: https://gitlab.com/orisha-group/bu-commerce/openbravo/product/pmods/org.openbravo.pos2/-/merge_requests/3462 [^]