Lead Time flow 4 — Original Lead Time on the sales order line

The other three lead-time flows keep the current promise up to date. This one does the opposite: it records what the customer was actually told at the moment they ordered, on the order line itself, so that promise survives even after the item's live lead time has moved on.

Partly documented. The NetSuite side — the saved search, its columns, and the field written — is verified against production. The Celigo internals are not: the connector was unavailable when this entry was written, so the flow's script and mappings have not been read. The entry stays draft until they have been. Everything unestablished is marked as such rather than guessed.

Rules & IDs

Rule ID Rule Reading
LI-BL-ORD-001 Stamp the promised lead time onto the order line Business logic

Why ORD and not INV. The other lead-time rules are inventory rules — they describe when stock becomes available. This one describes a property of an order: what we committed to, on a particular line, on a particular day. It would still mean the same thing if the inventory system were replaced. Domain codes follow meaning, not folder (CONVENTIONS §4), which is why it sits in the lead-time folder with an order-domain ID.


Project owner
Kim Hoang Nguyen
Developer
Kim Hoang Nguyen
For department
Entire Life Interiors team, and the customer
Status
draft
Documented
created 2026-08-21 · updated 2026-09-28this registry entry
Script created / updated
created 2024-02-29 · updated 2026-08-21from Celigo — flow 65e04881
Verified against production
2026-08-21no version control — verified by re-reading the flow
Systems touched
celigonetsuite
Rule
Terms

Three readings of the same rules. Nothing is duplicated between them. Printing gives you the business reading followed by the diagrams.

Stamp the promised lead time onto the order line LI-BL-ORD-001

What it does. It writes the lead time a customer was promised at the moment they ordered onto the order line itself, as Original Lead Time, so the promise survives every later change to the product's live lead time.

Why it exists. A lead time changes. Stock arrives early, a container is delayed, a supplier re-quotes — and the number on the product page moves with it. None of that changes what the customer was told when they paid. Without a record of the original promise there is no way to answer the only question that matters when an order runs late: what did we actually say?

This rule writes that answer down, once, on the order line, at Original Lead Time.

Who it affects. Customer service and showroom staff first, because they are the ones asked "when was I told this would arrive?". Supply chain feels it next, because the delay notifications are measured against this value. The customer feels it last, in whether the answer they get is the one they were actually given.

Who reads it afterwards.

Reader Uses it to
Supply chain notifications Work out when an order has slipped past what was promised, and what to send next
Delay emails Decide that a delay has happened at all, and how late it is
Sales, customer service and showroom staff Answer "when was I told this would arrive?" without reconstructing it

When it runs. Three times a day, Sydney time — 11:50am, 6:50pm and 11:50pm. It is not part of the flow 1 → flow 2 chain, and it does not trigger anything else. It runs on its own schedule and looks at orders.

What it looks at. One row per sales order line, with the order's date, the line's item, the lead time the line already carries, and the item's own live lead-time figures — arrival date, dispatch band, our stock, the supplier's stock and the supplier's date.

How it decides. Not yet established, and deliberately not guessed at. What is known:

  • It reads one row per sales order line, three times a day.
  • Each row carries the order's date, the line's current Original Lead Time, and the item's own live lead-time figures — arrival date, dispatch band, our stock, the supplier's stock and the supplier's date.
  • One of those inputs becomes the stamped promise. Which one, and how the order date factors in, is in the Celigo script, which has not been read.
  • Whether an existing value is ever overwritten is also unknown — and it is the question that matters most, because a promise that moves is not an original promise.

Outcomes. The line is stamped with an Original Lead Time · the line is left as it is — whether that second outcome exists at all is open question 2.

The one-line version. A lead time is a promise; this is where the promise is kept.

Not yet established. Exactly which of those inputs decides the date, and whether an existing value is ever overwritten, is in the Celigo script — which has not been read yet. The shape of the rule is recorded here; the arithmetic is not. See Open questions.


Field registry

Every field this automation reads or writes, by the name it carries in the system — what it means, and what changes when it changes. Field ids are in the developer reading.

Inputs — what it reads

Values the automation looks at to make its decision. Change one of these and the decision changes.

FieldWhat it meansWhat it changesStatus
Internal IDSales Order Which sales order the line belongs to. Identifies the order the stamp is written back to. confirmed
Document NumberSales Order The order number the customer and the team quote, e.g. S319344. Identification and traceability only. confirmed
Line IDSales Order line Which line of the order this is. The stamp is per line, not per order — every item on an order can carry a different promise. confirmed
DateSales Order When the order was placed. The point the promise is measured from. confirmed
Original Lead TimeSales Order line The Original Lead Time the line already carries. The existing value. Whether the automation only writes when this is empty, or overwrites it, is not yet established — see the open questions. confirmed
Next Available Receive DateInventory Item When the next stock of the item is expected — the value the lead-time chain maintains. The most likely basis for the promise. This is the field flows 1 and 2 write. confirmed
Ship DateSales Order line The ship date currently on the line. Not yet established. confirmed
Ships InInventory Item The dispatch band the item carried at the time — "Ships in 6 - 8 weeks" and so on. The item-level promise as flow 2 last set it. confirmed
Qty Available (Warehouse)Inventory Item Stock on hand for the item. Not yet established. The sample returns several rows per line with different values here — see the open questions. confirmed
needs confirmingSales Order line needs confirming Not yet established. needs confirming
needs confirmingInventory Item needs confirming Not yet established. needs confirming
Supplier Quantity On HandInventory Item The supplier's own stock on hand. Not yet established. confirmed
Supplier Quantity On OrderInventory Item The supplier's own stock on order. Not yet established. confirmed
Supplier Next Available Receive DateInventory Item When the supplier expects their next stock. Not yet established. confirmed
needs confirmingInventory Item needs confirming Not yet established. Likely the purchase order stage, which a separate flow maintains. needs confirming
Preferred SupplierInventory Item Which supplier the item is normally bought from. Not yet established. confirmed
Lead SourceSales Order Where the order came from — the website, a showroom, and so on. Not yet established. Likely distinguishes a promise made online from one made in a showroom. confirmed
needs confirmingItem Whether the line is a stocked item, a kit, and so on. Not yet established. Kits and items carry their lead times differently, so this probably matters. needs confirming

Outputs — what it writes

Values the automation puts back. Everything downstream of this rule reads them, so a wrong value here travels.

FieldWhat it meansWhat it changesStatus
Original Lead TimeSales Order line The maximum lead time for the item as shown on the website, or as communicated to the customer in a showroom. The record of what the customer was told when they ordered. Read afterwards by supply chain notifications, delay emails, and by the team when a customer asks what they were promised. confirmed