Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(admin-ui): Hide create fulfilment button when nothing left to ful…
…fil (#3515) Previously, if an order had two fulfilments that fully satisfied the order, then only one was shipped, the status would change to `partially_shipped` and show the "Create Fulfillment" button again, which would open a buggy modal with no items to fulfil. Added another check that looks at the items in the order and compares `quantity` and `fulfilled_quantity`, so that we can hide the button based on this as well, rather than just the order's `fulfillment_status`, which can be misleading. Also added a status icon to the Fulfillment card's title bar for the `partially_shipped` status, as this area was blank before in that state. Resolves CORE-1262
- Loading branch information