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

Parameters

taxRule
The tax rule
order
The order 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 order
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