getPrice

Reading Time: 1 minute

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();
};

There are no comments yet.
Subscribe to our newsletter
or Contact us!
Please note that by subscribing to our newsletter, you agree to receive regular email messages from VCC Live® about service related news and updates. By subscribing to our newsletter, you also agree that VCC Live® will use your data in accordance with the applicable Privacy Policy until you unsubscribe from the newsletter.