Browse Source

添加无金税发票号,审核判断

master
学 赵 1 year ago
parent
commit
52ef972130
  1. 9
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

9
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs

@ -307,6 +307,15 @@ namespace Win.Sfs.SettleAccount.Entities.BQ
var invs = await _invMng.GetInvoiceListAsync(p_invs).ConfigureAwait(false);
if (invs.Count > 0)
{
var noinvscount = invs.Count(p =>string.IsNullOrEmpty(p.RealnvBillNum));
if (noinvscount > 0)
{
errors.Add(new ERR_EXP_DTO() { Message = $"选择发票有没有金税发票号发票,不能审核!" });
}
var ls = invs.Where(p => p.State != SettleBillState.).Distinct();
if (ls.Any())
{

Loading…
Cancel
Save