DeliveryAdminWindow: Use last scale error as default manual weighing reason

This commit is contained in:
lorenz.stechauner committed 2023-09-13 23:19:04 +02:00
1 parent 62fe087598
commit 1e9cad6de7
4 files changed
+22 -13

No files matched your search

+2 -2
View File
@@ -219,8 +219,8 @@ namespace Elwig.Helpers {
.Sum();
}
public static (int, string?)? ShowManualWeighingDialog() {
var d = new ManualWeighingDialog();
public static (int, string?)? ShowManualWeighingDialog(string? reason = null) {
var d = new ManualWeighingDialog(reason);
return d.ShowDialog() == true ? (d.Weight, d.Reason) : null;
}