feat(fulfillment): 增加统一结算与多渠道人工履约
This commit is contained in:
@@ -21,6 +21,17 @@ test('人工成本:固定成本按配置积分 × 平台换算率', () => {
|
||||
)
|
||||
})
|
||||
|
||||
test('人工成本:备用金和统一结算金额支持两位小数', () => {
|
||||
assert.deepEqual(
|
||||
resolveManualFulfillmentCost({
|
||||
creditQuantity: 12.34,
|
||||
unitPriceFen: 100,
|
||||
providedCostFen: undefined,
|
||||
}),
|
||||
{ costFen: 1234, costMode: 'fixed' },
|
||||
)
|
||||
})
|
||||
|
||||
test('人工成本:成本不固定必须手填正数金额', () => {
|
||||
assert.deepEqual(
|
||||
resolveManualFulfillmentCost({
|
||||
|
||||
Reference in New Issue
Block a user