This commit is contained in:
Loretta 2025-11-15 15:42:34 +01:00
parent 6c58cf6ee8
commit 0dafd6c5c4
1 changed files with 2 additions and 2 deletions

View File

@ -686,7 +686,7 @@ public class FruitBankDbContext : MgDbContextBase,
{
ProductId = product.Id,
CombinationId = null,
WarehouseId = product.WarehouseId > 0 ? (int?)product.WarehouseId : null,
WarehouseId = product.WarehouseId > 0 ? product.WarehouseId : null,
QuantityAdjustment = 0,
StockQuantity = product.StockQuantity,
Message = message,
@ -708,7 +708,7 @@ public class FruitBankDbContext : MgDbContextBase,
latStockQuantityHistoryId = await StockQuantityHistories.Table.Where(x => x.ProductId == product.Id).MaxAsync(x => x.Id);
if (latStockQuantityHistoryId == 0)
{
Logger.Error($"UpdateProductDtoStockQuantityAndWeightAsync (latStockQuantityHistory == 0). product.Id: {product.Id}");
Logger.Error($"UpdateStockQuantityAndWeightAsync(); (latStockQuantityHistory == 0). product.Id: {product.Id}");
return;
}
}