Sentra Automotive — Modules¶
Sistem SentraAuto Care dibangun menggunakan pendekatan arsitektur Modular Monolith:
sentraauto-monolith/
├── src/
│ ├── modules/
│ │ ├── vehicle-diagnostics/ # Keluhan, Odometer, Histori Servis Lintas Cabang
│ │ ├── work-order-manager/ # SPK, Antrean Bay, Progress SLA Mekanik
│ │ │ └── gateways/ # WebSockets for live status updates
│ │ ├── inventory-warehouse/ # Barcode Scanning, Multi-Gudang, Substitusi Part
│ │ ├── service-garansi/ # Claim Warranty Tracker, Rework Handling
│ │ ├── billing-pos/ # Cashier, PPN 11%, EDC Split Pay, Piutang
│ │ └── mechanic-payroll/ # Jasa Mekanik Engine, Upselling Bonuses, PPh 21
│ ├── shared/
│ │ ├── security/ # Supervisor PIN Encryption
│ │ └── whatsapp/ # Twilio WhatsApp Integration Engine
│ └── main.ts
| Modul | File | Deskripsi |
|---|---|---|
| Work Order | work-order.md | WO lifecycle state machine (INTAKE→DIAGNOSING→WORKING→WAITING_PARTS→QC_TEST→COMPLETED), SLA timer, multi-mechanic assignment, warranty rework |
| VIN History | vin-history.md | Cross-branch VIN/plate registry, diagnostic timeline, predictive mileage-based maintenance reminder |
| Sparepart | sparepart.md | Barcode FEFO dispense, auto-reorder threshold, substitute mapping EXACT/MODIFIED, stock opname |
| Payroll | payroll.md | Pay-per-job flat rate 35% commission, upselling incentive 1.5%, quality penalty deduction, PPh 21 |