Users can currently only receive inventory for purchase orders; there is no manual control for users to close the PO items. When the promise date arrives, the PO automatically expires. Here implemented a feature where users can close all or some shipments at once.
Created a footer for purchase order page with two buttons "Receive" and "Receive and Close"
Receive button create shipments for the items whom quantities are changed.
Receive and Close button create shipments and then close the items which are selected from the "closePurchaseOrder" modal.
Created a modal "closePurchaseOrder" modal which allows users to select the items they want to close or select all the items at once.
Created a new alert for close purchase order items.
Implemented an api "changeOrderItemStatus" in OrderService which is called to close shipment items or purchase order. It takes some item details as payload.
Screenshots of Visual Changes before/after (If There Are Any)
Before
After
IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance
Related Issues
Closes #212
Short Description and Why It's Useful
Users can currently only receive inventory for purchase orders; there is no manual control for users to close the PO items. When the promise date arrives, the PO automatically expires. Here implemented a feature where users can close all or some shipments at once.
Screenshots of Visual Changes before/after (If There Are Any)
Before
After
IMPORTANT NOTICE - Remember to add changelog entry
Contribution and Currently Important Rules Acceptance