Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 public static bool Equals(VatTax first, VatTax second)
 {
     return(PercentCurrencyAmount.Equals(first, second) &&
            first.TaxCode == second.TaxCode);
 }