Use the following procedure to define custom price calculations on resources and services.
1. Create your custom price calculator class
...
Name | Type | Purpose | |||
---|---|---|---|---|---|
reservation | B25__Reservation__c | Contains the service costs as shown on the reservation form when you have the setting 'Services have a price' enabled. | serviceCosts | DecimalContains the reservation as it is at the moment the calculate method is called. It will have all the fields populated that are visible on the reservation form. | |
serviceCosts | Decimal | Contains the service costs as shown on the reservation form when you have the setting 'Services have a price' enabled. |
In the calculate method you will be able to set any fields on the reservation property record, such as the B25__Subtotal__c field, in order to control the final price of the reservation, or to start an approval process.
...