# Manage Bookings

## A. **Manage Bookings**

**o**  The user can take a printout of the bookings

**o**   Apply search and multi-search

**o**  Add new booking with **(+) icon.**

**o**   Apply delete and multi-delete.

**o The user** can view different payment and booking statuses based on the action taken for each.

**o The** Admin can see the booking type, like Single or Round.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FkCUWtev956OtvkoIQg6Z%2Fimage.png?alt=media&#x26;token=61d05b44-07a3-4a65-a87a-63c25dbe8251" alt=""><figcaption></figcaption></figure>

## **B. Action -** <img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FGQDwlKY9s19lJhJPuQu5%2Fimage.png?alt=media&#x26;token=57005ba9-d1fb-48be-9eca-91942b69b256" alt="" data-size="line"> **Setting**

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FgePoLwno8uZQBC5DRTgK%2Fimage.png?alt=media&#x26;token=e83d3128-8dd5-489f-b3a8-901deb000435" alt=""><figcaption></figcaption></figure>

### Assign Driver

The admin user can easily assign a driver from here by selecting the driver's name. They can also view detailed vehicle information.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FQeOIzJSGn6g0y0Vzlhl6%2Fimage.png?alt=media&#x26;token=5cfe4f1e-e81d-47de-a622-e6dda6175dd3" alt=""><figcaption></figcaption></figure>

### Edit Booking <img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FNvHimjdrBez4fSKcv4H0%2Fedit.png?alt=media&#x26;token=59204626-362b-46ad-b31c-4e6260037134" alt="" data-size="line">

The user can edit booking details from here.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FTQobKUVlWZlZC72kAwns%2Fimage.png?alt=media&#x26;token=dc1d7436-4516-4030-8d2e-5c3d9b55ce4d" alt=""><figcaption></figcaption></figure>

### **Cancel Booking**  <img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FuoQotlZIETHOQ8CdyueD%2Fcancel-1294426_1280.png?alt=media&#x26;token=667d88b0-7354-4aa7-879d-9e20462e8fe0" alt="" data-size="line">

To cancel a booking, follow steps below.

**Step - 1**

First user is required to add reasons for booking cancellation from setting - reason for cancellation to cancel booking.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FmXfySyjmq9B2ha0IeGJS%2FAdd%20reason%20for%20cancellation.png?alt=media&#x26;token=ecec7a49-7414-440f-8f9b-4074407b5b1c" alt=""><figcaption></figcaption></figure>

**Step - 2**

After completing the first step, admin can now view all the added reasons and effortlessly cancel their bookings.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FKd3jPhQyqIFcLZgO6Bpd%2FUntitled%20design%20(2).png?alt=media&#x26;token=4adacb52-f911-49e8-9b0f-79acb03cc389" alt=""><figcaption></figcaption></figure>

### **Delete Booking**  <img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2F8s4AMLkKX8vFLvA8aQ5r%2Fdelete.png?alt=media&#x26;token=9057549c-4276-49ab-94eb-bec7f6249798" alt="" data-size="line">

Admin can easily delete the booking from this action icon.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FQtBN8uosFSkfBOdaT7xv%2Fdelete%20bookings.jpg?alt=media&#x26;token=d291039d-c461-4e19-b46a-7b4e91bd5430" alt=""><figcaption></figcaption></figure>

### **Generate Invoice** <img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2Fd6NPuqSCSlXWOfSxOJtu%2Finvoice.png?alt=media&#x26;token=25a9da59-3fa7-4cf7-b419-883c3501ecf5" alt="" data-size="line">

Before adding details, the user is required to set some criteria from the settings module.

The image below guides the user to generate an invoice for a particular booking.

{% hint style="warning" %}
Once the invoice is generated by the admin, the customer will receive an email with the created invoice
{% endhint %}

**Image 1.**

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2F0c0ClvFfQvk0KXZa4F2i%2FAdd%20reason%20for%20cancellation%20(4).png?alt=media&#x26;token=3aa301e5-6b31-416d-a850-d602d99e6c49" alt=""><figcaption></figcaption></figure>

### <mark style="background-color:green;">Notes</mark>

o   **Km (mileage)** - Displayed value (Km) guides the admin to decide the rate of ride; however, here, **10 km** can be modified by the admin while generating the invoice.

,o   **Waiting time (in minutes)** - Add waiting time (5 min here), and charges for an extra **5 min** would be added to the total amount.

o   **Tax charges** - Set tax charges from **Setting Module -> General Settings ( as displayed below in image 2)** because it cannot be modified by the admin directly from here.

o   **Amount** - Displayed amount (₹500) is the default amount, which is calculated on the basis of the data inserted in **Setting Module -> General Settings;** however, it can be changed by the admin directly from here if required.

**Image 2.**

User is required to set base or default charges according to the vehicle type, km & day type. Additionally, waiting charges are to be set per minute.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FE25rZAeur8Fia9cgHNKQ%2FAdd%20reason%20for%20cancellation%20(6).png?alt=media&#x26;token=add594ab-b375-4b36-b11a-c2b6bf6c8a93" alt=""><figcaption></figcaption></figure>

## Driver Availability

