cardinal
Selling

Quotations and orders

Quotation validity, lost quotations, Sales Order statuses, drop shipping, delivery schedules and the orders' Create menu.

Quotation

Quotation To is Customer by default. It may also be Lead or Prospect, or a RecType another app adds, such as the CRM app's CRM Deal. Party names the record.

FieldUse
Valid TillAfter this date a daily job marks an unordered quotation Expired
Order TypeSales, Maintenance or Shopping Cart
OpportunityThe Opportunity it answers. Submit and cancel update the Opportunity's status
Lost ReasonsQuotation Lost Reasons, set when it is declared lost

Statuses: Draft, Open, Replied, Partially Ordered, Ordered, Lost, Cancelled, Expired.

Create > Sales Order works on a submitted quotation that is not Lost or Ordered. An Expired quotation makes an order only with Selling Settings' Allow Sales Order Creation For Expired Quotation on.

Declare a quotation lost with erp.quotation.declare_lost. It takes lost_reasons (Quotation Lost Reason names), competitors and detailed_reason, and is refused once a Sales Order ordered the quotation. The Lost Quotations report groups them by lost reason or competitor.

Sales Order

StatusMeaning
To Deliver and BillSubmitted, nothing finished
To Deliver, To BillOne side finished
CompletedFully delivered and billed
On Hold, ClosedSet by hand. Create menu entries are hidden
To PayA Payment Request is waiting

Close, Hold, Resume and Re-open have no desk button yet. Call erp.sales_order.update_status with status Closed, On Hold, or Draft to go back:

curl -X POST https://erp.acme.com/api/rpc/erp.sales_order.update_status \
  -H "Authorization: token $KEY:$SECRET" -H 'Content-Type: application/json' \
  -d '{"name": "SAL-ORD-2026-00012", "status": "On Hold"}'

An order with nothing left to deliver or bill cannot be Closed.

The order's Create menu

EntryMakes
Delivery NoteThe rows left to deliver
Sales InvoiceThe amount left to bill
Material RequestEach row, or each Packed Item of a bundle row, at the quantity not yet requested or delivered, priced from Buying Settings' price list
Payment RequestA request for the order's amount
Maintenance Schedule, Maintenance VisitFor service on what was sold

Drop shipping

Tick Delivered by Supplier on a row and name its Supplier. A row with the box ticked and no supplier is refused. erp.sales_order.make_purchase_order then makes one draft Purchase Order per supplier for those rows. The Purchase Order takes the customer, the shipping address and the customer contact. Its submit writes the rows' ordered quantity back on the Sales Order.

Delivery schedules

A row may be delivered on several dates. erp.sales_order.create_delivery_schedule writes a draft order row's schedule as a list of delivery_date and qty, and sets the row's Delivery Date to the first one. get_delivery_schedule reads it back.

Example: row W for 100 units, schedules 40 on 2026-12-01 and 60 on 2026-12-15. The row's Delivery Date becomes 2026-12-01. Submitting the order keeps the schedules; cancelling it deletes them.

Reserve stock

Tick Reserve Stock on the order to hold its rows' stock on submit. See Stock reservation.

Credit limit

Submit checks the customer's credit limit. See Customers.

On this page