public override string GetDescription() { var type = IsRoutingOnly ? ICBLineStructure.DSW : "DF"; var numberOfPieces = DuraformComponents.Sum(x => x.Quantity); return($"{type} - {Customer.Name} | {numberOfPieces} parts"); }
public override List <InvoiceComponent> GenerateComponentsForInvoice() { var components = DuraformComponents.Select(component => new InvoiceComponent(component)).ToList(); components.AddRange(MiscComponents.Select(miscItem => new InvoiceComponent(miscItem))); return(components); }