From 9a6773f49a29533e966794618e38427aec2576f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B5=87=E6=96=87=E9=BE=99?= Date: Tue, 23 Jul 2024 17:06:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E7=A5=A8=E6=98=8E=E7=BB=86=E6=80=BB?= =?UTF-8?q?=E9=87=91=E9=A2=9D=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Application/Method/InvoiceApplicationService.cs | 3 ++- ds-wms-service/DS.WMS.Core/Invoice/Method/ApiFox.cs | 5 ++++- .../DS.WMS.Core/Invoice/Method/InvoiceIssuanceService.cs | 1 + 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ds-wms-service/DS.WMS.Core/Application/Method/InvoiceApplicationService.cs b/ds-wms-service/DS.WMS.Core/Application/Method/InvoiceApplicationService.cs index 34989896..00e23034 100644 --- a/ds-wms-service/DS.WMS.Core/Application/Method/InvoiceApplicationService.cs +++ b/ds-wms-service/DS.WMS.Core/Application/Method/InvoiceApplicationService.cs @@ -555,12 +555,13 @@ namespace DS.WMS.Core.Application.Method ApplicationId = application.Id, Name = item.Name, TaxRate = application.TaxRate, + Quantity = 1, TaxUnitPrice = application.Details.FindAll(x => item.FeeIds.Contains(x.FeeId)).Sum(x => x.ApplyAmount), Category = DetailCategory.InvoiceApplication }; invDetail.TaxAmount = invDetail.TaxUnitPrice * application.TaxRate; invDetail.UnitPrice = invDetail.TaxUnitPrice - invDetail.TaxAmount; - + invDetail.Amount = invDetail.TaxUnitPrice * invDetail.Quantity; application.InvoiceDetails.Add(invDetail); } } diff --git a/ds-wms-service/DS.WMS.Core/Invoice/Method/ApiFox.cs b/ds-wms-service/DS.WMS.Core/Invoice/Method/ApiFox.cs index 7e2b4bce..6218840b 100644 --- a/ds-wms-service/DS.WMS.Core/Invoice/Method/ApiFox.cs +++ b/ds-wms-service/DS.WMS.Core/Invoice/Method/ApiFox.cs @@ -8,6 +8,9 @@ using Newtonsoft.Json; namespace DS.WMS.Core.Invoice.Method { + /// + /// 提供对HTTP请求的低级别访问 + /// internal class ApiFox { /// @@ -93,7 +96,7 @@ namespace DS.WMS.Core.Invoice.Method /// /// 请求结果的类型 /// 请求Url - /// 查询字符串的键值对 + /// 请求参数对象 /// /// 为null或空字符串 public async Task> PostAsync(string url, object? requestParams = null) diff --git a/ds-wms-service/DS.WMS.Core/Invoice/Method/InvoiceIssuanceService.cs b/ds-wms-service/DS.WMS.Core/Invoice/Method/InvoiceIssuanceService.cs index af6b19b1..272695f5 100644 --- a/ds-wms-service/DS.WMS.Core/Invoice/Method/InvoiceIssuanceService.cs +++ b/ds-wms-service/DS.WMS.Core/Invoice/Method/InvoiceIssuanceService.cs @@ -70,6 +70,7 @@ namespace DS.WMS.Core.Invoice.Method goodsCode = "", //商品和服务税收分类合并编码 invoiceLineProperty = "00" }).ToList() + }).ToList(); var result = await api.PostAsync>("/api/Invoice/services", request);