using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace CAPI.Custom.Domain.Quotes { public class QuoteItemsFinalTotals { public readonly decimal VATRate; public QuoteItemsFinalTotals(decimal vatRate) { this.VATRate = vatRate; } public decimal VATExcluded { get; set; } public decimal WeightKG { get; set; } public decimal VAT => VATRate != 0 ? VATExcluded * VATRate / 100 : 0; public decimal VATIncluded => VAT + VATExcluded; } }