This commit is contained in:
余宇波 2025-11-25 10:26:49 +08:00
parent 99a757f517
commit f4c90b94e5

View File

@ -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,