Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Revisions: Issue #55002 All Revisions ] Back to Issue ]
Summary 0055002: Error when trying to change line quantity after deleting an order
Revision 2024-03-20 00:46 by ivazquez
Steps To Reproduce 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;
}
Revision 2024-03-20 00:46 by ivazquez
Steps To Reproduce 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:

if (
    !selectedReceiptLine ||
     !receipt.get('lines').models.find(function(l) {
       return selectedReceiptLine.get('id') === l.get('id');
     })
) {
  return;
}


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker