[#40] DeliveryConfirmation: Add column indication gross/net weight

This commit is contained in:
lorenz.stechauner committed 2024-03-08 15:18:47 +01:00
1 parent ccd4a58007
commit e1201bc6b8
2 files changed
+14 -1

No files matched your search

@@ -78,6 +78,7 @@ namespace Elwig.Models.Dtos {
public (double Oe, double Kmw) Gradation;
public string[] Modifiers;
public int Weight;
public bool IsNetWeight;
public (string Name, int Value)[] Buckets;
public DeliveryConfirmationDeliveryRow(DeliveryPart p) {
@@ -93,6 +94,7 @@ namespace Elwig.Models.Dtos {
.Select(m => m.Name)
.ToArray();
Weight = p.Weight;
IsNetWeight = p.IsNetWeight;
Buckets = p.Buckets
.Where(b => b.Value > 0)
.OrderByDescending(b => b.BktNr)