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 taxPrice = detail.EstPrice ?? 0;
// 计算无税单价 // 计算无税单价
decimal taxRate = detail.TaxRate ?? param.FTAXRATE; decimal taxRate = detail.TaxRate.SafeValue()*100;
decimal price = taxRate > 0 && taxPrice > 0 ? Math.Round(taxPrice / (1 + taxRate / 100), 10) : taxPrice;
return new FPURMRBENTRY() return new FPURMRBENTRY()
{ {
@@ -225,7 +225,7 @@ namespace MyCode.Project.Services.Implementation
{ {
FNumber = "KCZT01_SYS" FNumber = "KCZT01_SYS"
}, },
FPrice = price, FPrice = detail.EstPriceNoTax.SafeValue(),
FExtAuxUnitQty = 0, FExtAuxUnitQty = 0,
FIsReceiveUpdateStock = false, FIsReceiveUpdateStock = false,
FInvoicedJoinQty = 0, FInvoicedJoinQty = 0,
@@ -248,7 +248,7 @@ namespace MyCode.Project.Services.Implementation
}, },
FENTRYTAXRATE = taxRate, FENTRYTAXRATE = taxRate,
FDISCOUNTRATE = 0, FDISCOUNTRATE = 0,
FTAXPRICE = taxPrice, FTAXPRICE = detail.EstPrice.SafeValue(),
FPriceDiscount = 0, FPriceDiscount = 0,
FReturnStockEntryId = 0, FReturnStockEntryId = 0,
FIsStock = false, FIsStock = false,