getPrice

Gets the agent commission value of one or all dispositions.

Description

vcc.getPrice([field: string]): number

Parameters

field
Optional. The name of the disposition. If it is missing, it will return the total commission of all dispositions.

Return values

The price.

Example

Display the commission value to the agent if they select a value.

$('page', 'amount').afterSetData = function() {
    const price = vcc.getPrice('amount');
    vcc.setFieldValue('price', price);
    vcc.getController('page', 'price').refresh();
};

There are no comments yet.

Comment

Subscribe to our newsletter
or Contact us!