DeliveryNote: Add manual weighing reason

This commit is contained in:
2023-09-14 23:25:37 +02:00
parent f5eea1e906
commit 6d3adc48f6
3 changed files with 8 additions and 4 deletions

View File

@ -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;