Click or drag to resize

TaxHelperCalculateTaxes Method

Calculates taxes for price If calculation type is exclusive price is considered as a rate without taxes, and if calculation type is inclusive price is considered as total value with taxes included

Namespace:  Atomia.Billing.Core.Sdk.BusinessLogic
Assembly:  Atomia.Billing.Core.Sdk (in Atomia.Billing.Core.Sdk.dll) Version: 18.10.7096.28998
Syntax
public static void CalculateTaxes(
	TaxCalculationType taxCalculationType,
	Tax tax1,
	Tax tax2,
	int decimals,
	decimal price,
	out decimal lineTax1Total,
	out decimal lineTax2Total,
	out decimal lineSubtotal
)

Parameters

taxCalculationType
Type: Atomia.Billing.Core.Sdk.BusinessObjectsTaxCalculationType

[Missing <param name="taxCalculationType"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

tax1
Type: Atomia.Billing.Core.Sdk.BusinessObjectsTax

[Missing <param name="tax1"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

tax2
Type: Atomia.Billing.Core.Sdk.BusinessObjectsTax

[Missing <param name="tax2"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

decimals
Type: SystemInt32

[Missing <param name="decimals"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

price
Type: SystemDecimal

[Missing <param name="price"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

lineTax1Total
Type: SystemDecimal

[Missing <param name="lineTax1Total"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

lineTax2Total
Type: SystemDecimal

[Missing <param name="lineTax2Total"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

lineSubtotal
Type: SystemDecimal

[Missing <param name="lineSubtotal"/> documentation for "M:Atomia.Billing.Core.Sdk.BusinessLogic.TaxHelper.CalculateTaxes(Atomia.Billing.Core.Sdk.BusinessObjects.TaxCalculationType,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,Atomia.Billing.Core.Sdk.BusinessObjects.Tax,System.Int32,System.Decimal,System.Decimal@,System.Decimal@,System.Decimal@)"]

See Also