Element Path:<cwt><ARTICLE><tabularVAT><vatInterval>
This element defines the tabularVAT table.
attributes
intervalStart
Value: | 0 – 10 000 000 |
Default: | 0 |
Description: | Purchase ticks from where the table row is used. |
The attribute is required |
vatPart1
Value: | 0 – 10 000 000 or 0-100.00% |
Default: | 0 |
Description: | Vat part 1, fixed vat in ticks or proportional if %-sign is entered. |
The attribute is required |
vatPart2
Value: | 0 – 10 000 000 or 0-100.00% |
Default: | 0 |
Description: | Vat part 2, fixed vat in ticks or proportional if %-sign is entered. |
The attribute is optional |
vatPart3
Value: | 0 – 10 000 000 or 0-100.00% |
Default: | 0 |
Description: | Vat part 3, fixed vat in ticks or proportional if %-sign is entered. |
The attribute is optional |
vatPart4
Value: | 0 – 10 000 000 or 0-100.00% |
Default: | 0 |
Description: | Vat part 4, fixed vat in ticks or proportional if %-sign is entered. |
The attribute is optional |
includedVat
Value: | true/false |
Default: | false |
Description: | Indicates if VAT is added to the purchase amount (false) on calculated within it (true). |
includedVatCoinValueRoundingRule
Value: | IncludedVatNoCoinValueRounding: Rounding to smallest coin is not used. |
IncludedVatCoinValueRoundingOnVat1:
Vat part 1 will be adjusted up or down with the number of ticks used to round the total amount to the smallest coin.
IncludedVatCoinValueRoundingOnVat2:
Vat part 2 will be adjusted up or down with the number of ticks used to round the total amount to the smallest coin.
IncludedVatCoinValueRoundingOnVat3:
Vat part 3 will be adjusted up or down with the number of ticks used to round the total amount to the smallest coin.
IncludedVatCoinValueRoundingOnVat4:
Vat part 4 will be adjusted up or down with the number of ticks used to round the total amount to the smallest coin.
IncludedVatCoinValueRoundingOnPurchase:
Only the total amount will be adjusted up or down with the number of ticks used to round to the smallest coin.
Default: | IncludedVatNoCoinValueRounding |
Description: | The attribute includedVat must be set to true for this attribute to come into play. When VAT is included in the purchase amount, this attribute can be used to round the total amount to the smallest coin that is configured to be accepted by the coin unit. The attribute is also used to control what parts of the total amount that are adjusted up or down. |
Example 1: | 15 minutes cost 203 cent: |
Rounding up from 203 to 205
<tabularVAT coinValueAlignmentRoundingRule="RoundDownVat1PartTicks" vatCalculationRoundingRule="RoundHalfUp">
<vatInterval intervalStart="000" vatPart1="15%" vatPart2="0" vatPart3="0" includedVat="true" includedVatCoinValueRoundingRule="IncludedVatCoinValueRoundingOnPurchase" />
</tabularVAT>
When tabular VAT is calculated we got:
Amount to pay= 203 cent
VAT1=26 cent
after coin rounding
Amount to pay= 205 cent
VAT1=26 cent
Example 2: | 15 minutes cost 202cent: |
Rounding down from 202 to 200
<tabularVAT coinValueAlignmentRoundingRule="RoundDownVat1PartTicks" vatCalculationRoundingRule="RoundHalfUp">
<vatInterval intervalStart="000" vatPart1="15%" vatPart2="0" vatPart3="0" includedVat="true" includedVatCoinValueRoundingRule="IncludedVatCoinValueRoundingOnVat1" />
</tabularVAT>
When tabular VAT is calculated we got:
Amount to pay= 202 cent
VAT1=26 cent
after coin rounding
Amount to pay= 200 cent
VAT1=24 cent