Developer Resources for AbleCommerce eCommerce platform
CommerceBuilder.Services.Taxes.AbleCommerce Namespace / SummaryCalculator Class / Calculate Method / Calculate(TaxRule,Order,Int32) Method
The tax rule to process
The order being processed
The shipment ID to calculate tax for; pass 0 for unshippable or -1 to ignore shipments
In This Topic
    Calculate(TaxRule,Order,Int32) Method
    In This Topic
    Calculates tax
    Syntax
    public static OrderItem Calculate( 
       TaxRule taxRule,
       Order order,
       int shipmentId
    )

    Parameters

    taxRule
    The tax rule to process
    order
    The order being processed
    shipmentId
    The shipment ID to calculate tax for; pass 0 for unshippable or -1 to ignore shipments

    Return Value

    A basket item for the tax entry, or null if no tax is charged.
    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