Skip to content
Taiizor edited this page Mar 1, 2023 · 4 revisions

Skylark.Standard.Extension.Tax.TaxExtension Class

Description:

The TaxExtension class provides extension methods for calculating taxes.

Namespace:

Skylark.Standard.Extension.Tax

Methods:

public static STTCS Calc(string Value = MTTM.Value, string Percent = MTTM.Percent, ETT Type = MTTM.TaxType, bool Decimal = MTTM.Decimal)

Calculates taxes for the given Value, Percent, Type and Decimal values.

Parameters:

  • Value: A string representing the value for which tax is to be calculated. Default value is MTTM.Value.
  • Percent: A string representing the percentage value for tax. Default value is MTTM.Percent.
  • Type: An ETT value representing the type of tax to be calculated. Default value is MTTM.TaxType.
  • Decimal: A bool value indicating whether to return the tax values as decimal or not. Default value is MTTM.Decimal.

Returns:

A STTCS object containing calculated tax values.

public static Task<STTCS> CalcAsync(string Value = MTTM.Value, string Percent = MTTM.Percent, ETT Type = MTTM.TaxType, bool Decimal = MTTM.Decimal)

Calculates taxes asynchronously for the given Value, Percent, Type and Decimal values.

Parameters:

  • Value: A string representing the value for which tax is to be calculated. Default value is MTTM.Value.
  • Percent: A string representing the percentage value for tax. Default value is MTTM.Percent.
  • Type: An ETT value representing the type of tax to be calculated. Default value is MTTM.TaxType.
  • Decimal: A bool value indicating whether to return the tax values as decimal or not. Default value is MTTM.Decimal.

Returns:

A Task<STTCS> object containing calculated tax values.

public static STTCS Calc(string Value = MTTM.Value, string Percent = MTTM.Percent, string Type = MTTM.DefaultType, bool Decimal = MTTM.Decimal)

Clone this wiki locally