From f4c90b94e5f8cd7c5cafa789031f68b2bd1a1fd8 Mon Sep 17 00:00:00 2001 From: yuyubo <1870149533@qq.com> Date: Tue, 25 Nov 2025 10:26:49 +0800 Subject: [PATCH] 123 --- .../Implementation/PurchaseReturnService.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Reportapi/MyCode.Project.Services/Implementation/PurchaseReturnService.cs b/Reportapi/MyCode.Project.Services/Implementation/PurchaseReturnService.cs index e9b303d..676dc06 100644 --- a/Reportapi/MyCode.Project.Services/Implementation/PurchaseReturnService.cs +++ b/Reportapi/MyCode.Project.Services/Implementation/PurchaseReturnService.cs @@ -194,8 +194,8 @@ namespace MyCode.Project.Services.Implementation decimal taxPrice = detail.EstPrice ?? 0; // 计算无税单价 - decimal taxRate = detail.TaxRate ?? param.FTAXRATE; - decimal price = taxRate > 0 && taxPrice > 0 ? Math.Round(taxPrice / (1 + taxRate / 100), 10) : taxPrice; + decimal taxRate = detail.TaxRate.SafeValue()*100; + return new FPURMRBENTRY() { @@ -225,7 +225,7 @@ namespace MyCode.Project.Services.Implementation { FNumber = "KCZT01_SYS" }, - FPrice = price, + FPrice = detail.EstPriceNoTax.SafeValue(), FExtAuxUnitQty = 0, FIsReceiveUpdateStock = false, FInvoicedJoinQty = 0, @@ -248,7 +248,7 @@ namespace MyCode.Project.Services.Implementation }, FENTRYTAXRATE = taxRate, FDISCOUNTRATE = 0, - FTAXPRICE = taxPrice, + FTAXPRICE = detail.EstPrice.SafeValue(), FPriceDiscount = 0, FReturnStockEntryId = 0, FIsStock = false,