Driver availability is a feature that allows the admin to know whether a driver is free before assigning a booking. Once the driver updates their availability in the app, the admin can see it as online or offline. However, the admin can still assign the driver to a booking if needed.

### Image -1

Admin panel

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FkiDwzOmW7J4UvM4DOcUF%2FDrivers-%20Assign%20driver.png?alt=media&#x26;token=77412412-6386-44c9-bdd6-55fcad5a306b" alt=""><figcaption></figcaption></figure>

### Image -2

Mobile app

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FTILUo8Tkt9ESomHdGAF1%2FDrivers-%20Assign%20driver%20(1).png?alt=media&#x26;token=bb09ef5a-cf28-4b7a-9e09-480a193ac11d" alt=""><figcaption></figcaption></figure>

## How to calculate the booking price???

### Please watch the video to learn how the booking amount is calculated.

{% embed url="<https://drive.google.com/file/d/196HrBkzsULh1TYBCRTlOr-8vz7BFKLtm/view?usp=drive_link>" %}

## Let's understand with the explanation below!!!

In the fare settings, the admin has configured the pricing for the **sedan vehicle type** as follows:

* **Base Price:** ₹503 for the first **10 km**
* **Standard Fare:** ₹20 per km for any additional distance
* **Waiting Time Charge:** ₹2 per minute

### Example Fare Calculation for a 20 km Trip (Weekday, Sedan Vehicle Type)

<table><thead><tr><th>Particular</th><th width="267.0909423828125">Calculation</th><th>Amount </th></tr></thead><tbody><tr><td>Initial 10 KM</td><td>Base Fare</td><td>₹503</td></tr><tr><td>Remaining 10 km</td><td>10 km × ₹20 (Standard Fare per km)</td><td>₹200</td></tr><tr><td>Waiting Tim</td><td>2 min × ₹2 per min</td><td>₹4</td></tr><tr><td>Subtotal</td><td></td><td>₹707</td></tr><tr><td>Service Tax (12%)</td><td>₹707× 12%</td><td>₹84.84</td></tr><tr><td><strong>Total Booking Price</strong></td><td></td><td><strong>₹791.84</strong></td></tr></tbody></table>

### Complete Journey

After generating the invoice, the admin can see two options, i.e, complete journey and receipt for completed journey.

<div><figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FQuN3GHs8ZnaWkxwueYvD%2FAdd%20reason%20for%20cancellation%20(7).png?alt=media&#x26;token=18be8638-8a66-4dea-a137-7c3d060ca11e" alt=""><figcaption></figcaption></figure> <figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2F5qo1YaTo9qenjFDDCFUH%2Fscreencapture-f6-hyvikk-space-admin-bookings-2023-09-18-17_30_00.png?alt=media&#x26;token=2f88a346-dde0-41b2-b4ee-184abed02ef6" alt=""><figcaption><p>Complete Journey</p></figcaption></figure></div>

### Receipt&#x20;

Admin can generate a receipt for the booking once the ride is finished successfully.

<div><figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2FZ0KIIHebOsMDOEJCLNQ5%2FAdd%20reason%20for%20cancellation%20(7).png?alt=media&#x26;token=7518f17a-bf6e-4083-8968-1920f5efe5bc" alt=""><figcaption></figcaption></figure> <figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2Frr0A60bh3rHSz9JwKTSo%2Fscreencapture-f6-hyvikk-space-admin-bookings-receipt-1-2023-09-18-17_35_09.png?alt=media&#x26;token=442d2dc7-dc5d-44af-a570-a0a89b77a647" alt=""><figcaption><p>Receipt</p></figcaption></figure></div>

### Make payment

Once the invoice is generated, End (user can make payment for the ride.

<figure><img src="https://598608028-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LtZONQkdJdM-241mjfe%2Fuploads%2F4OnUqvU9WUsM9OAY7yG1%2FAdd%20reason%20for%20cancellation%20(9).png?alt=media&#x26;token=09f45d07-4ab1-40db-a337-e8def50f8b6e" alt=""><figcaption></figcaption></figure>

## Booking Status and Payment Status:

* &#x20;**Pending:** The booking has been created, but a driver has not been assigned yet.
* **Upcoming:** The booking has been created, and a driver has been assigned.
* **Ongoing:** The booking has been created, a driver is assigned, and the invoice has been generated (regardless of whether the payment is completed, an Advance payment from the customer, or not).
* **Completed:** The journey has been completed following the booking.

| Details                                                                                                                          | Payment status | Booking status |
| -------------------------------------------------------------------------------------------------------------------------------- | -------------- | -------------- |
| When a booking is created from the admin panel and a driver is assigned.                                                         | Pending        | Upcoming       |
| When a booking is created from the frontend and a driver is assigned.                                                            | Pending        | Upcoming       |
| When a booking is created by a customer from the frontend and no driver is assigned yet.                                         | Pending        | Pending        |
| When a booking is created by a customer from the frontend using the payment method (cash/Stripe).                                | Paid           | Pending        |
| When an invoice is generated for a booking with pending payment.                                                                 | Pending        | Ongoing        |
| When a booking is created from the admin or frontend, the ride is completed, but the payment is still pending from the customer. | Pending        | Completed      |
| When a booking is created from the admin or frontend, and both the payment and ride are completed.                               | Paid           | Completed      |
