Total Rent and Deposit
For this example, we are going to total rent and deposit.
Totalling Rent + Deposit and displaying as £ format
Helper - moneyFmt
This helper formats the amount into £
Helper - add
This helper adds the two fields
Field - tenancy.totalRent
This field represents total rent for all the tenants in a tenancy
Field - tenancy.totalDeposit
This field represents total deposit for all the tenants in a tenancy
Complete string:
{{moneyFmt (add tenancy.totalRent tenancy.totalDeposit)}}
Total Rent and Deposit minus an amount
For this example, we are going to total rent and deposit and minus £500.
In a field, money amount is represented as pennies. For example £500 = 50000
Totalling Rent + Deposit - £500, and displaying as £ format
Helper - moneyFmt
This helper formats the amount into £
Helper - add
This helper adds the two fields
Field - tenancy.totalRent
This field represents total rent for all the tenants in a tenancy
Field - tenancy.totalDeposit
This field represents total deposit for all the tenants in a tenancy
Parameter
This is the amount that you wish to apply against the maths formula.
Complete string:
{{ moneyFmt (subtract (add tenancy.totalRent tenancy.totalDeposit ) 50000)}}