1.贷记单计算金额未保存出现数据错误,已修复
This commit is contained in:
25655 2025-03-28 11:31:20 +08:00
parent 981fa16879
commit ceac327ea2

View File

@ -2,7 +2,6 @@ package com.yem.wm.im.debcrednotenew.op;
import com.alibaba.druid.support.logging.Log;
import com.alibaba.druid.support.logging.LogFactory;
import com.yem.wm.es.salesorder.validator.SaleOrderDelValidator;
import com.yem.wm.im.debcrednotenew.utils.DebCredUtils;
import com.yem.wm.im.debcrednotenew.validator.DebCredNewAuditValidatorOp;
import kd.bos.dataentity.OperateOption;
@ -18,7 +17,6 @@ import kd.bos.exception.KDBizException;
import kd.bos.orm.query.QCP;
import kd.bos.orm.query.QFilter;
import kd.bos.servicehelper.BusinessDataServiceHelper;
import kd.bos.servicehelper.QueryServiceHelper;
import kd.bos.servicehelper.operation.OperationServiceHelper;
import kd.bos.servicehelper.operation.SaveServiceHelper;
@ -61,7 +59,7 @@ public class DebCredNewAuditPlugin extends AbstractOperationServicePlugIn {
BigDecimal yemAmountSub = temp.getBigDecimal("yem_amount_sub");//配件资金池扣减金额
BigDecimal yemLastrmbamt = temp.getBigDecimal("yem_lastrmbamt");//上次人民币金额
if ("USD".equals(yemCurrencyString)){
BigDecimal yem_remainingusdamount = yemLastusdamt.add(yemAmount).subtract(yemAmountSub);
BigDecimal yem_remainingusdamount = yemLastusdamt.add(yemAmount).subtract(yemLastusdamt);
temp.set("yem_remainingusdamount",yem_remainingusdamount);
temp.set("yem_remainingamount",yemLastrmbamt);
}else if ("CNY".equals(yemCurrencyString)){