DeliveryAdminWindow: Use last scale error as default manual weighing reason
This commit is contained in:
1 parent
62fe087598
commit
1e9cad6de7
4 files changed
+22
-13
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user