Class TaxGroup
Contains the formal definition of a tax including a type (it's just the key), a percentage value if provided, a caption and a description.
| Property | Description |
|---|---|
caption: String (read-only) | Gets the caption. |
description: String (read-only) | Gets the description. |
rate: Number (read-only) | Gets the percentage amount of the rate. |
taxType: String (read-only) | Gets the tax type. |
This class does not have a constructor, so you cannot create it directly.
| Method | Description |
|---|---|
| static create(String, String, String, Decimal) | Creates a TaxGroup. |
| getCaption() | Gets the caption. |
| getDescription() | Gets the description. |
| getRate() | Gets the percentage amount of the rate. |
| getTaxType() | Gets the tax type. |
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
- caption: String
(read-only) Gets the caption.
- description: String
(read-only) Gets the description.
- rate: Number
(read-only) Gets the percentage amount of the rate.
- taxType: String
(read-only) Gets the tax type.
- static create(taxType: String, caption: String, description: String, taxRate: Decimal): TaxGroup
Creates a TaxGroup.
This TaxGroup can be used for example in ReturnItem.addTaxItem(Decimal, TaxGroup).
Parameters:
- taxType - the tax type
- caption - the caption
- description - the description
- taxRate - the tax rate as floating point.
1.0means 100 %.
Returns:
- the tax group
- getCaption(): String
Gets the caption.
Returns:
- the caption
- getDescription(): String
Gets the description.
Returns:
- the description
- getRate(): Number
Gets the percentage amount of the rate.
Returns:
- the tax rate percentage value
- getTaxType(): String
Gets the tax type.
Returns:
- the tax type