Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Use the following procedure to define custom price calculations on resources and services.

1. Create your custom price calculator class

...

Decimal
NameTypePurpose

reservation

B25__Reservation__c
Contains the service costs as shown on the reservation form when you have the setting 'Services have a price' enabled.
serviceCostsContains 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.
serviceCostsDecimalContains 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.

...