Example #1
0
        public Money GetTotalTax()
        {
            Money totalTax = Money.Empty();

            for (int i = 0; i < _lineItems.Count; i++)
            {
                totalTax += _lineItems[i].GetTaxAmount();
            }
            return(totalTax);
        }
Example #2
0
        public Money GetGrandTotal()
        {
            Money total = Money.Empty();

            for (int i = 0; i < _lineItems.Count; i++)
            {
                total += _lineItems[i].GetSubTotal();
            }
            return(total);
        }
Example #3
0
        public Money GetTax(OrderLine orderLine)
        {
            Money tax = Money.Empty();

            if (_nextTaxRule != null)
            {
                tax += _nextTaxRule.GetTax(orderLine);
            }

            return(tax);
        }
Example #4
0
        public Money GetTax(OrderLine orderLine)
        {
            Money tax = Money.Empty();

            if (orderLine.TaxSpecification.IsTaxable())
            {
                tax = new Money((orderLine.GetCost().Value *TAX_AMT) / 100);
            }
            if (_nextTaxRule != null)
            {
                tax = tax + _nextTaxRule.GetTax(orderLine);
            }

            return(tax);
        }
Example #5
0
        public Money GetTax(OrderLine orderLine)
        {
            Money tax = Money.Empty();

            if (orderLine.TaxSpecification.IsImported())
            {
                tax = new Money((orderLine.GetCost().Value * 5) / 100);
            }

            if (_nextTaxRule != null)
            {
                tax += _nextTaxRule.GetTax(orderLine);
            }

            return(tax);
        }