DeliveryJournalData: Fix modifier ordering

This commit is contained in:
2024-03-28 12:48:23 +01:00
parent 26a9902a13
commit d011c69812

View File

@ -100,7 +100,7 @@ namespace Elwig.Models.Dtos {
Gradation = (p.Oe, p.Kmw);
Weight = p.Weight;
IsNetWeight = p.IsNetWeight;
Modifiers = string.Join(" / ", p.Modifiers.Order());
Modifiers = string.Join(" / ", p.Modifiers.Select(m => m.Name).Order());
Comment = d.Comment == null && p.Comment == null ? null : (d.Comment + (d.Comment != null && p.Comment != null ? " / " : "") + p.Comment);
}
}