demand: TMS-客户账单管理--业务销账申请、财务中心销账审核、修改销账申请-异常提示优化与用户交互体验
committer: heyu
This commit is contained in:
parent
6549f6a94d
commit
1f3bf7cfd9
@ -189,7 +189,7 @@ public class EmisWriteoffApplyController extends EmisBaseController {
|
|||||||
return toAjax(emisWriteoffApplyService.insertEmisWriteoffApply(emisWriteoffApply));
|
return toAjax(emisWriteoffApplyService.insertEmisWriteoffApply(emisWriteoffApply));
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
log.error("新增销账申请失败", e);
|
log.error("新增销账申请失败", e);
|
||||||
return error("新增销账申请失败:" + e.getMessage());
|
return error(e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -157,7 +157,7 @@ public class EmisWriteoffApplyServiceImpl extends EmisBaseService implements IEm
|
|||||||
BigDecimal totalAmount = detail.getApplyMoney().add(receivedAmount);
|
BigDecimal totalAmount = detail.getApplyMoney().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()
|
||||||
+ ") + 已收金额(" + receivedAmount + ") = " + totalAmount + " 超过账单应收金额("
|
+ ") + 已收金额(" + receivedAmount + ") = " + totalAmount + " 超过运单应收金额("
|
||||||
+ recMoney + ")");
|
+ recMoney + ")");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user