Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services.Taxes.AbleCommerce Namespace / LineItemCalculator Class / Calculate Method / Calculate(TaxRule,Basket,Int32,Boolean) Method
The tax rule
The basket being processed
Shipment id filter; pass 0 for nonshippable items and -1 to ignore shipments
Indicates whether prices include tax
In This Topic
    Calculate(TaxRule,Basket,Int32,Boolean) Method
    In This Topic
    Calculates tax for the given rule
    Syntax

    Parameters

    taxRule
    The tax rule
    basket
    The basket being processed
    shipmentId
    Shipment id filter; pass 0 for nonshippable items and -1 to ignore shipments
    priceIncludesTax
    Indicates whether prices include tax

    Return Value

    A list of line items to add to the basket
    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