Overview: When unopening an order, decreasing the quantity and then opening the order again I am no longer presented the delete pieces modal. Meaning I end up with too many pieces in the receiving app.
Steps to Reproduce:
- Log into bugfest-juniper
- Create order
- Create order line
- quantity = 2
- Manually add pieces for receiving = False
- complete required fields
- save and close
- open order
- Unopened order
- Edit POL and change quantity to 1
- Open order
Expected Results: before opening order system displays delete piece modal and user can remove the desired pieces such that the quantity of the order = the number of pieces in receiving for that POL.
Actual Results: Delete piece modal IS NOT shown even when "Manually add pieces for receiving" = False. Order is opened successfully and pieces have not been changed
Note the implemented workflow is currently correct for "Manually add pieces for receiving" = True