Skip to content
Docs
API 1.0.0 · 22 Nov 2026

Search the docs

    Română

    The document chain

    How a sales order, a purchase order and a work order lead to their documents, and which operation creates each one.

    On this page

    Nothing is typed twice. Each document is made from the one before it, carries a link to it, and takes its numbers and amounts from it.

    Selling

    DocumentOperationNumber looks likeMade from
    Sales ordercreateSalesOrderCV-1048A customer and lines
    DeliverycreateDeliveryLIV-2026-01844A reserved sales order
    InvoicecreateInvoiceFCT-2026-00419A delivered sales order

    The order links forward: deliveryId, deliveryNumber, invoiceId and invoiceNumber are filled when those documents exist. Payments belong to the invoice and are recorded with recordInvoicePayment.

    Buying

    DocumentOperationNumber looks likeMade from
    Purchase ordercreatePurchaseOrderCA-0732A supplier and lines with agreed prices
    ReceiptcreateReceiptRE-0459A purchase order and the quantities that arrived
    Supplier billcreateSupplierBillFF-0608A purchase order and what the supplier bills

    A supplier bill is compared with its order and the receipts of that order; see Match a supplier bill. A receipt adds the units to stock at once.

    Making

    DocumentOperationNumber looks likeMade from
    Work ordercreateWorkOrderOP-0214A made item and a quantity

    Finishing a work order takes the components of its bill of materials out of stock and adds the made items. See Run a work order.

    One change, one event

    Every operation that changes a record sends exactly one event, named after the record and what happened to it. The Event catalogue lists them all.