Function AgentFee

Calculates the agent fee

AgentFee([PROPERTY_CODE],[TYPE],[ADD_VAT_AMOUNT],[FORCE_ASKING_PRICE])

Parameters

#TypePassingDefaultNameDescription/Comments
1stringrequiredn/aPROPERTY_CODEThe property code
2integeroptional0TYPESee "DisplayAgentFee" function for possible values
3booleanoptionalfalseADD_VAT_AMOUNTWhether or not to include the VAT amount
4booleanoptionalfalseFORCE_ASKINGWhether 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)}}