From de6bffbacf1be4e29086a6e385a643f4330c9c6b Mon Sep 17 00:00:00 2001 From: zhaoxinyu <89237069@qq.com> Date: Mon, 3 Jun 2024 14:49:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 bd4faa1b..aa0f5c12 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 @@ -143,7 +143,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ _globalConfigOptions.IsSyncInvoiceQadState = true; var invoiceGrps = _settleAccountDbContext.Set() - .Where(t => invbillNums.Contains(t.InvbillNum)); + .Where(t => invbillNums.Contains(t.InvbillNum) && t.State == SettleBillState.已扣减); foreach (var itm in invoiceGrps) { itm.State = SettleBillState.发票同步中; @@ -990,7 +990,6 @@ namespace Win.Sfs.SettleAccount.Entities.BQ .Select(p => new { Erploc = p.Key.ErpLoc, p.Key.PartCode, p.Key.BusinessType, Amt = Math.Round(p.Sum(t => t.Qty * t.Price), 2), Price = p.Key.Price, Qty = p.Sum(t => t.Qty) }).ToList(); var tedSaInvs = new List(); - var taskId = GuidGenerator.Create(); var teaTaskSub = new TEA_TASK_SUB() {