SAMB — Distribution ERP Services
Core ERP services (Sales Order, Shipment, Master Data, Settlement) built with Go and Echo, plus a standardized React frontend.
About This Project
The Problem
How We Solved It
How It Works
- 1
Sign-in and branch scoping
Users authenticate through Keycloak; service-identity-access decodes the JWT and passes role and branch groups to downstream services as context. Queries are filtered by branch, so each user only sees data for the branches they belong to.
- 2
Customer PO to Sales Order
Sales staff enter a Customer Purchase Order in the web UI, and service-sales-order validates items and prices against service-master. Document numbers such as CPO and SO follow configurable naming series.
- 3
Credit limit check and multi-tier approval
When the Sales Order is generated, the customer's credit is checked against service-credit-limit over gRPC. Orders that need sign-off go to service-approval, where approvers bulk-approve or reject them at tiers from branch to area to head office.
- 4
Warehouse picking and shipment assignment
Approved orders are picked and packed in the Javelin WMS, and delivery documents are printed through service-print (BIRT). service-shipment then creates the delivery manifest and assigns a driver.
- 5
Delivery and proof of delivery
Drivers use the Android driver app (Kotlin, Jetpack Compose) to view assigned deliveries, navigate with offline OpenStreetMap and capture a photo proof of delivery with CameraX. The photos are stored in MinIO through service-storage, and the shipment is marked delivered.
- 6
Invoicing
service-invoice records proof of delivery against receivable shipments and issues invoices with idempotency protection so retried requests do not create duplicates. Corrections and returns go through service-sales-return and service-debit-note.
- 7
Collection and settlement
service-collection builds invoice-exchange (tukar faktur) bills and collector assignments, and field collectors use the collection Android app to visit customers, submit collected documents and record payments. A cashier then verifies the payments before the invoice is settled, and RabbitMQ carries async events and audit logs between services.
Key Capabilities
Frontend Standardization
Core Services
CI/CD for Microservices
UI/UX Design
Under the Hood
Impact & Outcomes
Established a frontend standard that improved team consistency and maintainability
Delivered core ERP services from scratch to production
Bridged engineering and design, covering UI/UX in addition to code
What I Learned
Other Projects
BRI — Rekening Koran (Account Statement)
Backend for Bank BRI's Account Statement platform — CASA, Top 5, and Loan modules across many services, plus a reusable shared library.
BRI — Microservices Migration (300+)
Led a zero-downtime migration of 300+ Enterprise Data Management microservices to production and development with Helm and Kubernetes.