Dynamicweb 8 Documentation
Total Property

Should VAT be included in the returned discount
Indicates wheter the result should be returned as an amount or as a percentage of the original product price
Should the result be rounded. If the propertys return result is percentage and rounding is in effect, the result will be with two decimals
Returns the total discount in a number of different ways.
Syntax
'Declaration
 
Public ReadOnly Property Total( _ 
   ByVal IncludeVAT As Boolean, _ 
   ByVal CalculateAs As Discount.DiscountCalculationType, _ 
   ByVal DoRounding As Boolean _ 
) As Double
public double Total( 
   bool IncludeVAT,
   Discount.DiscountCalculationType CalculateAs,
   bool DoRounding 
) {get;}

Parameters

IncludeVAT
Should VAT be included in the returned discount
CalculateAs
Indicates wheter the result should be returned as an amount or as a percentage of the original product price
DoRounding
Should the result be rounded. If the propertys return result is percentage and rounding is in effect, the result will be with two decimals
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

Reference

Discounts Class
Discounts Members

Send Feedback