Overview of shipments #12442
|
I'm very impressed with the system and I am using it to track the inventory in my small electronics lab. I've created a script to load my webshop order as sales order in InvenTree. I check my shipments and send them. However, I would like to have an overview that shows all shipments with the status Send but not Delivered. Is there a way to get this data? |
Replies: 1 comment
|
Yes. InvenTree already exposes the exact combination you need on the sales-order shipment list endpoint: GET /api/order/so/shipment/?shipped=true&delivered=false&order_detail=true
This is implemented in If you need this as a recurring operational view, your existing import script can call that endpoint and render/export the returned rows. The current order page separates pending and completed shipments, so the API is the cleanest global cross-order overview. |
Yes. InvenTree already exposes the exact combination you need on the sales-order shipment list endpoint:
shipped=trueselects shipments with a non-nullshipment_date, whiledelivered=falseselects those whosedelivery_dateis still null. So the intersection is “sent, but not delivered”.order_detail=trueis useful for an overview because it includes the related sales-order details in each result.This is implemented in
SalesOrderShipmentFilter(shippedanddeliveredare independent boolean filters), and the shipment table uses the same two filters:If you need…