Skip to main content
← All developer updates
improvement

Supply shipment receiving and status rules changed

Supply shipments now follow the transfer rules. Check integrations that write received quantities or change shipment status.

Received quantities are accepted only while a shipment is In Receiving. Receipts on Pending, In Transit, or Delivered start receiving. Receipts on Received, Closed, or Canceled are refused. When a shipment becomes Received, each short line is lowered to its received quantity and the difference returns to the purchase order as unshipped. SupplyShipmentItem.originalQuantity holds the quantity before the change. Received, Closed, and Canceled shipments count 0 incoming.

expectedStatus on the bulk status mutations is deprecated and still works. Use expectedStatuses per shipment. The supplyShipmentsAdvance, supplyShipmentsStepBack, supplyShipmentsStartReceiving, and supplyShipmentsMarkReceived mutations require expectedStatus and refuse a stale one.

qtyReceived on purchase order lines was always null. It now returns the received quantity from the line’s shipments, and stays null when nothing is received.