Outputs the agent fee
DisplayAgentFee([PROPERTY_CODE],[TYPE],[ADD_VAT_AMOUNT],[ADD_VAT_TEXT],[FORCE_ASKING_PRICE],[SHORT_NUMBER])
Parameters
| # | Type | Passing | Default | Name | Description/Comments |
|---|
| 1 | string | required | n/a | PROPERTY_CODE | The property code |
| 2 | integer | optional | 3 | TYPE | The type of calculation where: | Value | Comment |
|---|
| 0 | Fee value or % | | 1 | Is % if true | | 2 | Return display string of fee value e.g. 2.50% or £2500 | | 3 | full fee string (including admin charge) | | 4 | full fee string | | Numbers including VAT | | 5 | Gross fee string including VAT and narrative | | 6 | Gross fee total over period returned as number | | 7 | Gross fee total over period with VAT text | | 8 | Net fee total over period returned as number | | 9 | VAT fee total over period returned as number | | 31 | Fee total for agency type 1 | | 32 | Fee total for agency type 2 | | 33 | Fee total for agency type 3 | | Forced AGENCYTYPE = 1 | | 10 | Fee string including or plus VAT and narrative | | 11 | Fee total over period returned as number | | 21 | Fee total over period with VAT text | | Forced AGENCYTYPE = 2 | | 20 | Fee string including or plus VAT and narrative | | 12 | Fee total over period returned as number | | 22 | Fee total over period with VAT text | | Forced AGENCYTYPE = 3 | | 30 | Fee string including or plus VAT and narrative | | 13 | Fee total over period returned as number | | 23 | Fee total over period with VAT text | | 60 | Return as per 1-9 using renew fee value e.g. 2.50% or £2500 of Renewal Fee i.e. 61,62,63,64,64,66,67,68,69 |
|
| 3 | boolean | optional | false | ADD_VAT_AMOUNT | Whether or not to include the VAT amount |
| 4 | boolean | optional | false | ADD_VAT_TEXT | Whether or not to include the VAT text |
| 5 | boolean | optional | false | FORCE_ASKING | Whether or not to force using the asking price |
| 6 | integer | optional | 2 | SHORT_NUMBER | Whether to shorten the number: 0/1 = No short numbers, 2 = Percentage only, 3 = All numbers |
Returns
The agent fee for display
Examples
Example to display the agent fee
{{DisplayAgentFee(ALIAS.PROPCODE,3)}}