完善财务P1验收客户规则快照
This commit is contained in:
@@ -353,7 +353,7 @@ async function ensureCustomerChargeRule(context, resource, profile) {
|
|||||||
const effectiveFrom = new Date(Date.now() - 86_400_000).toISOString().slice(0, 19)
|
const effectiveFrom = new Date(Date.now() - 86_400_000).toISOString().slice(0, 19)
|
||||||
const body = {
|
const body = {
|
||||||
ruleCode: `FIN_P1_${profile.chargeUnit}_${tenantId}`.slice(0, 50), customerId: tenantId,
|
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,
|
chargeMode: profile.chargeUnit, taxMode: 'TAX_EXCLUDED', conversionFactor: 1,
|
||||||
roundingScale: 3, roundingMode: 'HALF_UP', currency: 'CNY', effectiveFrom,
|
roundingScale: 3, roundingMode: 'HALF_UP', currency: 'CNY', effectiveFrom,
|
||||||
effectiveTo: null, remark: `${context.marker}-VOLUME_CBM`
|
effectiveTo: null, remark: `${context.marker}-VOLUME_CBM`
|
||||||
|
|||||||
Reference in New Issue
Block a user