Commit 9290b0c7 authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复税率有值,但是是否含税为 null 的问题

parent fad1d835
......@@ -490,11 +490,12 @@ class GoodsDrawer extends React.Component<GoodsDrawerProps, GoodsDrawerState> {
,
// 计算已支付金额,采购单价 * 支付比例 累加
payAmount:
product.payInfoList ?
product.payInfoList.reduce((prev, now) => {
product.payInfoList
? product.payInfoList.reduce((prev, now) => {
return now.externalState === PayOutWorkState.CONFIRM_ACCOUNT ? +(new BigNumber(+product.purchaseCount).multipliedBy(product.price).multipliedBy(new BigNumber(now.payRatio).dividedBy(100))).toFixed(2) + prev : prev;
}, 0) :
0
}, 0)
: 0,
taxInclusive: product.taxInclusive || !!product.taxRate,
});
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment