修复折本汇率空值处理问题

This commit is contained in:
mzr 2025-03-14 14:23:06 +08:00
parent 10de4d755d
commit c787a28f45
1 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,7 @@ public class APISaleOrderMaitainImpl implements IAPISaleOrderMaitain {
// 折本汇率 // 折本汇率
UFDouble nexchangerate = childrenVO.getNexchangerate(); UFDouble nexchangerate = childrenVO.getNexchangerate();
nexchangerate = getUFDouble_NullAsOne(nexchangerate);
// 含税单价 // 含税单价
UFDouble nqtorigtaxprice = childrenVO.getNqtorigtaxprice(); UFDouble nqtorigtaxprice = childrenVO.getNqtorigtaxprice();
// 无税单价 // 无税单价
@ -761,6 +762,7 @@ public class APISaleOrderMaitainImpl implements IAPISaleOrderMaitain {
SaleOrderBVO oneBvo = oldVO.getChildrenVO()[0]; SaleOrderBVO oneBvo = oldVO.getChildrenVO()[0];
// 折本汇率 // 折本汇率
UFDouble nexchangerate = oneBvo.getNexchangerate(); UFDouble nexchangerate = oneBvo.getNexchangerate();
nexchangerate = getUFDouble_NullAsOne(nexchangerate);
List<SaleOrderBVO> newBvoList = listMap.get(csaleorderid); List<SaleOrderBVO> newBvoList = listMap.get(csaleorderid);
if (newBvoList != null && !newBvoList.isEmpty()) { if (newBvoList != null && !newBvoList.isEmpty()) {
// 上边填充默认值的时候取了系统的默认汇率需要用BIP传的 // 上边填充默认值的时候取了系统的默认汇率需要用BIP传的