You are on page 1of 13

Build a park Management App

Ride Object and it’s Fields Details


Available Seats Details

Booked Seats Details


Note - Here Ride is Parent Object and Ticket is a child object, when
you make Master Details field then make through Ticket to Ride.

Ticket Object and it’s Fields Details


Discount Approval Status Fields Details
Total Cost Field Details

Formula for Total Cost Field –

IF( OR( Discount_Percent__c <= 0.30, AND( Discount_Percent__c > 0.30,


ISPICKVAL( Discount_Approval_Status__c , "Approved") ) ),
(Ride__r.Price_per_ticket__c * Number_of_Adult_seats__c) + (0.75 *
Ride__r.Price_per_ticket__c * Number_of_Child_seats__c ) - ((Ride__r.Price_per_ticket__c
* Number_of_Adult_seats__c) + (0.75 * Ride__r.Price_per_ticket__c *
Number_of_Child_seats__c))* Discount_Percent__c ,(Ride__r.Price_per_ticket__c *
Number_of_Adult_seats__c)+(0.75* Ride__r.Price_per_ticket__c *
Number_of_Child_seats__c ) )

Total Seats Booked Field Details


Formula for Total Seats Booked Field –

Number_of_Adult_seats__c + Number_of_Child_seats__c

Validation Rules on Ticket


Now, after making these Objects and it’s Fields, make a Custom
App “Park Management”.

Setup – App manager – New Lightning App – fill the required fields
and add – Home, Ride and Ticket object on it
After that, make a “Approval Process” on ‘Ticket Object’ ---- Use
Standard Setup Wizard for it.
Initial Submission Action

Approval Steps
Final Approval Action

You might also like