fix phase3 acceptance roots and payable validation
This commit is contained in:
@@ -150,6 +150,7 @@ async function createManualFee(context, resource, feeItem, direction, amount, ba
|
||||
const listPath = `${basePath}?accountId=${encodeURIComponent(resource.tenantId)}`
|
||||
const body = { feeItemId: String(feeItem.id), direction, businessDate,
|
||||
unitPrice: amount, currency: 'CNY', amount,
|
||||
...(direction === 'PAYABLE' ? { settlementMode: 'ON_ACCOUNT' } : {}),
|
||||
supplierId: supplier?.id ? String(supplier.id) : null,
|
||||
remark: `${context.marker}-${basis}` }
|
||||
const response = await request(context, 'POST', listPath, body)
|
||||
@@ -443,7 +444,8 @@ export async function run(context) {
|
||||
const basePath = `/api/platform/v1/loading-plans/${encodeURIComponent(container.loadingPlanId)}/fee-details`
|
||||
const path = `${basePath}?accountId=${encodeURIComponent(container.tenantId)}`
|
||||
const body = { feeItemId: String(feeItems.PAYABLE.id), direction: 'PAYABLE', businessDate: dateOffset(-2),
|
||||
amount: 300, currency: 'CNY', supplierId: id(supplier.id), remark: `${context.marker}-CONTAINER_SHARED` }
|
||||
amount: 300, currency: 'CNY', supplierId: id(supplier.id), settlementMode: 'ON_ACCOUNT',
|
||||
remark: `${context.marker}-CONTAINER_SHARED` }
|
||||
const response = await request(context, 'POST', path, body)
|
||||
if (response?.http === 404) {
|
||||
blocker(context, '按柜费用来源接口已部署并可路由',
|
||||
|
||||
Reference in New Issue
Block a user