This commit is contained in:
Adam 2025-11-07 21:16:13 +01:00
commit 5c950c6ae4
2 changed files with 2 additions and 1 deletions

View File

@ -473,7 +473,7 @@ public class FruitBankDbContext : MgDbContextBase,
if (!orderItemDto.IsMeasurable) continue;
var prevNetWeightFromGa = orderItemDto.GenericAttributes.GetValueOrDefault(nameof(IMeasuringNetWeight.NetWeight), 0);
var prevNetWeightFromGa = orderItemDto.GenericAttributes.GetValueOrDefault<double>(nameof(IMeasuringNetWeight.NetWeight), 0);
//var gaNetWeight = CommonHelper.To<double>(orderItemDto.GenericAttributes.FirstOrDefault(x => x.Key == nameof(IMeasuringNetWeight.NetWeight))?.Value ?? "0");
await _fruitBankAttributeService.InsertOrUpdateGenericAttributeAsync<OrderItem, double>

View File

@ -83,6 +83,7 @@ public class MeasurementService : MeasurementServiceBase<Logger>, IMeasurementSe
{
orderItemPallet.RevisorId = 0;
orderItemPallet.IsMeasured = false;
await _dbContext.OrderItemPallets.UpdateAsync(orderItemPallet);
}