Skip to main content

Shipment Inventory Adjustments

Inventory adjusts automatically during certain shipment events.

Shipped Shipment

When a shipment transitions to shipped status either by being updated or by being created in that status, inventory adjustments will be made for the shipment inventory items.

If the location_from_id is set then available_to_sell will be deducted from the location for each of the shipment inventory items.

If the location_to_id is set then incoming will be deducted from the location for each of the shipment inventory items.

Shipment Receipt Completed

When a shipment receipt is updated with a completed_time either by being updated or by being created with the field, inventory adjustments will be made for the shipment receipts items.

If the location_to_id is set for containing shipment receipt then incoming will be deducted by the sum of shipment receipts items in the related receipt.

For each shipment receipts item:

  • If the available field (defaults to true) is true then available_to_sell will be increased by quantity
  • else the unavailable will be increased by the quantity

Closed Shipment

When a shipment transitions to closed status from shipped status, inventory adjustments will be made for the shipment inventory items that we did not receive a shipment receipt for. It is assumed that the remainder of the shipment was received correctly even if we did not receive explicit receipts for each shipped item. A shipment cannot be transitioned to closed status until all receipts linked to the shipment are updated with a completed_time.

If the location_to_id is set then:

note

Creating a Shipment in closed status will not result in any inventory adjustments.

Cancelled Shipment

When a shipment transitions to cancelled status from shipped status, inventory adjustments will be made for the shipment inventory items that we did not receive a shipment receipt for. It is assumed that the remainder of the shipment was not received if we did not receive explicit receipts for each shipped item. A shipment cannot be transitioned to cancelled status until all receipts linked to the shipment are updated with a completed_time.

If the location_to_id is set then incoming will be deducted from the location for each of the shipment inventory items that was not explicitly received via a linked shipment receipt.

If the location_from_id is set then available_to_sell will be added back to the location for each of the shipment inventory items that was not explicitly received via a linked shipment receipt.

note

Creating a Shipment in cancelled status will not result in any inventory adjustments.