Difference between revisions of "Setting/ownerscpbooknametext"

From Beds24 Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
You can use template variables along with fixed text to customize the display of each booking.  
 
You can use template variables along with fixed text to customize the display of each booking.  
 +
 +
You can truncate the display if required. The truncation will start where you add the template variable:
 +
 +
[MAXCHAR:xx] - replace xx with the number of characters
 +
 +
[MAXCHARPERDAY:xx] - will truncate to these many characters per day, replace xx with the number of characters
  
  
Line 13: Line 19:
  
 
[UNITID] - ID of the unit (number)  
 
[UNITID] - ID of the unit (number)  
 +
 +
[UNITNAME] - unit names of all the assigned room types
  
 
[QTY] - shows quantity of units booked
 
[QTY] - shows quantity of units booked

Revision as of 16:15, 15 June 2021

You can use template variables along with fixed text to customize the display of each booking.

You can truncate the display if required. The truncation will start where you add the template variable:

[MAXCHAR:xx] - replace xx with the number of characters

[MAXCHARPERDAY:xx] - will truncate to these many characters per day, replace xx with the number of characters


These template variables are supported:

[BOOKID] - booking reference

[GROUPID] - booking reference of the master booking/

[STATUS] - status of booking (Values: 0=Cancelled, 1=Confirmed, 2=New, 3=Request, 4=Black)

[ROOMID] - room id number

[UNITID] - ID of the unit (number)

[UNITNAME] - unit names of all the assigned room types

[QTY] - shows quantity of units booked

[FIRSTNIGHT] - first night booked

[FIRSTNIGHT:+0 day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.

[LASTNIGHT] - last night booked

[LASTNIGHT:+0 day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.

[LEAVINGDAY] - check-out day

[LEAVINGDAY:+0 day{%A, %e %B, %Y}] - optional date offset and display format. The offset can be any plus or minus any number of days and the display can be any valid PHP strftime format string.

[NUMADULT] - number of adults

[NUMCHILD] - number of children

[NUMPEOPLE] - number of guests

[FLAG] - Flag text

[GUESTTITLE] - guest title

[GUESTFIRSTNAME] - first name of the guest

[GUESTNAME] - last name of the guest

[GUESTCOMPANY] - company name

[REFERENCE] - content of the booking reference field

[REFERRER] - Referrer

[INVOICEENAME] - invoicee name assigned to the booking


multiple lines are supported by adding new lines in the setting.