Purchase Type (Edit View)
Every new case copies its milestones and documents from here. Rules decide which type a case gets; cases already running keep their copy.
Status
Active types are offered at Open Case; Inactive ones are retired and existing cases keep their copy. The band also shows how many cases use the type.
Rules
Finance Routes, Condition, Value From/To (sale value in rand), Origins and Delivery To. An empty rule matches every case. Pick Origins with Add/Remove Origins: tick countries under Available, press Add Ticked, then OK, and Save. Priority decides which type wins when several match: lower wins, then the type with more rules set. Default Type is used when no type matches; one Active type is the default, and ticking it here takes it from the other.
Reminders and Portal
Reminder days before a milestone is due (empty uses Settings), and the introduction the customer reads at the top of the case in the portal.
Milestones
Grouped by phase (Open, Finance, Ordering, Manufacturing, Shipping, Installation); drag a line to reorder it. Each has a code (stable, read-only once a case used it), name, owner, due rule and days, Gate, Auto Event, Sign-off and its text, Portal, Applies When and a note. The row menu has Duplicate Line, Move to Phase, Checklist Items (sub-items the customer ticks in the portal, with a photo where asked; the Items column counts them) and Delete Line. Add Milestone adds a line. AI in the page header (or Draft with AI while there are no milestones) opens the Purchase Type Assistant.
Auto event
Ticks the milestone when this happens elsewhere in the app. See Milestone events.
Sign-off
The customer confirms the milestone in the portal. The sign-off text is what they confirm; keep it short and specific. It may use {customer}, {machine}, {serial_no} and {date}.
Documents
The documents a case needs: Document Type, who provides it, Required, Needed By (phase), Applies When and Portal. Only Active, complete document types can be added.
Supplier payment terms
One line per scheduled supplier payment: kind, percent, trigger, instrument and due days. The lines must total 100%, and a milestone of this type must tick each trigger.
Incomplete
A type is incomplete with no milestone, no dna_signed milestone with sign-off, a sign-off without text, two milestones with one code, Value From above Value To, terms not totalling 100%, a trigger no milestone ticks, or no Active default type. It still saves.
Actions and Menu
Actions holds Duplicate, Test Rules, Import from Project Template (the template's tasks become unsaved milestones) and Delete (no cases only). The Menu holds Discard Changes, Save Layout and Restore Default.