merge
This commit is contained in:
commit
5c950c6ae4
|
|
@ -473,7 +473,7 @@ public class FruitBankDbContext : MgDbContextBase,
|
||||||
|
|
||||||
if (!orderItemDto.IsMeasurable) continue;
|
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");
|
//var gaNetWeight = CommonHelper.To<double>(orderItemDto.GenericAttributes.FirstOrDefault(x => x.Key == nameof(IMeasuringNetWeight.NetWeight))?.Value ?? "0");
|
||||||
|
|
||||||
await _fruitBankAttributeService.InsertOrUpdateGenericAttributeAsync<OrderItem, double>
|
await _fruitBankAttributeService.InsertOrUpdateGenericAttributeAsync<OrderItem, double>
|
||||||
|
|
|
||||||
|
|
@ -83,6 +83,7 @@ public class MeasurementService : MeasurementServiceBase<Logger>, IMeasurementSe
|
||||||
{
|
{
|
||||||
orderItemPallet.RevisorId = 0;
|
orderItemPallet.RevisorId = 0;
|
||||||
orderItemPallet.IsMeasured = false;
|
orderItemPallet.IsMeasured = false;
|
||||||
|
|
||||||
await _dbContext.OrderItemPallets.UpdateAsync(orderItemPallet);
|
await _dbContext.OrderItemPallets.UpdateAsync(orderItemPallet);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue