demand: TMS系统 - 客户账单管理 - 业务销账申请 - 新增加运单号销账逻辑调整

This commit is contained in:
aike 2026-02-06 09:47:04 +08:00
parent b22714e749
commit 1a80335c71

View File

@ -194,7 +194,7 @@ public class EmisWriteoffApplyServiceImpl extends EmisBaseService implements IEm
BigDecimal totalAmount = detail.getApplyMoney().add(historyApplyAmount).add(receivedAmount);
if (totalAmount.compareTo(recMoney) > 0) {
throw new EmisBizError("运单号 " + detail.getBillCode() + " 的申请金额(" + detail.getApplyMoney()
throw new EmisBizError("运单号 " + detail.getBillCode() + " 的累计申请金额(" + detail.getApplyMoney().add(historyApplyAmount)
+ ") + 已收金额(" + receivedAmount + ") = " + totalAmount + " 超过运单应收金额("
+ recMoney + ")");
}