Auto Actions: Difference between revisions
Jump to navigation
Jump to search
| Line 2,401: | Line 2,401: | ||
*Type = Amount | *Type = Amount | ||
*Description = Stripe Fee||[INVOICECHARGESNUM:-3%] | *Description = Stripe Fee||[INVOICECHARGESNUM:-3%] | ||
*Amount = 0 (leave as 0 so the value is set from the calculation in the Description field) | |||
*Per = Room | |||
*Period = one time | |||
*VAT = 19% (for example - enter the VAT amount if applicable) | |||
The fee/charge will be added the next time the auto actions run. | |||
</div> | |||
</div> | |||
====Add a new charge - City tax, calculated from number of nights/adults in a booking ==== | |||
</div> | |||
<div class="mw-collapsible-content"> | |||
Some locations have set a cap on the Tourist tax based on the number of adults, upto a max 7 nights, you can use the calculation below to test the values and apply the appropriate charge or the cap. | |||
This example will calculate the Price, testing if the 'number of nights' *'number of adults' *2 *1.03 is greater than 7 (nights) *'number of adults' *1.03 | |||
Then set the value = 7* number of adults *2 *1.03 | |||
ELSE set the value = 'number of nights' * 'number of adults' *2 *1.03 | |||
Special characters ^~ are required rather than :| as the | can be used as a separator in the Description field to set the Description|Status|Price|VAT | |||
Trigger tab: | |||
Time : | |||
*Trigger Event = Booking | |||
*Trigger Time = Immediate | |||
*Trigger Window = 1 day | |||
Booking Conditions: | |||
*Status = All not Cancelled | |||
Booking Source: | |||
*Booking Source = Direct | |||
Invoice tab: | |||
*Type = Amount | |||
*Description = Tourist Tax|Stayfee|[IF>^[NUMNIGHTS][*][NUMADULT][*]2[*]1.03^7[*][NUMADULT][*]2[*]1.03^7[*][NUMADULT][*]2[*]1.03~[NUMNIGHTS][*][NUMADULT][*]2[*]1.03] | |||
*Amount = 0 (leave as 0 so the value is set from the calculation in the Description field) | *Amount = 0 (leave as 0 so the value is set from the calculation in the Description field) | ||
*Per = Room | *Per = Room | ||