Versions Compared

Key

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

...

...

Info

In order keep configuration simple, please perform the following steps in Salesforce Classic (Booker25 is Lightning-Ready, you may afterwards use the app in Salesforce Lightning as you please)

...

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

1. Create your custom price calculator class

...

As long as this setting exists, Booker25 will execute the calculate method every time the reservation form gets rerendered or when the reservation is saved.

3. (Optional) Control which fields trigger the calculation

By default, the following Reservation fields trigger the calculation whenever their value changes on the form: Start, End, Base Price, Calculation Method, and Quantity. If you want to change which fields trigger the calculation, create a class that implements the interface B25.Util_PluginManager.ReservationPriceFields. Implementing that interface means the class must have a method with the following signature:

Set<String> getDependantFieldNames(B25.Util_PluginManager.ReservationPriceData)

This method will be called when the calendar loads, to determine which fields trigger a calculation. To let Booker25 know about the existence of the class, create a new custom setting just as in step 2, except this time name the new record Reservation Price Fields Class. For String Value enter the name of the class you created.

Related articles

Filter by label (Content by label)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@101b6
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel in ( "calculation" , "price" , "pricecalculation" , "pricing" ) and type = "page" and space = "BPD"
labelsprice pricing calculation pricecalculation

...