YMTT ADMIN
prototype, not connected to Yoongmei loadingโฆ๐ฆ Orders โ WhatsApp intake, planner queue, and delivery tracking
โ๏ธ New Order โ Create D/O, planner places a D/O manually
On behalf of a registered customer (their own dropdown locations), or a walk-in with no account (free-text consignor/consignee โ a planner is trusted, unlike the customer portal's dropdown-only safeguard). Lands in Orders as an Acknowledged order, ready for a planner to Approve/Reject โ exactly like a WhatsApp or portal order.
Transfer D/O (Sub D/O): moves an existing D/O to another branch. Goods lines and freight are not entered; charges are not copied.
Old-system fields (optional)
โ๏ธ Settings
Order template customers should send (DRAFT โ pending Max's confirmation)
Current extraction mode: โฆ. Regex mode costs zero LLM tokens; labels tolerate minor typos/spacing and Chinese aliases (see below). A message missing a required field gets bounced back asking the customer to resend a complete order; anything with no recognisable labels at all is silently ignored.
โฆ
Accepted keywords
| Field | Accepted aliases (typos/spacing tolerated) |
|---|
๐ฅ Customers โ registered accounts
Edit any field, then Save โ writes an audit row. Pickup/delivery locations are managed via "View as".
๐ Contract Rates โ per-customer overrides (module 7 follow-up, item 8)
Pick a registered customer to view or set their own contract rates. Only checked types are overridden โ an unchecked type falls back to the global Rate Card automatically. A customer with no contract at all quotes exactly like today.
๐ฐ Rate Card โ module 7 quotation rates
Per Unit is Max's confirmed rate. The other 5 are DRAFT placeholders so a quote is never blank โ update the fields below the moment Max gives real numbers, then Save. No code change or redeploy needed.
Comparison Settings โ best-offer recommendation thresholds
Controls the multi-type quote comparison (Orders โ Create โ Compare all applicable types). "Practical" range is advisory โ a type outside it is still shown and computable, just not picked as the top recommendation unless nothing else qualifies. No code change or redeploy needed.
๐งโโ๏ธ Drivers โ fleet roster
Click a driver to see their profile (trips, routes, total km, accident records). Default lorry is used automatically by Assign unless overridden.
๐ Lorries โ fleet roster
Type/capacity drive the Assign suggestion score. Setting status to "maintenance" removes a lorry from every suggestion until it's back to active.
๐ Logsheets โ trip sheets
๐งพ Audit Trail โ every planner action, from the database
๐งช Tests โ npm test suite (node:test)
Runs against a fresh temp database every time โ never the live one. Only one run at a time.
Last run output
No run yet.
๐ Reports โ order amount by customer
Management overview
Order amount by customer, over time
Only quoted orders (a non-null amount) count โ an order that never got quoted has nothing to report.