Skip to content
Discussion options

You must be logged in to vote

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

shipped=true selects shipments with a non-null shipment_date, while delivered=false selects those whose delivery_date is still null. So the intersection is “sent, but not delivered”. order_detail=true is useful for an overview because it includes the related sales-order details in each result.

This is implemented in SalesOrderShipmentFilter (shipped and delivered are independent boolean filters), and the shipment table uses the same two filters:

If you need…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by leejoow
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants