Element Path: <cwt><COMMONTARIFFGROUP><buttonControlledPackage>
The buttonControlledPackage element defines a tariff package in the common tariff group. The tariff package can then be selected with a user interface button.
If it should be possible to select two or more tariff packages in the common tariff group, it is necessary to create a buttonControlledPackage element for each tariff package.
attributes
id
Value: | 0– 65535 |
Default: | - |
Description: | The identifier of the button-controlled package. The id of the first button-controlled package shall be set to 0 and then be incremented for each button controlled package added. |
tariffPackageName
Value: | Any character |
Value: | - |
Description: | The name of the tariff package to be added as a button selectable tariff package to the common tariff group. |
Example:
Setup where two tariff packages (“TariffPackage1” and “TariffPackage2”) are connected to a common tariff group with id 0. The article “Article1” that has the attribute useCommonTariffs=”true” are then connected to “TariffPackage1” and “TariffPackage2” through the common tariff group with id 0:
<TARIFFPACKAGE name="TariffPackage1" tariffPackageId="0">
- - -
</TARIFFPACKAGE>
<TARIFFPACKAGE name="TariffPackage2" tariffPackageId="1">
- - -
</TARIFFPACKAGE>
<COMMONTARIFFGROUP commonTariffGroupId="0">
<buttonControlledPackage id="0" tariffPackageName="TariffPackage1"/>
<buttonControlledPackage id="1" tariffPackageName="TariffPackage2"/>
</COMMONTARIFFGROUP>
<ARTICLE articleId="0" name="Article1" useCommonTariffs="true">
- - -
</ARTICLE>