Please enable JavaScript to view this site.

CWT Software Configuration Handbook 4.40

Element        Path: <cwt><ARTICLETARIFFGROUP><timeRule>

Defines a time rule for a tariff package specified as a time-controlled package in the article tariff group. The rule is used to specify the day types for which a time-controlled tariff package is valid and for how long it is valid from the day break (00:00).

attributes

dayType

Value:0–255
Default:
Description:The day type when the time-controlled tariff package shall be selected. See section 0 for details on how to set up day types.

duration

Value:0–1440
Default:
Description:The number of minutes the tariff package is selected in the specified day type from midnight. If duration is 720, the tariff package will be selected for 720 minutes from midnight (00:00 to 12:00).

timeControlledPackageId

Value:0–4294967295
Default:
Description:Index of time-controlled package definition in the article tariff group. To specify a time rule for the first time-controlled package specified in the common tariff group set this to 0 and the second one to 1, etc.

Example:

Set-up where two tariff packages are defined as time controlled and connected through an article tariff group to article with id 10. The first package “TariffPackage1” is selected on day type 0 and for the duration of 720 minutes (00:00 to 12:00).

The second tariff package “TariffPackage2” is selected on both day type 1 and 2 with the duration 250 minutes (00:00 to 04:10) for day type 1 and 1440 minutes (whole day) for day type 2:

<ARTICLETARIFFGROUP articleTariffGroupId="0" articleId="10">
  <timeControlledPackage tariffPackageName="TariffPackage1"/>
  <timeControlledPackage tariffPackageName="TariffPackage2"/>
  <timeRule timeControlledPackageIndex="0" dayType="0" duration="720"/>
  <timeRule timeControlledPackageIndex="1" dayType="1" duration="250"/>
  <timeRule timeControlledPackageIndex="1" dayType="2" duration="1440"/>
</ARTICLETARIFFGROUP>