Ejemplo n.º 1
0
        public VATBreakdown Copy()
        {
            var result = new VATBreakdown();

            result.Tariff         = Tariff?.Copy();
            result.TaxesBreakdown = TaxesBreakdown?.Copy();
            result.Total          = Total?.Copy();

            return(result);
        }
Ejemplo n.º 2
0
        public static bool CompareWithoutTaxBreakdown(VATBreakdown first, VATBreakdown second)
        {
            if (ReferenceEquals(first, second))
            {
                return(true);
            }

            if (first == null || second == null)
            {
                return(false);
            }

            return(PercentCurrencyAmount.Equals(first.Tariff, second.Tariff) &&
                   CurrencyAmount.Equals(first.TaxesBreakdown, second.TaxesBreakdown) &&
                   first.Total == second.Total);
        }