Supplier purchase orders from a signed change order

When a change order is fully signed, one purchase order per supplier is created from its line items — without duplicating an order that already exists.

What it is

On approval the change order's line items are grouped by supplier and one supplier order is generated for each. Lines with no supplier are ignored — they fall under the whole-change-order signature but map to nobody to send an order to.

Also called: PO from change order · order the extra materials · supplier order

See it
New Change Order — Line Items
Line Items+ Add Line
KindDescriptionSupplierQtyUnitUnit PriceTotal
Material12×12 insulated overhead doors (2)Kaufman Door Supply2ea2480.00$4,960.00×
LaborFrame openings, headers, jamb & track installUnassigned18hr68.00$1,224.00×
Credit (subtracts)Delete one 3068 walk door from base scopeUnassigned1ea640.00-$640.00×
Markup %
12
Tax %
6
Subtotal$5,544.00
Markup (12%) + Tax (6%)$1,037.84
Total$6,581.84
Schedule+3 days
The generated supplier orders listed under an approved change order, one card per supplier with their lines. Backed by generateSupplierOrdersForChangeOrder in src/lib/changeOrders.ts. The real screen, drawn from the product’s own design system. Sample data — no customer information appears here.
How it works
  1. 1Grouping is by supplier_id on the line items.
  2. 2Creation is idempotent — skipped when an order already exists for the same change order and supplier pair.
  3. 3Errors are caught and reported in the result rather than thrown, so one supplier failing does not stop the rest.
Why we built it

An approved change order that adds materials means new orders with several suppliers, retyped by hand from the same list the customer just signed — which is where a quantity gets transposed. Approving a change order groups its lines by supplier and raises one purchase order for each. Running it twice raises no duplicates, and one supplier's order failing does not stop the rest from going out.

The problem
  • Approved extras not translating into material orders.
  • Duplicate purchase orders from re-running the flow.
Sound familiar?
What you get
Signing the change order starts the supply chain.
Each supplier gets only their own portion.

See it on your own jobs

Twenty minutes, your numbers, no slide deck. We’ll build one of your real buildings in front of you and send you the estimate link at the end — yours to keep either way.

or keep browsing features →