Show/Hide Toolbars

How to set up Purchase Pre-requisites

The CWT terminal must be configured with 2 tariffs.

1.Conditional tariff

2.Fall back tariff

Note:
In the examples the "Boulder free tariff 1" is the Conditional tariff and the "Boulder free tariff 2" is the fall-back tariff.

The CWT terminal must be configured with Purchase Rules.

There are specific User Interface changes needed for this feature.

After creating the cwtconfig.xml boot the terminal and wait for a heartbeat.

 

Create 2 tariff packages.

In the example the first tariff (ID 963) allows free time of 20 minutes. The second tariff (ID 965) does not have free time.

See chapter TARIFFPACKAGE  in the CWT Software Configuration handbook.

<TARIFFPACKAGE name="Boulder free tariff 1" tariffPackageId="963" group="Free">
  <ticket ticketType="PrePayCode" ticketId="0" />
  <description row="0" col="0" string="$1.25 PER HOUR" />
  <description row="1" col="0" string="3 HOURS MAX" />
  <tariff>
         PACKAGE "Boulder free tariff 1";
         max paid units=90;
 
         INTERVAL "Enforced";
         timepredicate = #always;
         tariffrate = unit 0 per 2:tariffstep 1 duration 20;
         tariffrate = linear 100 per 10:tariffstep 2 duration 30;
         max units=180;
    </tariff>
</TARIFFPACKAGE>

<TARIFFPACKAGE name="Boulder free tariff 2" tariffPackageId="965">
  <ticket ticketType="PrePayCode" ticketId="0" />
  <description row="0" col="0" string="$1.25 PER HOUR" />
  <description row="1" col="0" string="3 HOURS MAX" />
  <tariff>
         PACKAGE "Boulder free tariff 2";
         max paid units=90;
         INTERVAL "Enforced";
         timepredicate = #always;
         tariffrate = linear 100 per 10:tariffstep 1 duration 30;
         
    </tariff>
</TARIFFPACKAGE>

 

Set up Purchase Rules

In the example the rule allows for an "initial" purchase (nofPurchases="1") with TariffPackageID 963.

On the next purchase the terminal will fall back on TariffPackageID 965.

See chapter PURCHASERULES in the CWT Software Configuration handbook.

<PURCHASERULES mode="OnlineOfflineFallback" validation="OnCodeInput">
  <!--<rule id="0" name="Purchase" description="1 max ticket per 4 hours" cleared="240" type="Rolling" nofPurchases="2">
     <code />
  </rule>-->
  <rule id="0" name="Free once" nofPurchases="1" type="Rolling" cleared="180" fallbackTariffPackageId="965" fallbackValidation="false">
    <article id="6661" />
    <tariffPackage id="963" />
    <code />
  </rule>
</PURCHASERULES>

The purchase rule also requires that Article with ID 6661 is used for the purchase and that a License plate number has been inserted.

 

Start the terminal

Insert the SD-Card in its slot in the terminal and boot up the terminal.

Wait for the initial heartbeat before continuing.