Function AgentSaleValue

Calculates the agent sale value

AgentSaleValue([PROPERTY_CODE],[TYPE],[OTHER_FEES],[VAT_CALC])

Parameters

#TypePassingDefaultNameDescription/Comments
1stringrequiredn/aPROPERTY_CODEThe property code
2integeroptional0TYPEThe type of calculation where:
ValueComment
0The actual fee
1The let fee - AGENCYF1
2The joint agent fee - AGENCYF2
3The multi agent fee - AGENCYF3
4The commission split fee - COMSPLIT
6The renewal fee - FEENEW
10No fee, taken from [OTHER_FEES]
11The agreement fee only - AGREEFEE
12The inventory fee only - AGREEFEE2
13The reference fee only - AGREEFEE3
3integeroptional0OTHER_FEESThe other fees where:
ValueComment
1Add agreement fee - AGREEFEE
2Add agreement & inventory fee - AGREEFEE & AGREEFEE2
3Add agreement & inventory & reference fee - AGREEFEE & AGREEFEE2 & AGREEFEE3
4Add agreement & reference fee - AGREEFEE & AGREEFEE3
5Add inventory & reference fee - AGREEFEE2 & AGREEFEE3
4integeroptional0VAT_CALCThe VAT calculation type where:
ValueComment
0/1No VAT
2VAT
3Gross

Returns

The fee number depending on the type


Examples

To calculate the agent sale value

{{AgentSaleValue(ALIAS.PROPCODE, 1)}}