Newyse Templates
This page has been moved from General Documentation to here (Maxxton Knowledge Base)
For testing purposes, use the contents of AllTags.txt, put them in a Template and wrap them in a Report to verify what the value of each tag is.
Table of Contents
Purpose
The template module is mentioned to create emailtemplates for all kind of purposes like reservationconfirmations. These templates are generic and contain different tags which will be replaced by specific data for that reservation.
PDF Files
We're now using the templates too to generate email attachments with pdf or txt files. This requires a more strict template but we've built in some tools to help the user.
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.
You can read about the different tools here:Tools
- AlternatorTool - For creating Alternator to easily alternate over a set of values.
- ClassTool - For simplifying reflective lookup of information about Classes and their fields, methods and constructors.
- ContextTool - For convenient access to Context data and meta-data.
- ConversionTool - For converting String values to richer object types.
- DateTool & ComparisonDateTool - For manipulating, formatting, and comparing dates.
- DisplayTool - For controlling display of references (e.g. truncating values, "pretty printing" lists, and displaying alternates when a reference is null).
- EscapeTool - For common escaping needs in Velocity templates (e.g. escaping html, xml, javascript etc.)
- FieldTool - For (easy) access to static fields in a class, such as string constants.
- LoopTool - A convenience tool to use with #foreach loops. It wraps a list with a custom iterator to provide greater control, allowing loops to end early, skip ahead and more.
- LinkTool - For creating and manipulating URIs and URLs. The API for this tool is designed to closely resemble that of the VelocityView tool of the same name.
- ListTool - For working with arrays and lists, treats both transparently the same.
- MathTool - For performing math functions.
- NumberTool - For formatting and converting numbers.
- RenderTool - To evaluate and render arbitrary strings of VTL, including recursive rendering.
- ResourceTool - For simplified access to ResourceBundles for internationalization or other dynamic content needs.
- SortTool - Used to sort collections (or arrays, iterators, etc) on any arbitary set of properties exposed by the objects contained within the collection.
- XmlTool - For reading/navigating XML files. This uses dom4j under the covers and provides complete XPath support.
- NF525 audit related tags more details refer url /wiki/spaces/TP/pages/299991251
- Loyalty tags
Customer based templates
A template can contain plain text and html formatted text, the html format makes it possible to add tables, images, hyperlinks etcetera in the template.
This is a list of tags and loops which are supported for now.
General:
$current_date , the current date
Customer:
Tag | Description |
---|---|
$customer.customerId | The unique customer id |
$customer.title | Title of customer. |
$customer.firstname | Customer first name |
$customer.middlename | Customer middle name |
$customer.lastname | Customer last name |
$customer.attentionOf | attention of customer |
$customer.account | Account numer of customer |
$customer.birthDate | Date of birth of customer |
$customer.sex | Sex of customer |
$customer.vatNumber | Vat number of customer |
$customer.company (returns true or false) | Is customer have company |
$customer.companyName | Name of customers company |
$customer.department | Department of customer |
$customer.ibanNumber | International bank account number of customer. |
$customer.owner (returns true or false) | Is this owner |
$customer.alternateName | Alternate name of customer |
$customer.login | Login of customer |
$customer.title | Title of customer. |
$customer.language | language of customer |
Address: | |
$customer.address.address1 | 1 Address of customer |
$customer.address.address2 | 2 address of customer |
$customer.address.housenumber | house number of customer |
$customer.address.housenumberSuffix | house number suffix |
$customer.address.zipcode | Zipcode of customer |
$customer.address.city | City of the customer |
$customer.address.district | District of the customer |
$customer.address.email | Email id of customer |
customer.address.countryCode | Country code |
$customer.address.countryName | Country Name |
$customer.address.mobilePhone | Mobile number |
$customer.address.privatePhone | Private number |
$customer.address.workPhone | Work phone number |
$customer.address.poBox | Po box number |
$customer.address.poBoxZipcode | Po box zip code |
$customer.address.poBoxCity | Post box city |
$customer.address.fax | Fax number |
Customer Care - customer-based templates
For Customer Care, it is possible to configure templates for ad-hoc messages through Customer Care. These templates use the same context as the regular customer templates, but don't support all the same tags.
The most important tag for these kinds of templates is $custom_message, this will be replaced by the text that the users type.
Tag | Description |
---|---|
$custom_message | The manual message that is typed by the employee in Customer Care |
$customer_firstname | The first name of the customer |
$customer_lastname | The last name of the customer |
$customer_title | Customer title of the customer |
$customer_middlename | Middle name of the customer |
$customer_email | Email address of the customer |
$login_employee_firstname | First name of the current employee (who is sending the email) |
$login_employee_middlename | Middle name of the current employee |
$login_employee_lastname | Lastname of the current employee |
$login_employee_email | Email address of the current employee |
Reservation based templates
A template can contain plain text and html formatted text, the html format makes it possible to add tables, images, hyperlinks etcetera in the template.
This is a list of tags and loops which are supported for now.
General:
$current_date , the current date
Specific accommodation: (better use the new resourcelist and use thise only for infotexts)
#foreach($acco in $accommodationList) or (fakturen)--> ($acco in $parentAccommodationList) Loop on accommodation list.
Tag | Description |
---|---|
$acco.accommodation_description | Accommodtion description |
$acco.accommodation_name | Name of accommodation |
$acco.accommodation_object | Accommodation object a.k.a. Unit |
$acco.accommodation_start_date | Accommodation start date |
$acco.accommodation_end_date | Accommodation end date |
$acco.accommodation_object_forced | Accommodation object code |
$acco.accommodation_object_infotext | Accommodation object infotext |
$acco.accommodation_object_infotext_priority | Accommodation object infotext priority |
$acco.accommodation_object_infotext_code | Accommodation object infotext code |
$acco.accommodation_object_infotext_addtovoucher | Is accommodation object have infotext add to voucher (return 0 or 1) |
$acco.accommodation_object_infotext_addtotravel | Is accommodation object have infotext add to travel (return 0 or 1) |
$acco.accommodation_object_infotext_addtoprint | Is accommodation object have infotext add to print (return 0 or 1) |
$acco.accommodation_object_infotext_type | Accommodation object infotext type |
$acco.accommodation_checkintime | Accommodation checkin time |
$acco.real_accommodation_checkintime | Accommodation real checkin time |
$acco.accommodation_doorlock_pincode | Doorlock pin code for accommodation |
$acco.accommodation_doorlock_pincode_early_checkin | Doorlock pin code for accommodation in case of an early check-in |
$acco.accommodation_checkouttime | Checkout time of accommodation |
$acco.real_accommodation_checkouttime | Accommodation real checkout time |
$acco.accommodation_kind | Accommodation Kind |
$acco.accommodation_kind_code | Accommodation kind code |
$acco.accommodation_kind_dynamicfield | Accommodation kind dynamic field |
$acco.accommodation_representation_name | Accommodation representation name |
$acco.accommodation_address1 | Address of accommodation |
$acco.accommodation_housenumber | Accommodationhouse number |
$acco.accommodation_housenumber_suffix | Accommodation house number suffix |
$acco.accommodation_zipcode | Zipcode of accommodation |
$acco.accommodation_city | City of accommodation |
$acco.accommodation_countryname | Country of accommodation |
$acco.accommodation_countrycode | Accommodation country code |
$acco.accommodation_phonenumber | Accommodation phone number |
$acco.accommodation_statename | Accommodation state name |
$acco.accommodation_statecode | Accommodation state code |
$acco.accommodation_key_housenumber | Alternative Key pickup location house number |
$acco.accommodation_key_housenumber_suffix | Alternative Key pickup location house number suffix |
$acco.accommodation_key_zipcode | Alternative Key pickup location zip code |
$acco.accommodation_key_city | Alternative Key pickup location city |
$acco.accommodation_key_countryname | Alternative Key pickup location country |
$acco.accommodation_key_latitude | Alternative Key pickup location latitude |
$acco.accommodation_key_longitude | Alternative Key pickup location longitude |
$acco.accommodation_gas_start_date, | Gas start date |
$acco.accommodation_gas_start_value, | Gas start value |
$acco.accommodation_gas_end_date, | Gas end date |
$acco.accommodation_gas_end_value, | Gas end value |
$acco.accommodation_electricity_start_date, | Electricity start date |
$acco.accommodation_electricity_start_value, | Electricity start value |
$acco.accommodation_electricity_end_date, | Electricity end date |
$acco.accommodation_electricity_end_value, | Electricity end value |
$acco.accommodation_water_start_date, | Water start date |
$acco.accommodation_water_start_value, | Water start value |
$acco.accommodation_water_end_date, | Water end date |
$acco.accommodation_water_end_value | Water end value |
$acco.accommodation_cleansing_start_date, | Accommodation cleansing start date |
$acco.accommodation_cleansing_start_value, | Accommodation cleansing start value |
$acco.accommodation_cleansing_end_date, | Accommodation cleansing end date |
$acco.accommodation_cleansing_end_value, | Accommodation cleansing end value |
$acco.accommodation_images, | Accommodation images |
$acco.accommodatoin_dynamic_field | Accommodation dynamic field |
$acco.accommodation_object_dynamic_field | Accommodation object dynamic field |
$acco.accommodation_object_brand_name | Accommodation object brand name |
$acco.accommodation_parent_name | Accommodation parent name |
$acco.accommodation_parent_code | Accommodation parent code |
$acco.accommodation_parent_id | Accommodation parent id |
$acco.accommodation_memos | Accommodation memos |
$acco.accommodation_type_memos | Accommodation type memos |
$acco.object_description_forced | Object description |
$acco.object_short_description_forced | Object short description |
$acco.accommodation_is_imply | Accommodation is empty (returm true or false) |
$acco.accommodation_object_id | Accommodation object id |
$acco.reserved_resource_id | Reserved resource id of resource |
$acco.accommodation_short_description | Accommodation short description |
$acco.object_preference | Object preference |
$acco.object_short_description | Object short description |
$acco.object_description | Object description |
$acco.adjacent_preference | Is adjacent preference for accommodation (return 0 or 1) |
$acco.misc_preference | Accommodation miscellaneous preference. |
$acco.accommodation_dynamic_field | Accommodation dynamic fields: list of <key, value>-pairs where the key is the code which was given to the dynamic field |
$acco.accommodation_type_address1 | Accommodation type address first |
$acco.accommodation_type_housenumber | Accommodation types house number |
$acco.accommodation_type_housenumber_suffix | Accommodation types house number suffix |
$acco.accommodation_type_address2 | Accommodation types address second |
$acco.accommodation_type_po_box | Accommodation types po box number |
$acco.accommodation_type_po_box_zipcode | Accommodation types po box zipcode |
$acco.accommodation_type_po_box_city | Accommodation types po box city |
$acco.accommodation_type_city | Accommodation types city |
$acco.accommodation_type_zipcode | Accommodation types zip code |
$acco.accommodation_type_phonenumber | Accommodation types phone number |
$acco.accommodation_type_latitude | Accommodation types latitude |
$acco.accommodation_type_longitude | Accommodation types longitude |
$acco.accommodation_type_countryname | Accommodation types country name |
$acco.accommodation_type_countrycode | Accommodation types country code |
$acco.accommodation_type_statename | Accommodation types state name |
$acco.accommodation_type_statecode | Accommodation types state code |
$acco.accommodation_type_propertymanager_id | Accommodation types property manager id |
$acco.accommodation_propertymanager_id | Accommodation property manager id |
$acco.accommodation_parent_images | Accommodation parent images |
$acco.accommodation_free_fieldList | Accommodation free fieldList from Unit level (use with the forEach loop to print all free field list) |
$acco.accommodation_type_free_fieldList | Accommodation free fieldList from Type level (use with the forEach loop to print all free field list) |
$acco.accommodation_nr_of_bedrooms | Accommodation number of bedrooms |
$acco.accommodation_nr_of_bathrooms | Accommodation number of bathrooms |
$acco.accommodation_turnover | Accommodation turnover price |
#end
Resource: (better use the list below)
#foreach($res in $resourceList) or (fakturen)--> ($res in $parentResourceList) Loop on resource list
Tag | Description |
---|---|
$res.infotext | Resource infotext |
$res.infotext_priority | Resource infotext priority |
$res.infotext_code | Resource infotext code |
$res.infotext_type | Resource infotext type |
$res.infotext_addtovoucher | Is infotext add to voucher (return 0 or 1) |
$res.infotext_addtotravel | Is infotext add travel (return 0 or 1) |
$res.infotext_addtoprint | Is infotext add to print (return 0 or 1) |
$res.resource_name | Rresource name |
$res.resource_description | Resource description |
$res.resource_is_imply | Is resource imply (return true or false) |
#end
Reserved resource:
#foreach($resource in $reservedResourceList) Loop on reservedresource list
Tag | Description |
---|---|
$resource.reservedresource_id | Reserved resource id |
$resource.reservation_id | Reservation id |
$resource.resource_id | Resource id |
$resource.parent_id | Resource parent id |
$resource.implies_id | Resource implies id |
$resource.type | Type of the resource |
$resource.name | Name of the resource |
$resource.code | Resource code |
$resource.short_description | Resource short description |
$resource.description | Resource description |
$resource.start_date | Resource start date |
$resource.end_date | Resource end date |
$resource.reservation_date | Resource reservation date |
$resource.modified_date | resource modified date |
$resource.status | status of the resource |
$resource.included | Is resource price included |
$resource.price | Price of the resource |
$resource.internal_price | Resource internal price |
$resource.removable | Is resource removable( return 0 or 1) |
$resource.on_bill | Is price of resource added on bill |
$resource.show_price | Show price of the resource on bill (return 0 or 1) |
$resource.object_id | Reserved object id |
$resource.quantity | resourc quantity |
$resource.completed | Reserved composition is completed or not. Generally used when some choices have to be made. For eg. choosable compositions. Values: 1(Complete), 0(Incomplete). |
$resource.actual_start_date | Actual start date of the resource |
$resource.actual_end_date | Actual end date of the resource |
$resource.payer_type | Resource payer type |
$resource.vat_rate | Resource vat rate |
$resource.supplier_origin | Supplier origing id of the resource |
$resource.extra_iswarrant | Resource have is extra warrant |
$resource.special_searchcode | Code for searching special resource |
$resource.special_policy | Resource special policy |
$resource.checkin_time | Resource checkin time |
$resource.checkout_time | Resource checkout time |
$resource.producttype_resortarticle | Is product type have resort article |
$resource.extra_cancel_premium | Is resource have extra cancle premium |
$resource.extra_cancel_compensation | Is resource have cancle compensation |
$resource.is_accommodation_composition | Is resource have accommodation composition |
$resource.images | Resource Images |
$resource.dynamic_field | Resource dynamic field |
$resource.dynamic_field_object | Resource dynamic field object |
$resource.accommodation_nr_of_bedrooms | Number of bedrooms resource have |
$resource.accommodation_nr_of_bathrooms | Number of bathrooms resource have |
$resource.subjectCapacityList.A2 | A2 is reportgroup_subject code for senior, So here it will give senior capacity for accommodation |
#end
Terms:
#foreach( $term in $termList ) Loop on term list
Tag | Description |
---|---|
$term.term_name | Payment term name |
$term.term_duedate | Payment term due date |
$term.term_value | Payment term value |
$term.term_due | Payment term due amount |
$term.term_paid | Payment term paid amount |
$term.term_status | Payment term status |
$term.term_identifier | Payment term identifier |
$term.term_paymentmark | Payment mark, which is described as paying_type + reservationnumber, where paying type possible values are 1 (customer), 2(agent) |
$term.term_payertype | Payer type of the payment term |
$term.term_due_referencepoint | When the instalment is due, for eg. r (on reservation), a (on arrival), d (on departure) |
$term.term_due_deviation | The deviation from the due reference point, for eg. -2 (2 days before reservation), 3 (3 days after reservation) |
$term.term_business_snapshot_id | Payment term business snapshot id |
$term.term_business_snapshot_number | Payment term business snapshot number |
$term.term_issuedate | Term issue date |
#end
$term_confirmation_text
Customer :-
Tag | Description |
---|---|
$customer_id | Customer id |
$customer_title | Customer Title |
$customer_firstname | Customer firstname |
$customer_middlename | Customer middlename |
$customer_lastname | Customer lastname |
$customer_address1 | Customer address (first) |
$customer_address2 | Customer address (second) |
$customer_housenumber | Customer house number |
$customer_housenumbersuffix | Customer house number suffix |
$customer_zipcode | Customer zipcode |
$customer_city | Customer city |
$customer_email | Customer email id |
$customer_countrycode | Customer country code |
$customer_country | Customer country |
$customer_accountnr | Customer account number |
$customer_ibannr | International bank account number of customer. |
$customer_mobile_phone | Customer mobile number |
$customer_private_phone | Customer private phone number |
$customer_work_phone | Customer work phone number |
$customer_show_vat | Show vat for customer |
$pcustomer_show_vat | Show vat for paying customer |
$customer_statecode | Customer state code |
$customer_attention_of | Customer attention of |
$alternate_contact_person_name | Alternate Contact person name |
$customer_po_box | Customer po_box |
$customer_questionnaire_unsubscribe | Corresponds to the value of the checkbox "unsubscribe questionnaire emails" at the customer screen |
Paying Customer:
Tag | Description |
---|---|
$paying_customer_id | Paying customer id |
$paying_customer_title | Paying customer title |
$paying_customer_firstname | Paying customer first name |
$paying_customer_middlename | Paying customer middle name |
$paying_customer_lastname | Paying customer last name |
$paying_customer_address1 | Paying customer address (first) |
$paying_customer_address2 | Paying customer address (second) |
$paying_customer_housenumber | Paying customer house number |
$paying_customer_housenumbersuffix | Paying customer house number suffix |
$paying_customer_zipcode | Paying customer zipcode |
$paying_customer_city | Paying customer city |
$paying_customer_email | Paying customer email id |
$paying_customer_state | Paying customer state |
$paying_customer_countrycode | Paying customer country code |
$paying_customer_country | Paying customer country |
$paying_customer_accountnr | Paying customer account number |
$paying_customer_ibannr | International bank account number of paying customer |
$paying_customer_mobile_phone | Paying customer mobile number |
$paying_customer_private_phone | Paying customer private phone number |
$paying_customer_work_phone | Paying customer work phone number |
$paying_customer_vat_number | Paying customer vat number |
$paying_customer_company_name | Paying customer company name |
$paying_customer_department | Paying customer department |
$paying_customer_po_box | Paying customer po_box |
$paying_customer_attention_of | Paying customer attention of |
Employee:
Tag | Description |
---|---|
$employee_firstname | Employee first name |
$employee_lastname | Employee last name |
$employee_middlename | Employee middle name |
Supplier:
Tag | Description |
---|---|
$supplier_code | Supplier code |
$supplier_name | Supplier name |
$supplier_shortdescription | Supplier short description |
$supplier_description | Supplier description |
$supplier_dynamic_field | Supplier dynamic field |
$supplier_address1 | Supplier address(first) |
$supplier_address2 | Supplier address (second) |
$supplier_housenumber | Supplier house number |
$supplier_housenumber_suffix | Supplier house number suffix |
$supplier_zipcode | Supplier zipcode |
$supplier_city | Supplier city |
$supplier_po_box | Supplier po box number |
$supplier_po_box_zipcode | Supplier po box zip code |
$supplier_po_box_city | Supplier po box city |
$supplier_fax | Supplier fax number |
$supplier_countryname | Supplier country name |
$supplier_countrycode | Supplier country code |
$supplier_statename | Supplier state name |
$supplier_statecode | Supplier state code |
Owner:
Tag | Description |
---|---|
$owner_emails | Accommodation owners all email ids. |
#foreach($owner in $ownerList) loop for owner tags
Tag | Description |
---|---|
$owner.owner_firstname | Owner first name |
$owner.owner_middlename | Owner middle name |
$owner.owner_lastname | Owner last name |
$owner.owner_language | Owner language |
$owner.owner_send_menthod | Owner send method |
$owner.owner_country | Owner country |
$owner.owner_address1 | Owner address 1 |
$owner.owner_housenumber | Owner house number |
$owner.owner_housenumber_sufix | Owner house number suffix |
$owner.owner_zipcode | Owner zipcode |
$owner.owner_city | Owner city |
$owner.owner_email | Owner email |
$owner.owner_currency_id | Currency id (base on selected country for owner) |
$owner.owner_currency_symbol | Currency symbol |
$owner.owner_currency_code | Currency code |
Reservation:
Tag | Description |
---|---|
$reservation_id | Reservation id |
$reservation_arrivaldate | Reservation arrival date |
$reservation_departuredate | Reservation depature date |
$reservation_canceldate | Reservation cancel date |
$reservation_reservationdate | Reservation date |
$reservation_reservationinitials | Reservation initials |
$reservation_language | Reservation language |
$reservation_reservationnumber | Reservation number |
$reservation_reservationstatus | Reservation status |
$reservation_reservationvalidationstatus | Reservation validation status |
$reservation_resortcode | Reservation resort code |
$reservation_resortname | Reservation resort name |
$reservation_resortshortdescription | Reservation resort short description |
$reservation_resortaddress1 | Reservation resort address |
$reservation_resorthousenumber | Reservation resort house number |
$reservation_resorthousenumbersuffix | Reservation resort house number suffix |
$reservation_resortzipcode | Reservation resort zipcode |
$reservation_resort_country | Reservation resort country |
$reservation_resortcity | Reservation resort city |
$reservation_resort_emailaddress | Reservation resort email ids |
$reservation_resort_faxnumber | Reservation resort fax number |
$reservation_resort_phonenumber | Reservation resort phone number |
$reservation_resort_accountnr | Reservation resort account number |
$reservation_resort_latitude | Reservation resort latitude |
$reservation_resort_longitude | Reservation resort longitude |
$reservation_resort_images | Reservation resort images |
$reservation_resort_statecode | Reservation resort state code |
$reservation_resort_parentname | Reservation resort parent name |
$reservation_identifier | Reservation identifier |
$reservation_identifiermod11 | Reservation identifier mod 11 |
$reservation_rccode | Reservation category code |
$reservation_dcname | Reservation distribution channel name |
$reservation_dccode | Reservation distribution channel code |
$reservation_dcshortdescription | Reservation distribution channel short description |
$reservation_dcaddress1 | Reservation distribution channel address |
$reservation_dchousenumber | Reservation distribution channel house number |
$reservation_dchousenumbersuffix | Reservation distribution channel house number suffix |
$reservation_dczipcode | Reservation distribution channel zip code |
$reservation_dccity | Reservation distribution channel city |
$reservation_dcshortname | Reservation distribution channel short name |
$reservation_dclongname | Reservation distribution channel long name |
$reservation_dcmobile_phone | Reservation distribution channel mobile number |
$reservation_dcprivate_phone | Reservation distribution channel private phone number |
$reservation_dcwork_phone | Reservation distribution channel work phone number |
$reservation_dcemail | Reservation distribution channel email id |
$reservation_dcfiscal_type | Reservation distribution channel fiscal type |
$reservation_dcfiscal_vat | Reservation distribution channel fiscal vat |
$reservation_numberofpersons | Number of person added in reservation |
$reservation_numberofpets | Number 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_nights | Number of nights for reservation is done |
$reservation_voucher | Voucher of the reservation |
$reservation_resort_dynamicfield | Reservation resort dynamic field |
$reservation_daysleftforarrival | Days left for arrival |
$reservation_expectedarrivaltime | Expected arrival time for reservation |
$reservation_expecteddeparturetime | Expected departure time for reservation |
$reservation_tnc_signed | Is reservations terms and conditions signed.(return 1 or 0) |
$reservation_tnc_signed_date | Reservations terms and conditions signed date |
$reservation_tnc_signee_customer_name | Reservations terms and conditions signed by |
$reservation_dc_invoice_address1 | Reservation distribution channel invoice address |
$reservation_dc_invoice_housenumber | Reservation distribution channel invoice house number |
$reservation_dc_invoice_housenumbersuffix | Reservation distribution channel invoice house number suffix |
$reservation_dc_invoice_zipcode | Reservation distribution channel invoice zipcode |
$reservation_dc_invoice_city | Reservation distribution channel invoice city |
$reservation_dc_invoice_shortname | Reservation distribution channel invoice short name |
$reservation_dc_invoice_longname | Reservation distribution channel invoice long name |
$reservation_dc_invoice_work_phone | Reservation distribution channel invoice work phone number |
$reservation_dc_invoice_email | Reservation distribution channel invoice email id |
$reservation_dc_invoice_statecode | Reservation distribution channel invoice state code |
$reservation_dc_statecode | Reservation distribution channel state code |
$reservation_dc_has_invoiceaddress | Reservation distribution channel has invoice address (return true or false) |
$reservation_dc_has_mailaddress | Reservation distribution channel has email id (return true or false) |
$reservation_dc_brand_name | Reservation distribution channel brand name |
$reservation_dc_currency_id | Reservation distribution channel currency id |
$reservation_dc_currency_symbol | Reservation distribution channel currency symbol |
$reservation_dc_currency_code | Reservation distribution channel currency code |
$reservation_dc_locale | The locale of distribution channel |
$reservation_reservationtime | The time of reservation |
$reservation_expiredate | Expire date of the reservation |
$payment_currency_symbol | Payment currency symbol |
$reservation_identifiermod97 | Reservation identifier mod 97 |
$reservation_resortaddress2 | Address of the resort (second) |
$reservation_brochures | Return list of reservation brochures with name and code. |
$reservation_dc_po_box | Reservation dc po_box |
$reservation_optional_confirmation_date | Optional reservation can be confirm till this date. |
$reservation_supplier_voucher | supplier voucher number |
$reservation_is_allinprice_enabled | allinprice enabled |
$reservation_dc_countryname | DC country name |
$reservation_category_name | reservation category name |
$reservation_invoice_date | reservation invoice date |
$reservation_invoice_sign_failed | reservation invoice sign failed |
$reservation_payment_slip_fik | reservation payment slip fik |
$reservation_resort_is_fixed_vat_description | reservation resort is fixed vat description |
$reservation_resort_fixed_vat_description | reservation resort fixed vat description |
Custom Fields (a.k.a. Free Fileds):
#foreach( $field in $reservation_free_field_list ) Loop through all Custom Fields in the reservation
Tag | Description |
---|---|
$field.name | Name of the custom field |
$field.value | The value assigned |
#end
Billlines:
#foreach( $bill in $billList ) Loop of bill list
Tag | Description |
---|---|
$bill.bill_type | Type of the bill |
$bill.bill_resource | Name of the resource |
$bill.bill_cashflowrule | Cashflowrule name |
$bill.bill_startdate | Start date of the bill |
$bill.bill_enddate | End date of the bill |
$bill.bill_value | Bill value ( With format ) |
$bill.bill_value_without_format | Bill value ( Without format ) |
$bill.bill_quantity | Quantity of the resource. |
$bill.bill_quantity_multiplier | Quantity multiplier |
$bill.bill_total | Total bill amount ( With format ) |
$bill.bill_total_without_format | Total bill amount ( Without format ) |
$bill.bill_linetype | Billline type |
$bill.bill_multiplier | quantity of resource |
$bill.bill_resource_type | Resource type like products or extra's |
$bill.bill_resource_id | Resource Id of the bill line. |
$bill.bill_payer_type | Payertype like c(ustomer), p(aying customer) or a(gent) |
$bill.bill_total_excl_vat | Bill total excluding vat |
$bill.bill_vat_rate | Bill vat rate |
$bill.work_order_id | work order id |
#end
BillLines excluding VAT:
#foreach( $bill_excl_vat in $billList_excl_vat ) Loop on bill list ( bill excluding vat).
Tag | Description |
---|---|
$bill_excl_vat.bill_type | Type of the bill |
$bill_excl_vat.bill_resource | Name of the resource |
$bill_excl_vat.bill_cashflowrule | Cashflowrule name |
$bill_excl_vat.bill_startdate | Start date of the bill |
$bill_excl_vat.bill_enddate | End date of the bill |
$bill_excl_vat.bill_value | Bill value excluding vat ( With format ) |
$bill_excl_vat.bill_value_without_format | Bill value excluding vat ( Without format ) |
$bill_excl_vat.bill_quantity | Quantity of the resource. |
$bill_excl_vat.bill_total | Total bill amount excluding vat ( With format ) |
$bill_excl_vat.bill_total_without_format | Total bill amount excluding vat ( Without format ) |
$bill_excl_vat.bill_linetype | Billline type |
$bill_excl_vat.bill_multiplier | quantity of resource |
$bill_excl_vat.bill_quantity_multiplier | quantity multiplier |
$bill_excl_vat.bill_resource_type | Resource type like products or extra's |
$bill_excl_vat.bill_resource_id | Resource Id of the bill line. |
$bill_excl_vat.bill_payer_type | Payertype like c(ustomer), p(aying customer) or a(gent) |
$bill_excl_vat.bill_total_excl_vat | Bill total excluding vat ( With format ) |
$bill_excl_vat.bill_total_excl_vat_without_format | Bill total excluding vat (Without format ) |
#end
Grouped billlines: This is the same list as above but with slightly less fields. When the resource is the same one, we group the lines to one line and sum the values. Can be useful in group reservations.
#foreach( $bill in $groupedBillList ) Loop of group bill list for grouped bill lines.
Tag | Description |
---|---|
$bill.bill_type | Type of the bill |
$bill.bill_startdate | Strat date of bill |
$bill.bill_enddate | End date of the bill |
$bill.bill_value | Value of the bill (with format) |
$bill.bill_value_without_format | Value of the bill (without format) |
$bill.bill_quantity | Quantity of the resource |
$bill.bill_total | Total of the bill (with format) |
$bill.bill_total_without_format | Total of the bill (without format) |
$bill.bill_linetype | Type of the bill line |
$bill.bill_multiplier | Multiplier of the resource |
$bill.bill_resource_type | Resource type like products or extra's |
$bill.bill_payer_type | Payertype like c(ustomer), p(aying customer) or a(gent) |
#end
Grouped billlines excluding VAT:
#foreach( $bill_excl_vat in $groupedBillList_excl_vat ) Loop of groupedBillList (bill excluding vat)
Tag | Description |
---|---|
$bill_excl_vat.bill_type | Type of the bill |
$bill_excl_vat.bill_startdate | Strat date of bill |
$bill_excl_vat.bill_enddate | End date of the bill |
$bill_excl_vat.bill_value | Value of the bill (with format) |
$bill_excl_vat.bill_value_without_format | Value of the bill (without format) |
$bill_excl_vat.bill_quantity | Quantity of the resource |
$bill_excl_vat.bill_total | Total of the bill (with format) |
$bill_excl_vat.bill_total_without_format | Total of the bill (without format) |
$bill_excl_vat.bill_linetype | Type of hte bill line |
$bill_excl_vat.bill_multiplier | Multiplier of the resource |
$bill_excl_vat.bill_resource_type | Resource type like products or extra's |
$bill_excl_vat.bill_payer_type | Payertype like c(ustomer), p(aying customer) or a(gent) |
$bill_excl_vat.bill_total_excl_vat | Bill total excluding vat ( With format ) |
$bill_excl_vat.bill_total_excl_vat_without_format | Bill total excluding vat (Without format ) |
#end
FYI : wawb stand for Withholings And Warrants Bill
#foreach( $bill_excl_vat in $withholings_and_warrants_bill) Loop of Withholings And Warrants Bill use in cognos to template convert
Tag | Description |
---|---|
$wawb_reservation_id | Bill reservation id |
$wawb_reservationbillline_id | Reservation bill line id |
$wawb_bill_line_type | Reservation bill line type |
$wawb_start_date | Start date for bill line |
$wawb_end_date | End date for bill line |
$wawb_bill_line_name | Bill line name |
$wawb_value | Value of bill line |
$wawb_quantity | Quantity for bill line |
$wawb_multiplier | Multiplier for bill line |
$wawb_total | Total of bill line |
#end
Reminders:
#foreach( $rem in $reminderList ) Loop of reminder list
Tag | Description |
---|---|
$rem.status | Reminder status |
$rem.due | Reminder due amount |
$rem.issue_date | Reminder issue date |
$rem.due_date | Reminder due date |
$rem.printed_date | Printed date of Reminder |
$rem.payer_type | Payer type for reminder is printed |
$rem.due_amount | Reminder due amount |
#end
Memo's:
#foreach( $memo in $memoList ) Loop for memo list
Tag | Description |
---|---|
$memo.creation_date | Memo creation date |
$memo.content | Memo content |
$memo.category_id | Category id of memo |
$memo.category_name | Memo category name |
#end
Memo's:
#foreach( $memo in $reservation_memolist ) Loop for reservation_memo List
Tag | Description |
---|---|
$memo.memo_content | Memo content |
$memo.memo_employee_firstname | Firstname of employee |
$memo.memo_employee_middlename | Middlename of employee |
$memo.memo_employee_lastname | Lastname of employee |
$memo.memo_creation_date | Memo creation date |
$memo.memo_category_name | Memo category name |
$memo.memo_category_id | Memo category id |
$memo.memo_issensitive | Is sensitive (0 or 1) |
$memo.memo_oninvoice | On invoice (0 or 1) |
$memo.memo_oncheckin | On check in (0 or 1) |
$memo.predefined_memo_code | Predefined memo code |
$memo.predefined_memo_name | Predefined memo name |
Subjects:
#foreach( $subject in $subjectList ) Loop for subject list
Tag | Description |
---|---|
$subject.type | Type of the subject |
$subject.name | Name of the subject |
$subject.quantity | quantity of the subject |
#end
Travel subjects:
#foreach( $subject in $travelList ) Loop for travel list
Tag | Description |
---|---|
$subject.reservationsubject_id | Reservation subject id |
$subject.reservation_id | Reservation id |
$subject.type | Type of the subject |
$subject.remark | Remark of the subject |
$subject.lastname | Lastname of the subject |
$subject.middle | Middlename of the subject |
$subject.firstname | Firstname of the subject |
$subject.birthdate | birthdate of the subject |
$subject.sex | Sex of the subject |
$subject.arrival_date | Arrival date of the subject |
$subject.departure_date | Departure date of the subject |
$subject.is_guest | Is subject is guest (return true or false) |
$subject.is_companion | is subject is companion (return true or false) |
$subject.phone | Phone number of the subject |
$subject.email | Email id of the subject |
$subject.left_id | (return true or false) |
#end
#foreach( $vehicle in $travelVehiclesList) Loop for travel list
Tag | Description |
---|---|
$vehicle.vehicle_registration_mark | Registration Mark |
#end
Received Payments:
#foreach( $receivedPayment in $receivedPaymentList) Loop for received payment list
Tag | Description |
---|---|
$receivedPayment.mutationDate | Date of payment received |
$receivedPayment.mutationId | mutation id of received payment |
$receivedPayment.bankname | The bank name from which payment is done |
$receivedPayment.statementDate | Date of the payment Statement |
$receivedPayment.statementNumber | Payment statement number |
$receivedPayment.contraAccountHolder | Contra acoount holder name |
$receivedPayment.amount | Amount of the payment |
$receivedPayment.payerType | Payer type of received payment |
$receivedPayment.paymentNumber | Payment number |
$receivedPayment.referenceNumber | Payment reference number |
$receivedPayment.creditCardType | Type of credit card from which payment has been done |
$receivedPayment.paymentMethodType | Method of the payment |
$receivedPayment.creditCardNumber | Credit card Number from which payment has been done |
$receivedPayment.paymentType | Type of payment |
$receivedPayment.cardholderName | Card holder name |
#end
Questionnaires:
#foreach( $questionnaire in $questionnaireList) Loop for questionnaire List
Tag | Description |
---|---|
$questionnaire.reservation_questionnaire_id | Reservation questionnaire id |
$questionnaire.send_date | questionnaaire start date |
$questionnaire.last_reminder_date | questionnaire last reminder date |
#end
Business snapshot:
Tag | Description |
---|---|
$business_snapshot_id | Business snapshot id |
$business_snapshot_number | Business snapshot number |
$snapshot_reservation_id | Business snapshot reservation id |
$snapshot_creation_date | Business snapshot creation date |
$snapshot_value | Business snapshot value |
$snapshot_paid | Business snapshot paid value |
$snapshot_open | Value of business snapshot at the time of open |
$snapshot_payerType | Payer type of the snapshot |
$snapshot_value_vat_excluded | Is value vat excluded for snapshot(return 0 or 1) |
$snapshot_paymentterm | Payment term of snapshot |
$snapshot_paymentterm_duedate | Payment term due date |
$snapshot_value_without_format | Business snapshot value without format |
$snapshot_paid_without_format | Business snapshot paid value without format |
$snapshot_open_without_format | Value of business snapshot at the time of open without format |
$snapshot_issue_date | Business snapshot Issue date |
#foreach($snapshotDetail in $snapshotDetailList) | |
$snapshotDetail.business_snapshot_details_id | Snapshot details id |
$snapshotDetail.snapshot_amount_vat_included | Snapshot amount with vat included |
$snapshotDetail.snapshot_amount_vat_excluded | Snapshot amount without vat |
$snapshotDetail. snapshot_resource_name | Snapshot resource name |
$snapshotDetail.snapshot_vat | snap shot vat. |
$snapshotDetail.snapshot_vat_perc | Snapshot vat percentage |
$snapshotDetail.snapshot_reservedresource_id | Snapshot reserved resource id |
$snapshotDetail.snapshot_amount_vat_included_without_format | Snapshot amount with vat included without format |
$snapshotDetail.snapshot_amount_vat_excluded_without_format | Snapshot amount without vat without format |
$snapshotDetail.snapshot_vat_perc_without_format | Snapshot vat percentage without format |
$snapshotDetail.snapshot_start_date | The start date of this snapshot line |
$snapshotDetail.snapshot_end_date | The end date of this snapshot line. For the last snapshot this will usually be reservation end date |
$snapshotDetail.no_of_days | number of days (which is actually the number of nights) |
$snapshotDetail.price_per_night | Price per night |
$snapshotDetail.price_per_night_without_format | Price per night without format. |
#foreach($vatRate in $snapshotdistinctvatratelist) | |
$vatRate.snapshot_vat_rate | Vat rate of the snapshot |
$vatRate.snapshot_vat_sum | Sum of the vat |
$vatRate.snapshot_vat_rate_without_format | Vat rate of the snapshot without format |
$vatRate.snapshot_vat_sum_without_format | Sum of the vat without format |
#end
Issue Invoices:
#foreach($issueIncident in $issueIncidentList) Loop for issue incident
Tag | Description |
---|---|
$issueIncident.issue_incident_id | Issue incident id |
$issueIncident.work_time_added_date | Issue incident added date |
$issueIncident.description | issue incident description |
$issueIncident.labor_price | issue incident labour price |
$issueIncident.work_time | issue incident work time |
#end
WorkOrder:
Tag | Description |
---|---|
$work_order_id | Work order id |
$wo_firstname | Work order firstname |
$wo_lastname | Work order lastname |
$wo_unitname | Work order unit name |
$wo_address1 | Work order address |
$wo_zipcode | Work order zipcode |
$wo_city | Work order city |
$wo_state | Work order state |
$wo_country | Work order country |
$wo_category | Work order category |
$wo_item | Work order items |
$wo_short_description | Work order short description |
$wo_description | Work order description |
$wo_area | Work order area |
$wo_phone_number | Work order phone number |
$wo_resort_name | Work order resort name |
TipsTrips:
#foreach($trip in $tips_trips) Loop for triptrips
Tag | Description |
---|---|
$trip.headText | Head text of tripstrips |
$trip.text | Text of triptrips |
$trip.visibleFrom | Triptrips visible from date |
$trip.visibleTo | triptrips visible to date |
$trip.imageUrl | Image URL's |
#end
Currency:
Tag | Description |
---|---|
$ao_currency_id | Currency Id |
$ao_currency_symbol | Currency symbol |
$ao_currency_code | Currency code |
$customer_currency_id | Customer currency id |
$customer_currency_symbol | Customer currency symbol |
$customer_currency_code | Customer currency code |
$customer_locale | locale of customer |
Login Employee
Tag | Description |
---|---|
$login_employee_firstname | Login employee first name |
$login_employee_lastname | Login employee last name |
#foreach($energy in $energyList)
Tag | Description |
---|---|
$energy.accommodation_gas_start_date | gas start date |
$energy.accommodation_gas_start_value | gas start value |
$energy.accommodation_gas_end_date | gas end date |
$energy.accommodation_gas_end_value | gas end value |
$energy.accommodation_electricity_start_date | electricity start date |
$energy.accommodation_electricity_start_value | electricity start value |
$energy.accommodation_electricity_end_date | electricity end date |
$energy.accommodation_electricity_end_value | electricity end value |
$energy.accommodation_water_start_date | water start date |
$energy.accommodation_water_start_value | water start value |
$energy.accommodation_water_end_date | water end date |
$energy.accommodation_water_end_value | water end value |
$energy.accommodation_cleansing_start_date | cleansing start date |
$energy.accommodation_cleansing_start_value | cleansing start value |
$energy.accommodation_cleansing_end_date | cleansing end date |
$energy.accommodation_cleansing_end_value | cleansing end value |
Debit card transaction tags
#foreach( $debitCardTransaction in $debitCardTransactionList )
Tag | Description |
---|---|
$debitCardTransaction.debit_card_transaction_id | Unique transaction id |
$debitCardTransaction.debit_card_group_id | Unique group id |
$debitCardTransaction.outlet | Outlet where purchase is done |
$debitCardTransaction.group_number | Group number |
$debitCardTransaction.product_type | Type of the product |
$debitCardTransaction.product_description | Description of the product |
$debitCardTransaction.price | The price of the item |
$debitCardTransaction.consumed | Quantity consumed |
$debitCardTransaction.available | Quantity available |
$debitCardTransaction.transaction_date | Purchase date |
Debit card availability tags
foreach ($debitCardItem in $debitCardAvailabilityTagList)
Tag | Description |
---|---|
$debitCardItem.debit_card_product | Debit card product |
$debitCardItem.debit_card_initial_value | Initial value |
$debitCardItem.debit_card_available_limit | Available limit |
$debitCardItem.debit_card_consumed_value | Consumed value |
Reservation event list tags
#foreach( $reservationEvent in $reservationEventList )
Tag | Description |
---|---|
$reservationEvent.event_description | Event description |
$reservationEvent.event_time | Time when event is logged |
$reservationEvent.event_employee | Employee who made changes to reservation |
$reservationEvent.event_old_value_description | The old value description which is modified |
$reservationEvent.event_new_value_description | The new value description which is added |
Loyalty Transaction:
Tag | Description |
---|---|
$loyalty_transaction_active_points | Loyalty transaction active points |
$loyalty_transaction_pending_points | Loyalty transaction pending points |
$loyalty_transaction_spent_points | Loyalty transaction spent points |
$loyalty_transaction_expired_points | Loyalty transaction expired points |
#foreach($loyalty in $loyaltyTransactionList)
Tag | Description |
---|---|
$loyalty.loyalty_transaction_type | Event description |
$loyalty.loyalty_transaction_date | Time when event is logged |
$loyalty.loyalty_activation_date | Employee who made changes to reservation |
$loyalty.loyalty_expiration_date | The old value description which is modified |
$loyalty.loyalty_original_points | The new value description which is added |
Tag for formatting dates in template
$dateFormatter.format("name of tag" , "required date format") e.g. $dateFormatter.format("reservation_arrivaldate" , "dd-MM-yyyy")
$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)
EEEE - Full day name (Friday)
HH:mm - 24 hour clock (13:00)
hh:mm - 24 hour clock (1:00)
a - Shows am/pm (am)
mm - Minutes with leading zero (60)
dd - Day in month with leading zero (09)
DD - Day in year (64)
M- Month (7)
MM- Month with leading zero (07)
MMM - Short month name (Jul)
MMMM - Full month name (July)
yyyy - Full year (1985)
yy - Shortend year (85)
Basic components:
G - era designator (AD)
y - year (1996)
M - month in year (July & 07)
w - week in year (27)
W - week in month (2)
d - day in month (10)
D - day in year (189)
F - day of week in month 2 (2nd Wed in July)
E - day in week (Tuesday)
h - hour in am/pm (1~12) (12)
H - hour in day (0~23) (0)
k - hour in day (1~24) (24)
K - hour in am/pm (0~11) (0)
m - minute in hour (30)
s - second in minute (55)
S - millisecond (978)
z - time zone (Pacific Standard Time)
' - escape for text
'' - single quote (')
For more info on formatting these strings see the Java docs
messageTool tag ("messageTool" is a general tag for getting message data in template)
$messageTool.getAccommodationProperties($accommodation)
$messageTool.getAccommodationTypeProperties($accommodation)
#foreach($acco in $accommodationList)
#foreach($property in $messageTool.getAccommodationProperties($acco))
Tag | Description |
---|---|
$property.propertyManagerId | Id of property manager |
$property.propertyDefId | Property definition id |
$property.code | Code of property |
$property.name | Name of property |
$property.description | Description of property |
$property.groupCode | Group code of property |
$property.groupName | Group name of property |
$property.isCommon | property is common (return true or false) |
$property.hasPreferenceCosts | Property has preference cost |
$property.type | Type of the property |
$property.value | Value of property |
$property.startDate | Start date of the property |
$property.endDate | end date of the property |
$property.origin | Origin of the property |
$property.extraId | The extra linked to this property for preference costs |
$property.forObjectInspection | Composition inspection |
$property.dynamicmanagerId | property Dynamic manager id |
$property.visible | Is property visible (return true or false) |
$property.numberValue | For properties with a value, like number of square feet of garden |
$property.standardCode | Standard code of the property |
$property.standardCodeName | Standard code name. |
$property.selected | Is property selected (return true or false) |
#end
#end
Info text tag list
#foreach( $infotext in $infotextList )
Tag | Description |
---|---|
$infotext.infotext_category_id | Returns info text category id |
$infotext.infotext_description | Description of a info text |
Energy section tag list
#foreach( $energySection in $energySectionList )
Tag | Description |
---|---|
$energySection.name | Name of a energy section |
$energySection.end_value | Consumption till date |
$energySection.value | Price from cashflowrule based on its value type |
$energySection.reservation_category_id | reservation category from CASHFLOWRULE_RCATEGORY |
Loyalty tag list
Transaction Loyalty tags
Tag | Description |
---|---|
$loyalty_transaction_type | Transaction type |
$loyalty_transaction_original_points | Original points |
$loyalty_transaction_remaining_points | Remaining points |
$loyalty_transaction_date | Transaction date |
$loyalty_transaction_activation_date | Activation date |
$loyalty_transaction_expiration_date | Expiration date |
$loyalty_transaction_remark | Remark |
$loyalty_transaction_resource_name | Resource name |
$loyalty_transaction_reservation_number | Reservation number |
Independent tags for both Loyalty context and reservation context:
Tag | Description |
---|---|
$loyalty_active_points | Active points balance |
$loyalty_pending_points | Pending points balance |
$loyalty_spent_points | Spent points balance. |
$loyalty_expired_points | Expired points balance |
#foreach($loyalty in $loyaltyTransactionList)
Tags | Description |
---|---|
$loayalty.resource_name | Resource Name |
$loyalty.type | Transaction type |
$loyalty.original_points | Original points |
$loyalty.remaining_points | Remaining points |
$loyalty.transaction_date | Transaction date |
$loyalty.activation_date | Activation date |
$loyalty.expiration_date | Expiration date |
$loyalty.remark | Remark |
#end
Inner List
#foreach($loayalty in $loyaltyTransactionList)
#foreach($trans in $loayalty.loyaltyTransactionReferenceList)
Tags | descriptions |
---|---|
$trans.transaction_id | loyalty_transaction_id |
$trans.transaction_ref_id | transaction_ref_id |
$trans.overlapping_transaction_id | overlapping_transaction_id |
$trans.points_deducted | points_deducted |
#end
#end
For emails, based on notifications created by the notification-service, the following tags are available:
Tag | Description |
---|---|
$notificationId | Identifier of the notification. Almost always unique per email. (It could be that one email is send to multiple contact persons, in that case, they share the same notificationId) |
$notificationTaskId | Identifier of the task |
$notificationTaskName | Name of the task in user language. It is possible to translate the name of the task, but in practice that is not used. |
$notificationActionId | Identifier of the action. A task can have multiple actions, e.g. one to send email to customer, and another action to send email to the resort. |
$notificationActionName | Name of the action. It is not possible to translate the name of the action. |
$notificationExecutionId | Identifier of the execution. Each run of an periodical task has a unique execution. |
$notificationConditionId | Identifier of the linked condition. A task can have multiple conditions, and a condition determines when the actions should be performed. |
$mutationId | Optional. The identifier of the mutation linked to the notification |
$reservedResourceId | Optional. The identifier of the reserved resource linked to the notification. |
numberFormatter tag ($numberFormatter.format())
This tag is for formatting the bill amount according to current customer language.
Note: Please use this tag with other *_without_format tag only.
e.g. $numberFormatter.format($bill.bill_total_without_format)
loginUrlGenerator tag ($loginUrlGenerator.generate($email, $landingPage))
This tag is for creating a hash to get access on login/password change page in MyEnvironment
$loginUrlGenerator.generate($email)
or with a landingpage (redirected to after success login)
$loginUrlGenerator.generate($email, $landingPage)
GroupBill function for grouping Billlines $messageTool.groupBill($billList,"resourceId","startDate","endDate")
function groupBill is used for grouping the bill lines on the basis of parameters which is passed to that function.
parameters which we can pass are "resourceId", "startDate", "endDate".
Example: $messageTool.groupBill($billList,"resourceId","startDate","endDate");
in this we have added resourceId , startDate and endDate as a grouping parameters the function will group the contents of bill lines according to this fields.
Note: (quantity, multiplier will not be used in the case of group bill).
Tips
- When using pdfs, add "@page { margin: 0; }" to the CSS. This will generate a pdf with smaller margins.
- The templates will be parsed using the Velocity template engine which is part of the Jakarta project from Apache. There are several keywords to use in the template which gives a lot of freedom to the template author. They are all explained in the user guide. The website can be found here:Velocity
Reservation distribution channel
Payment Link function $messageTool.generatePaymentLink(successUrl,cancelUrl,failUrl,paymentTerm,paymentMethods[])
parameters
successUrl/cancelUrl/failUrl - Client provided urls per payment status (success, cancelled, failed).
paymentTerm - this should be from first/all/due/Deposit one of this.
- First : Link will generate for the amount from first payment term from particular reservation. it will not check whether it's close or open
- All : Link will generate for the amount from all payment terms from particular reservation. it will not check whether it's close or open.
- Due : Link will generate for total due amount from all payment terms from particular reservation.
- Deposit : Link will generate for the amount of deposit payment term (it's checking the name of the payment term for this case ).
paymentMethods - payment method which need to be displayed on ingenico page.
Generate Barcode feature please Click here...
Olde Method Name : $messageUtil.generateBarcodeLink("BarcodeNumer") This is still working but only return barcode type CODE_39
New Method Name : $messageUtil.generateBarcodeLink("BarcodeNumber", "BarcodeType")
Where :
@Text : BarcodeNumber
@BarcodeType : Below is BarcodeType value we support in our tool
BarcodeType |
---|
"EAN_8" |
"UPC_E" |
"EAN_13" |
"UPC_A" |
"QR_CODE" |
"CODE_39" |
"CODE_93" |
"CODE_128" |
"ITF" |
"CODABAR" |
"DATA_MATRIX" |
"AZTEC" |
Note: We not support PDF_417 Type seems it create some error I already created issue in Zxing to resolved it so once it resolved we can provide PDF_417 Type as well
https://github.com/zxing/zxing/issues/1190
Note: Barcode type is case insensitive and if you pass any value apart from above list it select default CODE_39 type