Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services.Taxes.AbleCommerce Namespace / LineItemCalculator Class / CalculateTaxForItem Method
The rule to process
The price of the line item
Quantity of line item
Indicates whether the price includes tax
In This Topic
    CalculateTaxForItem Method
    In This Topic
    Calculates the amount of tax for the line item
    Syntax
    public static decimal CalculateTaxForItem( 
       TaxRule taxRule,
       decimal price,
       int quantity,
       bool priceIncludesTax
    )

    Parameters

    taxRule
    The rule to process
    price
    The price of the line item
    quantity
    Quantity of line item
    priceIncludesTax
    Indicates whether the price includes tax

    Return Value

    The tax for the line item under the given rule
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also