Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

This page has been moved from General Documentation to here (Maxxton Knowledge Base)

...

To make use of page breaks put the following code in the header of your HTML:

<style>
@media print {
.pagebreak { page-break-after: always; }
}
</style>

Then, at places inside your text where you would want to start a new page use the following DIV-tag:

<div class="pagebreak"> </div>

Velocity Tools 

From Newyse 2011R1 we added Velocity Tools to the templates. This is a set of utilities which help you with certain things. Like parsing a date, mathmetical things etc.

...

TagDescription
  $reservation_idReservation id
  $reservation_arrivaldateReservation arrival date
  $reservation_departuredateReservation depature date
  $reservation_canceldateReservation cancel date
  $reservation_reservationdateReservation date
  $reservation_reservationinitialsReservation initials
  $reservation_languageReservation language
  $reservation_reservationnumberReservation number
  $reservation_reservationstatusReservation status
  $reservation_reservationvalidationstatusReservation validation status
  $reservation_resortcodeReservation resort code
  $reservation_resortnameReservation resort name
  $reservation_resortshortdescriptionReservation resort short description
  $reservation_resortaddress1Reservation resort address
  $reservation_resorthousenumberReservation resort house number
  $reservation_resorthousenumbersuffixReservation resort house number suffix
  $reservation_resortzipcodeReservation resort zipcode
  $reservation_resort_countryReservation resort country
  $reservation_resortcityReservation resort city
  $reservation_resort_emailaddressReservation resort email ids
  $reservation_resort_faxnumberReservation resort fax number
  $reservation_resort_phonenumberReservation resort phone number
  $reservation_resort_accountnrReservation resort account number
  $reservation_resort_latitudeReservation resort latitude
  $reservation_resort_longitudeReservation resort longitude
  $reservation_resort_imagesReservation resort images
  $reservation_resort_statecodeReservation resort state code
  $reservation_resort_parentnameReservation resort parent name
  $reservation_identifierReservation identifier
  $reservation_identifiermod11Reservation identifier mod 11
  $reservation_rccodeReservation category code
  $reservation_dcname

Reservation distribution channel name

$reservation_dccodeReservation distribution channel code
  $reservation_dcshortdescriptionReservation distribution channel short description
  $reservation_dcaddress1Reservation distribution channel address
  $reservation_dchousenumberReservation distribution channel house number
  $reservation_dchousenumbersuffixReservation distribution channel house number suffix
  $reservation_dczipcodeReservation distribution channel zip code
  $reservation_dccityReservation distribution channel city
  $reservation_dcshortnameReservation distribution channel short name
  $reservation_dclongnameReservation distribution channel long name
  $reservation_dcmobile_phoneReservation distribution channel mobile number
  $reservation_dcprivate_phoneReservation distribution channel private phone number
  $reservation_dcwork_phoneReservation distribution channel work phone number
  $reservation_dcemailReservation distribution channel email id
  $reservation_dcfiscal_typeReservation distribution channel fiscal type
  $reservation_dcfiscal_vatReservation distribution channel fiscal vat
  $reservation_numberofpersons Number of person added in reservation
  $reservation_numberofpetsNumber of pets added in reservation
  $reservation_acconame Reservation accommodation name
  $reservation_accocheckintime Reservation accommodation checkin time ( 15:00 is used to empty(default) value)
  $reservation_accocheckouttime Reservation accommodation checkout time ( 10:00 is used to empty(default) value )
  $reservation_nr_of_nightsNumber of nights for reservation is done
  $reservation_voucherVoucher of the reservation
  $reservation_resort_dynamicfieldReservation resort dynamic field
  $reservation_daysleftforarrivalDays left for arrival
  $reservation_expectedarrivaltimeExpected arrival time for reservation
  $reservation_expecteddeparturetimeExpected departure time for reservation
  $reservation_tnc_signedIs reservations terms and conditions signed.(return 1 or 0)
  $reservation_tnc_signed_dateReservations terms and conditions signed date
  $reservation_tnc_signee_customer_nameReservations terms and conditions signed by
  $reservation_dc_invoice_address1Reservation distribution channel invoice address
  $reservation_dc_invoice_housenumberReservation distribution channel invoice house number
  $reservation_dc_invoice_housenumbersuffixReservation distribution channel invoice house number suffix
  $reservation_dc_invoice_zipcodeReservation distribution channel invoice zipcode
  $reservation_dc_invoice_cityReservation distribution channel invoice city
  $reservation_dc_invoice_shortnameReservation distribution channel invoice short name
  $reservation_dc_invoice_longnameReservation distribution channel invoice long name
  $reservation_dc_invoice_work_phoneReservation distribution channel invoice work phone number
  $reservation_dc_invoice_emailReservation distribution channel invoice email id
  $reservation_dc_invoice_statecodeReservation distribution channel invoice state code
  $reservation_dc_statecodeReservation distribution channel state code
  $reservation_dc_has_invoiceaddressReservation distribution channel has invoice address (return true or false)
  $reservation_dc_has_mailaddressReservation distribution channel has email id (return true or false)
  $reservation_dc_brand_nameReservation distribution channel brand name
  $reservation_dc_currency_idReservation distribution channel currency id
  $reservation_dc_currency_symbolReservation distribution channel currency symbol
  $reservation_dc_currency_codeReservation distribution channel currency code
  $reservation_dc_localeThe locale of distribution channel
$reservation_reservationtimeThe time of reservation
  $reservation_expiredateExpire date of the reservation
  $payment_currency_symbolPayment currency symbol
  $reservation_identifiermod97Reservation identifier mod 97
  $reservation_resortaddress2Address of the resort (second)
$reservation_brochuresReturn list of reservation brochures with name and code.
$reservation_dc_po_boxReservation dc po_box
$reservation_optional_confirmation_dateOptional reservation can be confirm till this date.
$reservation_supplier_vouchersupplier voucher number
$reservation_is_allinprice_enabledallinprice enabled
$reservation_dc_countrynameDC country name
$reservation_category_namereservation category name
$reservation_invoice_datereservation invoice date
$reservation_invoice_sign_failed reservation invoice sign failed
$reservation_payment_slip_fikreservation payment slip fik
$reservation_resort_is_fixed_vat_description reservation resort is fixed vat description 
$reservation_resort_fixed_vat_descriptionreservation resort fixed vat description

...

Loyalty Transaction: 

TagDescription
$loyalty_transaction_active_pointsLoyalty transaction active points
$loyalty_transaction_pending_pointsLoyalty transaction pending points
$loyalty_transaction_spent_pointsLoyalty transaction spent points
$loyalty_transaction_expired_pointsLoyalty transaction expired points


...

$dateFormatter.increment(date, days, month, year)    e.g. increase date by 1 day using $dateFormatter.increment($reservation_reservationdate , 1,0,0)


Below is a list of date variables to use with dateFormatter:

EEE - Short day name (Fri)  

...

z - time zone (Pacific Standard Time)  

' - escape for text  

'' - single quote (')

...