demand: TMS系统 - 客户账单管理 - 业务销账申请 - 新增加运单号销账逻辑调整
This commit is contained in:
parent
b22714e749
commit
1a80335c71
@ -194,7 +194,7 @@ public class EmisWriteoffApplyServiceImpl extends EmisBaseService implements IEm
|
|||||||
|
|
||||||
BigDecimal totalAmount = detail.getApplyMoney().add(historyApplyAmount).add(receivedAmount);
|
BigDecimal totalAmount = detail.getApplyMoney().add(historyApplyAmount).add(receivedAmount);
|
||||||
if (totalAmount.compareTo(recMoney) > 0) {
|
if (totalAmount.compareTo(recMoney) > 0) {
|
||||||
throw new EmisBizError("运单号 " + detail.getBillCode() + " 的申请金额(" + detail.getApplyMoney()
|
throw new EmisBizError("运单号 " + detail.getBillCode() + " 的累计申请金额(" + detail.getApplyMoney().add(historyApplyAmount)
|
||||||
+ ") + 已收金额(" + receivedAmount + ") = " + totalAmount + " 超过运单应收金额("
|
+ ") + 已收金额(" + receivedAmount + ") = " + totalAmount + " 超过运单应收金额("
|
||||||
+ recMoney + ")");
|
+ recMoney + ")");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user