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 the disposition is missing, it returns the total commission of all dispositions.
Return values
The price.
Example
You want to 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();
};
Comments
Can’t find what you need? Use the comment section below to connect with others, get answers from our experts, or share your ideas with us.
There are no comments yet.