Outlet pagination and sub total value

mail@pastecode.io avatar
unknown
plain_text
a year ago
10 kB
2
Indexable
{
    "status": "SUCCESS",
    "data": {
        "reports": [
            {
                "item_id": "item_01HCEWXF34NRZDE2PWED95N65A",
                "product": "coffee",
                "unit_price": 10,
                "quantity": 384,
                "delivered_quantity": 3,
                "order_id": "ord_01HCF19ZX4715Z6HEZRXMW5SH9",
                "order_number": "PO-2",
                "status": "completed",
                "order_date": "2023-10-11T09:32:54.565Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "10",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 0.5,
                    "selected_quantity": "30",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCEYSRR5H8JJGAT02W9H7CEA",
                "product": "pepsi",
                "unit_price": 30,
                "quantity": 10,
                "delivered_quantity": null,
                "order_id": "ord_01HCVWEBTADMDHDWR56NZFWCAP",
                "order_number": "PO-91",
                "status": "placed",
                "order_date": "2023-10-16T09:18:02.571Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Fruits",
                "sub_sub_category": "Melon",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Phawhan Business",
                "company_name": "Phawhan Business",
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCEWX0DD3MRVWM710A0WZ8HT",
                "product": "noodles",
                "unit_price": 20,
                "quantity": 768,
                "delivered_quantity": null,
                "order_id": "ord_01HCF19ZZKQ00CR1TSZ3QZ6SM1",
                "order_number": "PO-3",
                "status": "completed",
                "order_date": "2023-10-11T09:32:54.643Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "5",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": null,
                "company_name": null,
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCHSNNXBJHCVS004NZZ59P8Q",
                "product": "cheese",
                "unit_price": 30,
                "quantity": 1,
                "delivered_quantity": null,
                "order_id": "ord_01HCHSRMBBP52ZGTQGFPJG2206",
                "order_number": "PO-35",
                "status": "canceled",
                "order_date": "2023-10-12T11:18:48.939Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": null,
                "company_name": null,
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCKZ4GXVTTWXPFZWBTZ64C4G",
                "product": "cheese",
                "unit_price": 30,
                "quantity": 6,
                "delivered_quantity": null,
                "order_id": "ord_01HCMD6J1J2CCHFY00HY01KF2Q",
                "order_number": "PO-68",
                "status": "placed",
                "order_date": "2023-10-13T11:36:57.138Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": null,
                "company_name": null,
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCMCKSZKJKPEBE5FK1T646YF",
                "product": "Dragon Fruit",
                "unit_price": 200,
                "quantity": 11,
                "delivered_quantity": null,
                "order_id": "ord_01HCMD6J1J2CCHFY00HY01KF2Q",
                "order_number": "PO-68",
                "status": "placed",
                "order_date": "2023-10-13T11:36:57.138Z",
                "category": null,
                "sub_category": null,
                "sub_sub_category": null,
                "metadata": null,
                "ware_house_name": null,
                "company_name": null,
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCPYR258NEB22NZRNSTGH58V",
                "product": "bottle",
                "unit_price": 30,
                "quantity": 18,
                "delivered_quantity": null,
                "order_id": "ord_01HCPYSW0CDPVBQW34AKAWFNW5",
                "order_number": "PO-89",
                "status": "placed",
                "order_date": "2023-10-14T11:23:04.588Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Phawhan Business",
                "company_name": "Phawhan Business",
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCHN1B7MMVZHCQSGKYC5PD83",
                "product": "cheese",
                "unit_price": 30,
                "quantity": 23,
                "delivered_quantity": null,
                "order_id": "ord_01HCHN422Z43DZTPX5H542V54G",
                "order_number": "PO-20",
                "status": "canceled",
                "order_date": "2023-10-12T09:57:40.576Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": null,
                "company_name": null,
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCHPNZA5VFJXD4DD0M2W95XB",
                "product": "cheese",
                "unit_price": 30,
                "quantity": 6,
                "delivered_quantity": null,
                "order_id": "ord_01HCHSFCRP57GN4D136WC4YJB9",
                "order_number": "PO-33",
                "status": "completed",
                "order_date": "2023-10-12T11:13:46.262Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": null,
                "company_name": null,
                "outlet_name": "Naveen Business"
            },
            {
                "item_id": "item_01HCHPP5JCMCZ8WJFW9T5ECG2H",
                "product": "coca-cola",
                "unit_price": 30,
                "quantity": 6,
                "delivered_quantity": null,
                "order_id": "ord_01HCHSFCRRXWW6F9H8BNYRV19D",
                "order_number": "PO-33",
                "status": "shipped",
                "order_date": "2023-10-12T11:13:46.264Z",
                "category": "Fruits & Vegetables",
                "sub_category": "Vegetables",
                "sub_sub_category": "Garlic & Ginger",
                "metadata": {
                    "offer": "33",
                    "selected_unit": "pro_unit_01HCEHB6R4AX8BJ6HK5G9MT9VW",
                    "vat_percentage": 1.5,
                    "selected_quantity": "23",
                    "equal_to_unit_name": "ml",
                    "ordering_option_unit_name": "bowl"
                },
                "ware_house_name": "Aditya",
                "company_name": "Aditya",
                "outlet_name": "Naveen Business"
            }
        ],
        "count": 35,
        "sub_total": "42748"
    }
}