# 14. Orders- Admin Panel

### 14. Orders

The "Orders" section is a country-specific feature that manages all customer orders within the application. It encompasses different sub-menus to handle various aspects of the order process.

### Order Cycle

The order cycle for all orders typically begins with a "Pending" status, and as the payment information is confirmed, the order progresses to the "Confirmed" status. Subsequently, it can move through stages such as "Packed," "Shipped," and "Delivered." If an order is canceled, it is moved to the "Cancelled" orders category.

#### 14.1 All Orders

In the "All Orders" menu, all orders are displayed, including their status, payment status, payment type, and other order details.

* Displays orders with different statuses and payment types.
* Filter options for payment status, payment type, and order status are available.
* Search using order code, customer name, or mobile number.

**Filter Options:**

* Filter by Payment Status
* Filter by Payment Type
* Filter by Order Status

**Search Option:** Users can search orders using order codes, customer names, and mobile numbers.

#### 14.2 Confirmed Orders

The "Confirmed Orders" menu lists all orders with a "Confirmed" status. These orders must be either paid or Cash on Delivery (COD) orders. Each confirmed order has a "Bill Number" associated with it.

* Lists confirmed orders, which are typically paid or COD orders.
* Displays Bill Numbers and Order IDs generated from the payment gateway.
* Admin can change the status of confirmed orders to "Packed," "Shipped," or "Delivered."

#### 14.3 Packed Orders

In the "Packed Orders" menu, all orders in the "Packed" status are displayed. Similar to "Confirmed Orders," these must also be either paid or COD orders, and they have a "Bill Number."

* Lists packed orders, which are typically paid or COD orders.
* Displays Bill Numbers and Order IDs.
* Admin can change the status of packed orders to "Shipped" or "Delivered."

#### 14.4 Shipped Orders

The "Shipped Orders" menu lists orders in the "Shipped" status. Like previous statuses, these orders must be either paid or COD orders and have a "Bill Number."

* Lists shipped orders, which are typically paid or COD orders.
* Displays Bill Numbers and Order IDs.
* Requires courier details: Courier name, tracking number, and tracking URL.
* Admin can change the status of shipped orders to "Delivered."

**Additional Information:** Shipped orders include courier details, tracking numbers, and tracking URLs.

#### 14.5 Delivered Orders

In the "Delivered Orders" menu, all orders with a "Delivered" status are shown. These orders must be either paid or COD orders and have a "Bill Number."

* Lists delivered orders, typically paid or COD orders.
* Displays Bill Numbers and Order IDs.
* Requires courier details: Courier name, tracking number, and tracking URL.
* Order status can change from "Shipped" to "Delivered" automatically based on configured days or manually by the admin

**Additional Information:** Delivered orders include courier details, tracking numbers, and tracking URLs.

#### 14.6 Cancelled Orders

The "Cancelled Orders" menu displays all orders in the "Cancelled" status. This status is manually assigned, and all payment failed orders are automatically moved to this category.

* Lists all cancelled orders.
* Users can cancel COD orders before they're packed.
* Online payment orders can't be canceled but can be returned.
* Admin can change the status of any order.
* Courier details are needed for "Shipped" and "Delivered" statuses.

**Additional Information:** Admins can change the status of any order to any other status.

**Order Details:**

* Contains comprehensive order information:
  * Customer Info (Name, Mobile Number, Email)
  * Delivery Info (Order status)
  * Payment Info (Payment mode: COD/Online)
  * Bill Number
  * Order Code (Unique identifier)
* Admin can change the delivery status.
* Bill Number is auto-generated for GST/VAT purposes.

**Order Code Format:**

* It comprises the year (YYYY), day (DD), month (MM), hour (HH), minute (MM), second (SS), and two random numbers.
* An alphabet O stands for online payment, and C for cash on delivery.
* Example: 20230401-12012210C (COD order placed on March 1, 2023, at 12:01:10)

**Bill Number Format:**

* It consists of an alphabet followed by the year and month, a hyphen, and an auto-incremental number.
* Example: A202304-1 (For a bill generated in April 2023)

**Order Log:**

* The order log displays the timestamp of the entire order process.
* It includes the complete order cycle with timestamps and the responsible staff member.

### 14.7 Order Returns

The "Order Returns" page can be accessed under the "Order" menu, specifically under "Order Return."

* Orders and returns are specific to each country and are not accessible in other countries.
* The order cycle starts with the default status "Pending." Upon successful payment, an order becomes "Confirmed." It progresses to "Packed," "Shipped," "Delivered," or "Cancelled" based on the fulfillment process.
* The status of an order can only be changed manually.

Customers can initiate returns for delivered orders. Each order return is associated with a unique "Order Return ID." Initially, all return requests are categorized as "Pending."

**Admin Action:** Admins have the authority to either accept or reject return orders, facilitating efficient return management and enhancing the customer experience.
