Template Variables: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
Line 6: Line 6:


The date variables can have an optional offset value of a number of days added after a colon, for example '''[FIRSTNIGHT:-3 days]'''
The date variables can have an optional offset value of a number of days added after a colon, for example '''[FIRSTNIGHT:-3 days]'''
The price variables can have an optional offset value applied which can be a percentage or fixed amount with or without minus sign added after a colon, for example '''[PRICE:-10]''' or '''[INVOICEBALANCE:25%]'''


==Template Variables==
==Template Variables==
Line 51: Line 53:


'''[PRICE]''' - Price  
'''[PRICE]''' - Price  
'''[PRICE:10%]''' - Percentage value of Price
'''[PRICE:-10]''' - Price with offset amount


'''[AVPRICE]''' - Average Nightly Price  
'''[AVPRICE]''' - Average Nightly Price  
'''[AVPRICE:20%]''' - Percentage value of Average Nightly Price
'''[AVPRICE:15]''' - Average Nightly Price with offset amount


'''[GUESTNAME]''' - name of the guest
'''[GUESTNAME]''' - name of the guest
Line 99: Line 109:


'''[INVOICEBALANCE]''' - invoice balance
'''[INVOICEBALANCE]''' - invoice balance
'''[INVOICEBALANCE:50%]''' - percentage of invoice balance
'''[INVOICEBALANCE:-100]''' - invoice balance with offset amount


'''[INVOICETABLE]''' - invoice table
'''[INVOICETABLE]''' - invoice table