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

This commit is contained in:
2024-03-08 15:18:47 +01:00
parent ccd4a58007
commit e1201bc6b8
2 changed files with 14 additions and 1 deletions

View File

@ -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)