Openbravo Issue Tracking System - Retail Modules
View Issue Details
0055002Retail ModulesWeb POSpublic2024-03-20 00:432024-04-05 09:53
ivazquez 
Rajesh_18 
highmajoralways
closedout of date 
5
RR20Q3.4 
 
marvintm
No
0055002: Error when trying to change line quantity after deleting an order
In NOR, after deleting an order, if you try to change the quantity of the line, it does not do it and the only way to do it is to perform a "refresh data"
First part:

-Create a new order and add a new line
-Select this line and click on the "Discounts" button to open the pop-up to select a new discount
-Close this pop-up without adding any discount.
-Check if you can change the quantity of the line (you should be able to do it)
-Delete the order
 
Second part: (AT THIS POINT, THE PROBLEM IS REPRODUCIBLE)

-Create a new order and add a new line
-Select this line and try to change the quantity. (you shouldn't be able to do it)

This is the conditional that gives TRUE after the first part and makes it impossible to update the amount of the line:

changequantity.js

if (
    !selectedReceiptLine ||
     !receipt.get('lines').models.find(function(l) {
       return selectedReceiptLine.get('id') === l.get('id');
     })
) {
  return;
}
NOR
related to defect 0043481 closed ranjith_qualiantech_com Order Error Deleting Lines With SUPR key 
related to defect 0044773 closed ranjith_qualiantech_com Delete Ticket does not wait for the CalculateReceipt execution 
png conditionalSecondPart.png (11,929) 2024-03-20 00:45
https://issues.openbravo.com/file_download.php?file_id=19568&type=bug
png

png conditionalFirstPart.png (11,878) 2024-03-20 00:46
https://issues.openbravo.com/file_download.php?file_id=19569&type=bug
png
Issue History
2024-03-20 00:43ivazquezNew Issue
2024-03-20 00:43ivazquezAssigned To => Retail
2024-03-20 00:43ivazquezTriggers an Emergency Pack => No
2024-03-20 00:45ivazquezRelationship addedrelated to 0043481
2024-03-20 00:45ivazquezRelationship addedrelated to 0044773
2024-03-20 00:45ivazquezTag Attached: NOR
2024-03-20 00:45ivazquezFile Added: conditionalSecondPart.png
2024-03-20 00:46ivazquezFile Added: conditionalFirstPart.png
2024-03-20 00:46ivazquezSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=27713#r27713
2024-03-21 08:59jorgewederagoNote Added: 0162447
2024-03-21 08:59jorgewederagoStatusnew => acknowledged
2024-03-26 07:50Rajesh_18Assigned ToRetail => Rajesh_18
2024-03-26 07:50Rajesh_18Statusacknowledged => scheduled
2024-04-05 01:09ivazquezNote Added: 0162859
2024-04-05 09:53marvintmReview Assigned To => marvintm
2024-04-05 09:53marvintmNote Added: 0162873
2024-04-05 09:53marvintmStatusscheduled => closed
2024-04-05 09:53marvintmResolutionopen => out of date

Notes
(0162447)
jorgewederago   
2024-03-21 08:59   
For this issue please contact Victor Perez in order to ask for access to a terminal where it can be reproduced before trying anything else.
(0162859)
ivazquez   
2024-04-05 01:09   
Attached patch provided by the developer, it's works fine.
(0162873)
marvintm   
2024-04-05 09:53   
Problem only happened in older versions