fixes
This commit is contained in:
parent
6c58cf6ee8
commit
0dafd6c5c4
|
|
@ -686,7 +686,7 @@ public class FruitBankDbContext : MgDbContextBase,
|
||||||
{
|
{
|
||||||
ProductId = product.Id,
|
ProductId = product.Id,
|
||||||
CombinationId = null,
|
CombinationId = null,
|
||||||
WarehouseId = product.WarehouseId > 0 ? (int?)product.WarehouseId : null,
|
WarehouseId = product.WarehouseId > 0 ? product.WarehouseId : null,
|
||||||
QuantityAdjustment = 0,
|
QuantityAdjustment = 0,
|
||||||
StockQuantity = product.StockQuantity,
|
StockQuantity = product.StockQuantity,
|
||||||
Message = message,
|
Message = message,
|
||||||
|
|
@ -708,7 +708,7 @@ public class FruitBankDbContext : MgDbContextBase,
|
||||||
latStockQuantityHistoryId = await StockQuantityHistories.Table.Where(x => x.ProductId == product.Id).MaxAsync(x => x.Id);
|
latStockQuantityHistoryId = await StockQuantityHistories.Table.Where(x => x.ProductId == product.Id).MaxAsync(x => x.Id);
|
||||||
if (latStockQuantityHistoryId == 0)
|
if (latStockQuantityHistoryId == 0)
|
||||||
{
|
{
|
||||||
Logger.Error($"UpdateProductDtoStockQuantityAndWeightAsync (latStockQuantityHistory == 0). product.Id: {product.Id}");
|
Logger.Error($"UpdateStockQuantityAndWeightAsync(); (latStockQuantityHistory == 0). product.Id: {product.Id}");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue