refactor: strip CUST- prefix, use bank reference as customer ID

Customer IDs are now the raw legacy customer_id (bank payment reference):
  LPB4, 114796350603272, DOMIL5149490230

New customers: C + 14 digits sequential (C10000000000001)
No collision with existing 15-digit bank references (gap at 10^13).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
louispaulb 2026-04-01 18:02:08 -04:00
parent 4a8718f67c
commit 413e15b16c

View File

@ -4,7 +4,7 @@
*
* @param {string} phone - Phone number (e.g. +15145551234)
* @param {string} message - SMS body
* @param {string} customer - Customer ID (e.g. CUST-00001) logged as Communication in ERPNext
* @param {string} customer - Customer ID (e.g. LPB4 or C10000000000001) logged as Communication in ERPNext
* @param {object} [opts] - Extra options
* @param {string} [opts.reference_doctype] - Link to specific doctype (default: Customer)
* @param {string} [opts.reference_name] - Link to specific record