DeliveryAdminWindow: Add button to correct tare

This commit is contained in:
lorenz.stechauner committed 2026-09-14 14:43:24 +02:00
1 parent fea779bd95
commit 8ba051198f
11 files changed
+185 -20

No files matched your search

+5
View File
@@ -303,6 +303,11 @@ namespace Elwig.Helpers {
return d.ShowDialog() == true ? (d.Weight, d.Reason) : null;
}
public static int? ShowTareCorrectionDialog(int actualTare, int? targetTare = null) {
var d = new TareCorrectionDialog(actualTare, targetTare);
return d.ShowDialog() == true ? d.TargetTare - d.ActualTare : null;
}
public static (string?, int[])? ShowDeliverySplittingDialog(Delivery delivery) {
var d = new DeliverySplittingDialog(delivery);
return d.ShowDialog() == true ? (d.MgNr?.ToString() ?? d.LsNr, d.Weights ?? []) : null;