new-site/api/src
justin 869bcac287 fix batch SO item_code (use erpnext_item) + notification surcharge breakdown
ROOT CAUSE of orders never fulfilling: the batch Sales Order used the service
SLUG as item_code (e.g. 'mcs150-update') but ERPNext items use the catalog
erpnext_item codes ('MCS150-UPDATE'), so SO creation threw 'Item not found' ->
no SO -> no portal -> no fulfillment. Now maps slug -> erpnext_item (falls back
to COMPLIANCE-SERVICE). DOT ERPNext items were also missing — created them.

Notification: show Subtotal / Discount / Card surcharge / Total so totals like
$35.54 (= $34.50 + $1.04 surcharge) are transparent instead of looking wrong.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-05-31 20:01:29 -05:00
..
lib Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
middleware Add PUT to CORS allowed methods (needed for intake save) 2026-04-28 18:29:00 -05:00
routes fix batch SO item_code (use erpnext_item) + notification surcharge breakdown 2026-05-31 20:01:29 -05:00
config.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
create-admin.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
db.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
email.ts Fix 6 bugs found in compliance and checkout flows 2026-04-27 09:56:12 -05:00
erpnext-client.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
fx.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00
index.ts add order timeline API: step names + estimated business-day completion dates per service 2026-05-30 22:48:44 -05:00
sanctions.ts Initial commit — Performance West telecom compliance platform 2026-04-27 06:54:22 -05:00