From caaa0b4fa6b99a2984eeab3dcfd95ba85b09a052 Mon Sep 17 00:00:00 2001 From: zhaoxinyu Date: Sat, 30 Dec 2023 09:50:11 +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 --- .../host/SettleAccount.HttpApi.Host/appsettings.json | 2 +- .../SettleAccount.Application/Entities/BQ/INVOICE_SERVICE.cs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json index 858bfb2a..72375f29 100644 --- a/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json +++ b/code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/appsettings.json @@ -3,7 +3,7 @@ "CorsOrigins": "https://*.abc.com,http://localhost:9527,http://149.223.116.5:8088" }, "ConnectionStrings": { - "Default": "Server=dev.ccwin-in.com,13326;Database=BJABP;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True", + "Default": "Server=10.60.101.83;Database=BJABP;User ID=sa;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True", //"SettleAccountService": "Server=dev.ccwin-in.com,13326;Database=BQ_SA;User ID=ccwin-in;Password=Microsoft@2022;Trusted_Connection=False;TrustServerCertificate=True;", 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 ca658bb9..52ff391d 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 @@ -198,6 +198,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ { inv.Qty = itm.Qty - first.Qty;//发票总数中去除 inv.Amt = Math.Round((itm.Qty - first.Qty) * itm.PRICE, 2); + inv.Extend2 = $"C{invoiceGrp.ClientCode}"; } //inv.BussiessType = EnumBusinessType.MaiDanJianBBAC; //if (invoiceGrp.Site == "1046") @@ -221,7 +222,7 @@ namespace Win.Sfs.SettleAccount.Entities.BQ var first= invoiceGrpDetailsCopy.FirstOrDefault(p=>p.PartCode==itm.PartCode); inv.InjectFrom(first); inv.LU = itm.LU; - inv.PartCode = itm.RealPartCode; + inv.PartCode = itm.PartCode; inv.Qty = itm.Qty; inv.PRICE = first.PRICE; inv.Amt = Math.Round(itm.Qty * first.PRICE, 2);