From 52ef972130889f487abd67fdd32dfe5981a2f84c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Mon, 9 Oct 2023 11:44:41 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=97=A0=E9=87=91=E7=A8=8E?= =?UTF-8?q?=E5=8F=91=E7=A5=A8=E5=8F=B7=EF=BC=8C=E5=AE=A1=E6=A0=B8=E5=88=A4?= =?UTF-8?q?=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/BQ/INVOICE_SERVICE.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs b/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs index 20159db2..813b90b3 100644 --- a/code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs +++ b/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()) {