inventory

with-materials actions for PurchaseOrderViewset.

POST .../purchaseorder/with-materials/ creates a PurchaseOrder and its materials in one atomic request.

PATCH .../purchaseorder/{id}/with-materials/ updates the PurchaseOrder and replaces its materials set as a whole: a row with an id updates that stored PurchaseOrderMaterial, a row without one creates a new one, and any stored row absent from the list is deleted.

patch/api/inventory/purchaseorder/{id}/with-materials/

Request

  • The document declares no server URL.
  • Auth: none declared

Path parameters

idinteger required

A unique integer value identifying this purchase order.

Request body

uuidstring uuid
supplierinteger
purchase_order_idstring
supplier_remarksstring nullable
order_namestring nullable
order_addressstring nullable
order_postalstring nullable
order_po_boxstring nullable
order_citystring nullable
order_country_codestring nullable
order_emailstring nullable
order_telstring nullable
order_mobilestring nullable
order_contactstring nullable
expected_entry_datestring date nullable
order_referencestring nullable
descriptionstring nullable
supplier_reservationinteger nullable

Response

idinteger required
uuidstring uuid
supplierinteger required
purchase_order_idstring
supplier_remarksstring nullable
order_namestring nullable
order_addressstring nullable
order_postalstring nullable
order_po_boxstring nullable
order_citystring nullable
order_country_codestring nullable
order_emailstring nullable
order_telstring nullable
order_mobilestring nullable
order_contactstring nullable
expected_entry_datestring nullable

Display string in the tenant's configured date_format, not an ISO-8601 value.

expected_entry_date_isostring date nullable required
order_referencestring nullable
descriptionstring nullable
supplier_reservationinteger nullable
num_entriesinteger required
num_materialsinteger required
createdstring required

Display string in the tenant's configured date_format, not an ISO-8601 value.

modifiedstring required

Display string in the tenant's configured date_format, not an ISO-8601 value.

last_statusstring required
last_status_fullstring nullable required
last_status_datestring date-time nullable required
statuscode_idinteger nullable required
colorstring nullable required
text_colorstring nullable required

Changes

    • breaking

      the // response's property format changed from date to no format for status

    • breaking

      the response's property format changed from date to no format for status

    • info

      added the required property // to the response with the status

    • info

      added the required property to the response with the status

    • info

      endpoint added