Element Path: <cwt><ARTICLETARIFFGROUP><buttonControlledPackage>
The buttonControlledPackage element creates a connection to a tariff package in the article tariff group. The tariff package shall be selectable with user interface buttons. To add two such tariff packages requires the creation of two buttonControlledPackage elements.
attributes
id
Value: | 0–65535 |
Default: | – |
Description: | The identifier of the button-controlled package. The id of the first package shall be set to 0 and then be incremented for each button-controlled package added to the article tariff group. |
tariffPackageName
Value: | Any character |
Default: | – |
Description: | The name of the tariff package to be added as a button selectable tariff package to the article tariff group. |
Example:
Set-up where two tariff packages (“TariffPackage1” and “TariffPackage2”) are connected to an article tariff group with id 0 (the first article tariff group) for the article with id 10. The article with id 10 has the attribute useCommonTariffs=”false” which means that the common tariff group is NOT used and an article tariff group is used instead to connect tariff packages to the article. The two tariff packages “TariffPackage1” and “TariffPackage2” can be selected by buttons in the user interface:
Example:
<TARIFFPACKAGE name="TariffPackage1" tariffPackageId="0">
- - -
</TARIFFPACKAGE>
<TARIFFPACKAGE name="TariffPackage2" tariffPackageId="1">
- - -
</TARIFFPACKAGE>
<ARTICLE articleId="10" name="Article1" useCommonTariffs="false">
- - -
</ARTICLE>
<ARTICLETARIFFGROUP articleTariffGroupId="0" articleId="10">
<buttonControlledPackage id="0" tariffPackageName="TariffPackage1"/>
<buttonControlledPackage id="1" tariffPackageName="TariffPackage2"/>
</ARTICLETARIFFGROUP>