DeliveryNote: Add manual weighing reason
This commit is contained in:
@ -530,6 +530,7 @@ namespace Elwig.Windows {
|
||||
|
||||
ScaleId = p?.ScaleId;
|
||||
WeighingId = p?.WeighingId;
|
||||
ManualWeighingReason = p?.WeighingReason;
|
||||
|
||||
FinishInputFilling();
|
||||
}
|
||||
@ -591,8 +592,7 @@ namespace Elwig.Windows {
|
||||
p.ManualWeighing = ManualWeighingInput.IsChecked ?? false;
|
||||
p.ScaleId = ScaleId;
|
||||
p.WeighingId = WeighingId;
|
||||
if (ManualWeighingReason != null)
|
||||
p.Comment = (p.Comment != null ? $"{p.Comment} / " : "") + $"Begründung Handwiegung: {ManualWeighingReason}";
|
||||
p.WeighingReason = ManualWeighingReason;
|
||||
|
||||
EntityEntry<Delivery>? dEntry = null;
|
||||
EntityEntry<DeliveryPart>? pEntry = null;
|
||||
|
Reference in New Issue
Block a user