Function AgentFee
Calculates the agent fee
AgentFee([PROPERTY_CODE],[TYPE],[ADD_VAT_AMOUNT],[FORCE_ASKING_PRICE])
Parameters
# | Type | Passing | Default | Name | Description/Comments |
---|---|---|---|---|---|
1 | string | required | n/a | PROPERTY_CODE | The property code |
2 | integer | optional | 0 | TYPE | See "DisplayAgentFee" function for possible values |
3 | boolean | optional | false | ADD_VAT_AMOUNT | Whether or not to include the VAT amount |
4 | boolean | optional | false | FORCE_ASKING | Whether or not to force using the asking price |
Returns
The fee number depending on the type
Examples
To calculate the agent fee percentage
{{AgentFee(ALIAS.PROPCODE, 60)}}