Function DisplayAgentFee

Outputs the agent fee

DisplayAgentFee([PROPERTY_CODE],[TYPE],[ADD_VAT_AMOUNT],[ADD_VAT_TEXT],[FORCE_ASKING_PRICE],[SHORT_NUMBER])

Parameters

#TypePassingDefaultNameDescription/Comments
1stringrequiredn/aPROPERTY_CODEThe property code
2integeroptional3TYPEThe type of calculation where:
ValueComment
0Fee value or %
1Is % if true
2Return display string of fee value e.g. 2.50% or £2500
3full fee string (including admin charge)
4full fee string
Numbers including VAT
5Gross fee string including VAT and narrative
6Gross fee total over period returned as number
7Gross fee total over period with VAT text
8Net fee total over period returned as number
9VAT fee total over period returned as number
31Fee total for agency type 1
32Fee total for agency type 2
33Fee total for agency type 3
Forced AGENCYTYPE = 1
10Fee string including or plus VAT and narrative
11Fee total over period returned as number
21Fee total over period with VAT text
Forced AGENCYTYPE = 2
20Fee string including or plus VAT and narrative
12Fee total over period returned as number
22Fee total over period with VAT text
Forced AGENCYTYPE = 3
30Fee string including or plus VAT and narrative
13Fee total over period returned as number
23Fee total over period with VAT text
60Return 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
3booleanoptionalfalseADD_VAT_AMOUNTWhether or not to include the VAT amount
4booleanoptionalfalseADD_VAT_TEXTWhether or not to include the VAT text
5booleanoptionalfalseFORCE_ASKINGWhether or not to force using the asking price
6integeroptional2SHORT_NUMBERWhether 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)}}