Exemple #1
0
        public override string GetDescription()
        {
            var type           = IsRoutingOnly ? ICBLineStructure.DSW : "DF";
            var numberOfPieces = DuraformComponents.Sum(x => x.Quantity);

            return($"{type} - {Customer.Name} | {numberOfPieces} parts");
        }
Exemple #2
0
        public override List <InvoiceComponent> GenerateComponentsForInvoice()
        {
            var components = DuraformComponents.Select(component => new InvoiceComponent(component)).ToList();

            components.AddRange(MiscComponents.Select(miscItem => new InvoiceComponent(miscItem)));

            return(components);
        }