DeliveryAdminWindow: Add button to correct tare
This commit is contained in:
@@ -196,9 +196,17 @@ namespace Elwig.Documents {
|
||||
.Add(Italic("Brutto:"))
|
||||
.Add(Normal($" {info.Gross:N0} kg \u2013 "))
|
||||
.Add(Italic("Tara:"))
|
||||
.Add(Normal($" {info.Tare:N0} kg \u2013 "))
|
||||
.Add(Normal($" {info.Tare:N0} kg "));
|
||||
if (info.TareCorrection != null && info.TareCorrection != 0)
|
||||
weighing.Add(Bold($"(Korr.: {Utils.GetSign(info.TareCorrection.Value)}{Math.Abs(info.TareCorrection.Value)} kg)")).Add(" ");
|
||||
weighing
|
||||
.Add(Normal("\u2013 "))
|
||||
.Add(Italic("Netto:"))
|
||||
.Add(Normal($" {info.Net:N0} kg \u2013 "))
|
||||
.Add(Normal($" {info.Net:N0} kg "));
|
||||
if (info.TareCorrection != null && info.TareCorrection != 0)
|
||||
weighing.Add(Normal($"({Utils.GetSign(-info.TareCorrection.Value)}{Math.Abs(info.TareCorrection.Value)} kg) "));
|
||||
weighing
|
||||
.Add(Normal("\u2013 "))
|
||||
.Add(Italic(part.IsNetWeight ? "gerebelt gewogen" : "nicht gerebelt gewogen"));
|
||||
} else {
|
||||
weighing.Add(" ")
|
||||
|
||||
Reference in New Issue
Block a user