Support 1 pickup to N logistics orders with create/pay/schedule APIs, parcel inboundMethod auto-attach, plus allocation-trace and inbound-billing updates already in tree.
Co-authored-by: Cursor <cursoragent@cursor.com>
Introduce t_employee linked to RBAC users, switch employee numbers to IDE001+, and keep invite bind/newcomer coupon backend changes. Drop retired sql/migrate and seed scripts in favor of db.sql.
Co-authored-by: Cursor <cursoragent@cursor.com>
Implement referral, points, coupons, commission, member levels, and order integration with migration SQL and background jobs.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add OmsRbacUserDisplayNameResolver and use it in customer, order, warehouse, and channel APIs so audit fields return names instead of mapIds.
Co-authored-by: Cursor <cursoragent@cursor.com>
Support multi cargo-type and warehouse combinations in price check billing. Auto-generate customer codes (W+yyMM+seq) on create/register; require email. Use order DownstreamSupplierCode as track UpsertSmallBag apiCode.
Co-authored-by: Cursor <cursoragent@cursor.com>
Add t_customer_account_flow with list API, deduct balance on order pay, credit ledger on recharge approve, and GET /order/status-counts for tab badges.
Co-authored-by: Cursor <cursoragent@cursor.com>