Indoor creates a direct order after a sales conversation, or converts an accepted quotation.
Status at ebf7cf0: Partial — draft creation, customer linkage and item entry exist. Company freezes at dispatch instead of Complete Job, and the Source of Order seed is incomplete.
Indoor creates a direct order after a sales conversation closes, or converts an accepted quotation into an order.
Draft ──dispatch commits──> Dispatched
Job and payment status are derived separately. Completing one Job Log does not complete the Order.
Story. As Indoor, I want to save an incomplete Draft Order, so that I can capture the sale progressively.
Acceptance. Save does not require every dispatch field. Missing requirements remain visible before dispatch.
Story. As Indoor, I want to select branch, service type, service address and Source of Order from managed data, so that downstream routing is consistent.
Acceptance. Source of Order offers Indoor, Walk-in, KJ Team, SGS, Intercompany, Internal, LG and Others. SGS and Intercompany retain their downstream meaning.
Story. As Indoor, I want to find a customer by phone and reuse the stable customer record, so that history remains connected.
Acceptance. Phone uniqueness is enforced within the business unit and the selected service address is linked to the Order.
Story. As the system, I want Order, initial itemize and audit data to save atomically, so that no half-created sale exists.
Acceptance. A failed write rolls back the whole create transaction.
Story. As the system, I want company ownership frozen at Complete Job from the fulfilling branch, so that accounting follows the branch that completed the work.
Acceptance. The frozen company does not change after completion without a controlled correction.
company_code is frozen at dispatch, not at Complete Job. The repository seed for Source of Order still contains only Indoor, Telemarketing, LG and Khind — the live settings must be checked and completed before rollout.
The customer-facing Order Number is not the database relationship key. Hidden stable IDs preserve links between the Order, Job Logs, Itemize, Payments and Refunds. See Order number and identity.
One customer record is shared by every one of their orders. Whether an order keeps its own copy of the customer details used on the day is open — Q4.
New to these terms? See the Glossary.