Commit d953ca7b by 陶然

收款充值撤销添加账户余额验证金额不足时不可充值撤销

parent 382f26d5
......@@ -143,6 +143,7 @@ namespace Kivii.Finances.Transforms
//parent.ThrowIfNull($"未找到{item.SerialNumber}当前的到账上级节点!");
var accountPayee = accountPayees.FirstOrDefault(o => o.Kvid == item.PayeeAccountKvid);
accountPayee.ThrowIfNull($"未找到{item.SerialNumber}对应收款账户!");
(accountPayee.Amount < item.Amount).ThrowIfTrue("账户余额不足无法撤销已充值金额!");
#region 新增流水,原收款账户新增扣款明细
var payeeAaccountDetail = new AccountDetail();
payeeAaccountDetail.AccountKvid = accountPayee.Kvid;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment