Openbravo Issue Tracking System - Retail Modules
View Issue Details
0049045Retail ModulesWeb POSpublic2022-04-12 16:552022-04-19 08:17
jose_duque 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
30Openbravo Appliance 14.04
 
RR20Q3.4RR22Q3 
No
0049045: It is not possible to update negative quantities
We can't update negative quantities reliably in the webPOS.

For instance it is not possible to input -25 as a quantity in a return ticket.

The button "-" can't be used reliably, it may even block the POS and a refresh would be necessary.
Use case 1
1. Add a return line (-1)
2. Click on "Quantity" and input 2, and return.

The line will be deleted.

Use case 2
1. Add a line (1)
2. Click on "Quantity" and input 55, return.
3. Return the line
4. Click on "Quantity" and input 2, return.

What are we supposed to have as behavior here?


Issue Reproducible in livebuilds
POS
1) Menu - Return this receipt
2) Add a product
3) Click on "Quantity" and input 9, and return.
4) Click on "Quantity" and input 1, and return.
5) Click on "Quantity" and input 2, and return.
Line will be deleted. But it should not
No tags attached.
Issue History
2022-04-12 16:55jose_duqueNew Issue
2022-04-12 16:55jose_duqueAssigned To => Retail
2022-04-12 16:55jose_duqueTriggers an Emergency Pack => No
2022-04-12 16:55jose_duqueIssue generated from0049044
2022-04-15 11:54ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2022-04-18 13:16ranjith_qualiantech_comSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=23924#r23924
2022-04-18 13:23hgbotNote Added: 0136551
2022-04-19 08:17hgbotResolutionopen => fixed
2022-04-19 08:17hgbotStatusnew => closed
2022-04-19 08:17hgbotNote Added: 0136566
2022-04-19 08:17hgbotFixed in Version => RR22Q3
2022-04-19 08:17hgbotNote Added: 0136567

Notes
(0136551)
hgbot   
2022-04-18 13:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/772 [^]
(0136566)
hgbot   
2022-04-19 08:17   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/772 [^]
(0136567)
hgbot   
2022-04-19 08:17   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 4f4f22dda33dd4df574f7c643cef6c1bfa907245
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 19-04-2022 06:16:51
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/4f4f22dda33dd4df574f7c643cef6c1bfa907245 [^]

Fixed ISSUE-49045: Line Quantity should be updated based on receipt orderType
* When changing the qty, Line should not be deleted if orderType is return

---
M web/org.openbravo.retail.posterminal/js/actions/changequantity.js
---