完善财务P1验收客户规则快照

This commit is contained in:
2026-09-09 17:46:36 +08:00
parent be882d53d1
commit fc5ce1f45f
@@ -353,7 +353,7 @@ async function ensureCustomerChargeRule(context, resource, profile) {
const effectiveFrom = new Date(Date.now() - 86_400_000).toISOString().slice(0, 19)
const body = {
ruleCode: `FIN_P1_${profile.chargeUnit}_${tenantId}`.slice(0, 50), customerId: tenantId,
customerName: `财务P1验收客户-${tenantId}`.slice(0, 128), businessType,
customerName: String(inbound?.summary?.customerName || `财务P1验收客户-${tenantId}`).slice(0, 128), businessType,
chargeMode: profile.chargeUnit, taxMode: 'TAX_EXCLUDED', conversionFactor: 1,
roundingScale: 3, roundingMode: 'HALF_UP', currency: 'CNY', effectiveFrom,
effectiveTo: null, remark: `${context.marker}-VOLUME_CBM`