[
  {
    "_id": "6a85e33f277a43e1d0bd90ed",
    "billNumber": "BILL-20260819-000001",
    "date": "2026-08-19T17:09:19.020Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e5d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 1",
        "parentItem": "6a85e33f277a43e1d0bd9aed",
        "quantity": 4.75,
        "unitprice": 4.75,
        "sellingPrice": 4.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 22.56,
    "totalRevenue": 22.56,
    "totalGrossProfit": 4.06,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359021,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e5e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_1",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90ee",
    "billNumber": "BILL-20260818-000002",
    "date": "2026-08-18T17:09:19.021Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e5f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 2",
        "parentItem": "6a85e33f277a43e1d0bd9aee",
        "quantity": 8.5,
        "unitprice": 8.5,
        "sellingPrice": 8.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e60",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 3",
        "parentItem": "6a85e33f277a43e1d0bd9aef",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 222.31,
    "totalRevenue": 222.31,
    "totalGrossProfit": 40.02,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359021,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e61",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359021,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e62",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_2",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90ef",
    "billNumber": "BILL-20260817-000003",
    "date": "2026-08-17T17:09:19.021Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e63",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 3",
        "parentItem": "6a85e33f277a43e1d0bd9aef",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e64",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 4",
        "parentItem": "6a85e33f277a43e1d0bd9af0",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e65",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 5",
        "parentItem": "6a85e33f277a43e1d0bd9af1",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 796.13,
    "totalRevenue": 796.13,
    "totalGrossProfit": 143.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359021,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e66",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359021,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e67",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359021,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e68",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_3",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f0",
    "billNumber": "BILL-20260816-000004",
    "date": "2026-08-16T17:09:19.021Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e69",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 4",
        "parentItem": "6a85e33f277a43e1d0bd9af0",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 256,
    "totalRevenue": 256,
    "totalGrossProfit": 46.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e6a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_4",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f1",
    "billNumber": "BILL-20260815-000005",
    "date": "2026-08-15T17:09:19.022Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e6b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 5",
        "parentItem": "6a85e33f277a43e1d0bd9af1",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e6c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 6",
        "parentItem": "6a85e33f277a43e1d0bd9af2",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 942.31,
    "totalRevenue": 942.31,
    "totalGrossProfit": 169.62,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e6d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e6e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_5",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f2",
    "billNumber": "BILL-20260814-000006",
    "date": "2026-08-14T17:09:19.022Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e6f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 6",
        "parentItem": "6a85e33f277a43e1d0bd9af2",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e70",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 7",
        "parentItem": "6a85e33f277a43e1d0bd9af3",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e71",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 8",
        "parentItem": "6a85e33f277a43e1d0bd9af4",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 2255.81,
    "totalRevenue": 2255.81,
    "totalGrossProfit": 406.05,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e72",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e73",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e74",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_6",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f3",
    "billNumber": "BILL-20260813-000007",
    "date": "2026-08-13T17:09:19.022Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e75",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 7",
        "parentItem": "6a85e33f277a43e1d0bd9af3",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 742.56,
    "totalRevenue": 742.56,
    "totalGrossProfit": 133.66,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e76",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_7",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f4",
    "billNumber": "BILL-20260812-000008",
    "date": "2026-08-12T17:09:19.022Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e77",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 8",
        "parentItem": "6a85e33f277a43e1d0bd9af4",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e78",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 9",
        "parentItem": "6a85e33f277a43e1d0bd9af5",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 2168.56,
    "totalRevenue": 2168.56,
    "totalGrossProfit": 390.34,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e79",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359022,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e7a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_8",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f5",
    "billNumber": "BILL-20260811-000009",
    "date": "2026-08-11T17:09:19.022Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e7b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 9",
        "parentItem": "6a85e33f277a43e1d0bd9af5",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e7c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 10",
        "parentItem": "6a85e33f277a43e1d0bd9af6",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e7d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 11",
        "parentItem": "6a85e33f277a43e1d0bd9af7",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 4474.88,
    "totalRevenue": 4474.88,
    "totalGrossProfit": 805.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359023,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e7e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359023,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e7f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359023,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e80",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_9",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f6",
    "billNumber": "BILL-20260810-000010",
    "date": "2026-08-10T17:09:19.023Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e81",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 10",
        "parentItem": "6a85e33f277a43e1d0bd9af6",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1482.25,
    "totalRevenue": 1482.25,
    "totalGrossProfit": 266.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359023,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e82",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_10",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f7",
    "billNumber": "BILL-20260809-000011",
    "date": "2026-08-09T17:09:19.023Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e83",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 11",
        "parentItem": "6a85e33f277a43e1d0bd9af7",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e84",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 12",
        "parentItem": "6a85e33f277a43e1d0bd9af8",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 3901.06,
    "totalRevenue": 3901.06,
    "totalGrossProfit": 702.19,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359023,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e85",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359023,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e86",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_11",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f8",
    "billNumber": "BILL-20260808-000012",
    "date": "2026-08-08T17:09:19.023Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e87",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 12",
        "parentItem": "6a85e33f277a43e1d0bd9af8",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e88",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 13",
        "parentItem": "6a85e33f277a43e1d0bd9af9",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e89",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 14",
        "parentItem": "6a85e33f277a43e1d0bd9afa",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 7453.31,
    "totalRevenue": 7453.31,
    "totalGrossProfit": 1341.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e8a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e8b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e8c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_12",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90f9",
    "billNumber": "BILL-20260807-000013",
    "date": "2026-08-07T17:09:19.026Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e8d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 13",
        "parentItem": "6a85e33f277a43e1d0bd9af9",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 2475.06,
    "totalRevenue": 2475.06,
    "totalGrossProfit": 445.51,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e8e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_13",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90fa",
    "billNumber": "BILL-20260806-000014",
    "date": "2026-08-06T17:09:19.026Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e8f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 14",
        "parentItem": "6a85e33f277a43e1d0bd9afa",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e90",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 15",
        "parentItem": "6a85e33f277a43e1d0bd9afb",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 6139.81,
    "totalRevenue": 6139.81,
    "totalGrossProfit": 1105.17,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e91",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e92",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_14",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90fb",
    "billNumber": "BILL-20260805-000015",
    "date": "2026-08-05T17:09:19.026Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e93",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 15",
        "parentItem": "6a85e33f277a43e1d0bd9afb",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e94",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 16",
        "parentItem": "6a85e33f277a43e1d0bd9afc",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e95",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 17",
        "parentItem": "6a85e33f277a43e1d0bd9afd",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 11191.13,
    "totalRevenue": 11191.13,
    "totalGrossProfit": 2014.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e96",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e97",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e98",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_15",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90fc",
    "billNumber": "BILL-20260804-000016",
    "date": "2026-08-04T17:09:19.026Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e99",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 16",
        "parentItem": "6a85e33f277a43e1d0bd9afc",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 3721,
    "totalRevenue": 3721,
    "totalGrossProfit": 669.78,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e9a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_16",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90fd",
    "billNumber": "BILL-20260803-000017",
    "date": "2026-08-03T17:09:19.026Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e9b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 17",
        "parentItem": "6a85e33f277a43e1d0bd9afd",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9e9c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 18",
        "parentItem": "6a85e33f277a43e1d0bd9afe",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 8884.81,
    "totalRevenue": 8884.81,
    "totalGrossProfit": 1599.27,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e9d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359026,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9e9e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_17",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90fe",
    "billNumber": "BILL-20260802-000018",
    "date": "2026-08-02T17:09:19.026Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9e9f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 18",
        "parentItem": "6a85e33f277a43e1d0bd9afe",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ea0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 19",
        "parentItem": "6a85e33f277a43e1d0bd9aff",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ea1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 20",
        "parentItem": "6a85e33f277a43e1d0bd9b00",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 15688.31,
    "totalRevenue": 15688.31,
    "totalGrossProfit": 2823.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ea2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ea3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ea4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_18",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd90ff",
    "billNumber": "BILL-20260801-000019",
    "date": "2026-08-01T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ea5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 19",
        "parentItem": "6a85e33f277a43e1d0bd9aff",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 5220.06,
    "totalRevenue": 5220.06,
    "totalGrossProfit": 939.61,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ea6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_19",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9100",
    "billNumber": "BILL-20260731-000020",
    "date": "2026-07-31T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ea7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 20",
        "parentItem": "6a85e33f277a43e1d0bd9b00",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ea8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 21",
        "parentItem": "6a85e33f277a43e1d0bd9b01",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 12136.06,
    "totalRevenue": 12136.06,
    "totalGrossProfit": 2184.49,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ea9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eaa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_20",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9101",
    "billNumber": "BILL-20260730-000021",
    "date": "2026-07-30T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9eab",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 21",
        "parentItem": "6a85e33f277a43e1d0bd9b01",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9eac",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 22",
        "parentItem": "6a85e33f277a43e1d0bd9b02",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ead",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 23",
        "parentItem": "6a85e33f277a43e1d0bd9b03",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 20944.88,
    "totalRevenue": 20944.88,
    "totalGrossProfit": 3770.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eaf",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eb0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_21",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9102",
    "billNumber": "BILL-20260729-000022",
    "date": "2026-07-29T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9eb1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 22",
        "parentItem": "6a85e33f277a43e1d0bd9b02",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 6972.25,
    "totalRevenue": 6972.25,
    "totalGrossProfit": 1255,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eb2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_22",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9103",
    "billNumber": "BILL-20260728-000023",
    "date": "2026-07-28T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9eb3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 23",
        "parentItem": "6a85e33f277a43e1d0bd9b03",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9eb4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 24",
        "parentItem": "6a85e33f277a43e1d0bd9b04",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 15893.56,
    "totalRevenue": 15893.56,
    "totalGrossProfit": 2860.84,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eb5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eb6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_23",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9104",
    "billNumber": "BILL-20260727-000024",
    "date": "2026-07-27T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9eb7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 24",
        "parentItem": "6a85e33f277a43e1d0bd9b04",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9eb8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 25",
        "parentItem": "6a85e33f277a43e1d0bd9b05",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9eb9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 26",
        "parentItem": "6a85e33f277a43e1d0bd9b06",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 26960.81,
    "totalRevenue": 26960.81,
    "totalGrossProfit": 4852.95,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ebb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ebc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_24",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9105",
    "billNumber": "BILL-20260726-000025",
    "date": "2026-07-26T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ebd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 25",
        "parentItem": "6a85e33f277a43e1d0bd9b05",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 8977.56,
    "totalRevenue": 8977.56,
    "totalGrossProfit": 1615.96,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ebe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_25",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9106",
    "billNumber": "BILL-20260725-000026",
    "date": "2026-07-25T17:09:19.027Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ebf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 26",
        "parentItem": "6a85e33f277a43e1d0bd9b06",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ec0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 27",
        "parentItem": "6a85e33f277a43e1d0bd9b07",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 20157.31,
    "totalRevenue": 20157.31,
    "totalGrossProfit": 3628.32,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ec1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359027,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ec2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_26",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9107",
    "billNumber": "BILL-20260724-000027",
    "date": "2026-07-24T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ec3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 27",
        "parentItem": "6a85e33f277a43e1d0bd9b07",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ec4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 28",
        "parentItem": "6a85e33f277a43e1d0bd9b08",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ec5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 29",
        "parentItem": "6a85e33f277a43e1d0bd9b09",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 33736.13,
    "totalRevenue": 33736.13,
    "totalGrossProfit": 6072.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ec6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ec7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ec8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_27",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9108",
    "billNumber": "BILL-20260723-000028",
    "date": "2026-07-23T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ec9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 28",
        "parentItem": "6a85e33f277a43e1d0bd9b08",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 11236,
    "totalRevenue": 11236,
    "totalGrossProfit": 2022.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_28",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9109",
    "billNumber": "BILL-20260722-000029",
    "date": "2026-07-22T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ecb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 29",
        "parentItem": "6a85e33f277a43e1d0bd9b09",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ecc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 30",
        "parentItem": "6a85e33f277a43e1d0bd9b0a",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 24927.31,
    "totalRevenue": 24927.31,
    "totalGrossProfit": 4486.92,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ecd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ece",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_29",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd910a",
    "billNumber": "BILL-20260721-000030",
    "date": "2026-07-21T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ecf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 30",
        "parentItem": "6a85e33f277a43e1d0bd9b0a",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ed0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 31",
        "parentItem": "6a85e33f277a43e1d0bd9b0b",
        "quantity": 117.25,
        "unitprice": 117.25,
        "sellingPrice": 117.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ed1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 32",
        "parentItem": "6a85e33f277a43e1d0bd9b0c",
        "quantity": 121,
        "unitprice": 121,
        "sellingPrice": 121,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 41270.81,
    "totalRevenue": 41270.81,
    "totalGrossProfit": 7428.75,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ed2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ed3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ed4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_30",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd910b",
    "billNumber": "BILL-20260720-000031",
    "date": "2026-07-20T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ed5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 31",
        "parentItem": "6a85e33f277a43e1d0bd9b0b",
        "quantity": 117.25,
        "unitprice": 117.25,
        "sellingPrice": 117.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 13747.56,
    "totalRevenue": 13747.56,
    "totalGrossProfit": 2474.56,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ed6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_31",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd910c",
    "billNumber": "BILL-20260719-000032",
    "date": "2026-07-19T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ed7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 32",
        "parentItem": "6a85e33f277a43e1d0bd9b0c",
        "quantity": 121,
        "unitprice": 121,
        "sellingPrice": 121,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ed8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 33",
        "parentItem": "6a85e33f277a43e1d0bd9b0d",
        "quantity": 124.75,
        "unitprice": 124.75,
        "sellingPrice": 124.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 30203.56,
    "totalRevenue": 30203.56,
    "totalGrossProfit": 5436.64,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ed9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eda",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_32",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd910d",
    "billNumber": "BILL-20260718-000033",
    "date": "2026-07-18T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9edb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 33",
        "parentItem": "6a85e33f277a43e1d0bd9b0d",
        "quantity": 124.75,
        "unitprice": 124.75,
        "sellingPrice": 124.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9edc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 34",
        "parentItem": "6a85e33f277a43e1d0bd9b0e",
        "quantity": 128.5,
        "unitprice": 128.5,
        "sellingPrice": 128.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9edd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 35",
        "parentItem": "6a85e33f277a43e1d0bd9b0f",
        "quantity": 132.25,
        "unitprice": 132.25,
        "sellingPrice": 132.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 49564.88,
    "totalRevenue": 49564.88,
    "totalGrossProfit": 8921.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ede",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9edf",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ee0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_33",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd910e",
    "billNumber": "BILL-20260717-000034",
    "date": "2026-07-17T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ee1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 34",
        "parentItem": "6a85e33f277a43e1d0bd9b0e",
        "quantity": 128.5,
        "unitprice": 128.5,
        "sellingPrice": 128.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 16512.25,
    "totalRevenue": 16512.25,
    "totalGrossProfit": 2972.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ee2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_34",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd910f",
    "billNumber": "BILL-20260716-000035",
    "date": "2026-07-16T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ee3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 35",
        "parentItem": "6a85e33f277a43e1d0bd9b0f",
        "quantity": 132.25,
        "unitprice": 132.25,
        "sellingPrice": 132.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ee4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 36",
        "parentItem": "6a85e33f277a43e1d0bd9b10",
        "quantity": 136,
        "unitprice": 136,
        "sellingPrice": 136,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 35986.06,
    "totalRevenue": 35986.06,
    "totalGrossProfit": 6477.49,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ee5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359028,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ee6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_35",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9110",
    "billNumber": "BILL-20260715-000036",
    "date": "2026-07-15T17:09:19.028Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ee7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 36",
        "parentItem": "6a85e33f277a43e1d0bd9b10",
        "quantity": 136,
        "unitprice": 136,
        "sellingPrice": 136,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ee8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 37",
        "parentItem": "6a85e33f277a43e1d0bd9b11",
        "quantity": 139.75,
        "unitprice": 139.75,
        "sellingPrice": 139.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ee9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 38",
        "parentItem": "6a85e33f277a43e1d0bd9b12",
        "quantity": 143.5,
        "unitprice": 143.5,
        "sellingPrice": 143.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 58618.31,
    "totalRevenue": 58618.31,
    "totalGrossProfit": 10551.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eeb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eec",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_36",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9111",
    "billNumber": "BILL-20260714-000037",
    "date": "2026-07-14T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9eed",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 37",
        "parentItem": "6a85e33f277a43e1d0bd9b11",
        "quantity": 139.75,
        "unitprice": 139.75,
        "sellingPrice": 139.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 19530.06,
    "totalRevenue": 19530.06,
    "totalGrossProfit": 3515.41,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9eee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_37",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9112",
    "billNumber": "BILL-20260713-000038",
    "date": "2026-07-13T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9eef",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 38",
        "parentItem": "6a85e33f277a43e1d0bd9b12",
        "quantity": 143.5,
        "unitprice": 143.5,
        "sellingPrice": 143.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ef0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 39",
        "parentItem": "6a85e33f277a43e1d0bd9b13",
        "quantity": 147.25,
        "unitprice": 147.25,
        "sellingPrice": 147.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 42274.81,
    "totalRevenue": 42274.81,
    "totalGrossProfit": 7609.47,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ef1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ef2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_38",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9113",
    "billNumber": "BILL-20260712-000039",
    "date": "2026-07-12T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ef3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 39",
        "parentItem": "6a85e33f277a43e1d0bd9b13",
        "quantity": 147.25,
        "unitprice": 147.25,
        "sellingPrice": 147.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ef4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 40",
        "parentItem": "6a85e33f277a43e1d0bd9b14",
        "quantity": 151,
        "unitprice": 151,
        "sellingPrice": 151,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ef5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 41",
        "parentItem": "6a85e33f277a43e1d0bd9b15",
        "quantity": 154.75,
        "unitprice": 154.75,
        "sellingPrice": 154.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 68431.13,
    "totalRevenue": 68431.13,
    "totalGrossProfit": 12317.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ef6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ef7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ef8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_39",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9114",
    "billNumber": "BILL-20260711-000040",
    "date": "2026-07-11T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ef9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 40",
        "parentItem": "6a85e33f277a43e1d0bd9b14",
        "quantity": 151,
        "unitprice": 151,
        "sellingPrice": 151,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 22801,
    "totalRevenue": 22801,
    "totalGrossProfit": 4104.18,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9efa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_40",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9115",
    "billNumber": "BILL-20260710-000041",
    "date": "2026-07-10T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9efb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 41",
        "parentItem": "6a85e33f277a43e1d0bd9b15",
        "quantity": 154.75,
        "unitprice": 154.75,
        "sellingPrice": 154.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9efc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 42",
        "parentItem": "6a85e33f277a43e1d0bd9b16",
        "quantity": 158.5,
        "unitprice": 158.5,
        "sellingPrice": 158.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 49069.81,
    "totalRevenue": 49069.81,
    "totalGrossProfit": 8832.57,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9efd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9efe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_41",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9116",
    "billNumber": "BILL-20260709-000042",
    "date": "2026-07-09T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9eff",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 42",
        "parentItem": "6a85e33f277a43e1d0bd9b16",
        "quantity": 158.5,
        "unitprice": 158.5,
        "sellingPrice": 158.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f00",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 43",
        "parentItem": "6a85e33f277a43e1d0bd9b17",
        "quantity": 162.25,
        "unitprice": 162.25,
        "sellingPrice": 162.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f01",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 44",
        "parentItem": "6a85e33f277a43e1d0bd9b18",
        "quantity": 166,
        "unitprice": 166,
        "sellingPrice": 166,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 79003.31,
    "totalRevenue": 79003.31,
    "totalGrossProfit": 14220.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f02",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f03",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f04",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_42",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9117",
    "billNumber": "BILL-20260708-000043",
    "date": "2026-07-08T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f05",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 43",
        "parentItem": "6a85e33f277a43e1d0bd9b17",
        "quantity": 162.25,
        "unitprice": 162.25,
        "sellingPrice": 162.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 26325.06,
    "totalRevenue": 26325.06,
    "totalGrossProfit": 4738.51,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f06",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_43",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9118",
    "billNumber": "BILL-20260707-000044",
    "date": "2026-07-07T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f07",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 44",
        "parentItem": "6a85e33f277a43e1d0bd9b18",
        "quantity": 166,
        "unitprice": 166,
        "sellingPrice": 166,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f08",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 45",
        "parentItem": "6a85e33f277a43e1d0bd9b19",
        "quantity": 169.75,
        "unitprice": 169.75,
        "sellingPrice": 169.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 56371.06,
    "totalRevenue": 56371.06,
    "totalGrossProfit": 10146.79,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f09",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f0a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_44",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9119",
    "billNumber": "BILL-20260706-000045",
    "date": "2026-07-06T17:09:19.029Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f0b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 45",
        "parentItem": "6a85e33f277a43e1d0bd9b19",
        "quantity": 169.75,
        "unitprice": 169.75,
        "sellingPrice": 169.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f0c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 46",
        "parentItem": "6a85e33f277a43e1d0bd9b1a",
        "quantity": 173.5,
        "unitprice": 173.5,
        "sellingPrice": 173.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f0d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 47",
        "parentItem": "6a85e33f277a43e1d0bd9b1b",
        "quantity": 177.25,
        "unitprice": 177.25,
        "sellingPrice": 177.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 90334.88,
    "totalRevenue": 90334.88,
    "totalGrossProfit": 16260.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f0e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f0f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359029,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f10",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_45",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd911a",
    "billNumber": "BILL-20260705-000046",
    "date": "2026-07-05T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f11",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 46",
        "parentItem": "6a85e33f277a43e1d0bd9b1a",
        "quantity": 173.5,
        "unitprice": 173.5,
        "sellingPrice": 173.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 30102.25,
    "totalRevenue": 30102.25,
    "totalGrossProfit": 5418.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f12",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_46",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd911b",
    "billNumber": "BILL-20260704-000047",
    "date": "2026-07-04T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f13",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 47",
        "parentItem": "6a85e33f277a43e1d0bd9b1b",
        "quantity": 177.25,
        "unitprice": 177.25,
        "sellingPrice": 177.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f14",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 48",
        "parentItem": "6a85e33f277a43e1d0bd9b1c",
        "quantity": 181,
        "unitprice": 181,
        "sellingPrice": 181,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 64178.56,
    "totalRevenue": 64178.56,
    "totalGrossProfit": 11552.14,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f15",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f16",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_47",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd911c",
    "billNumber": "BILL-20260703-000048",
    "date": "2026-07-03T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f17",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 48",
        "parentItem": "6a85e33f277a43e1d0bd9b1c",
        "quantity": 181,
        "unitprice": 181,
        "sellingPrice": 181,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f18",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 49",
        "parentItem": "6a85e33f277a43e1d0bd9b1d",
        "quantity": 184.75,
        "unitprice": 184.75,
        "sellingPrice": 184.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f19",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 50",
        "parentItem": "6a85e33f277a43e1d0bd9b1e",
        "quantity": 188.5,
        "unitprice": 188.5,
        "sellingPrice": 188.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 102425.81,
    "totalRevenue": 102425.81,
    "totalGrossProfit": 18436.65,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f1a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f1b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f1c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_48",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd911d",
    "billNumber": "BILL-20260702-000049",
    "date": "2026-07-02T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f1d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 49",
        "parentItem": "6a85e33f277a43e1d0bd9b1d",
        "quantity": 184.75,
        "unitprice": 184.75,
        "sellingPrice": 184.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 34132.56,
    "totalRevenue": 34132.56,
    "totalGrossProfit": 6143.86,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f1e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_49",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd911e",
    "billNumber": "BILL-20260701-000050",
    "date": "2026-07-01T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f1f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 50",
        "parentItem": "6a85e33f277a43e1d0bd9b1e",
        "quantity": 188.5,
        "unitprice": 188.5,
        "sellingPrice": 188.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f20",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 51",
        "parentItem": "6a85e33f277a43e1d0bd9b1f",
        "quantity": 192.25,
        "unitprice": 192.25,
        "sellingPrice": 192.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 72492.31,
    "totalRevenue": 72492.31,
    "totalGrossProfit": 13048.62,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f21",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f22",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_50",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd911f",
    "billNumber": "BILL-20260630-000051",
    "date": "2026-06-30T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f23",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 51",
        "parentItem": "6a85e33f277a43e1d0bd9b1f",
        "quantity": 192.25,
        "unitprice": 192.25,
        "sellingPrice": 192.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f24",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 52",
        "parentItem": "6a85e33f277a43e1d0bd9b20",
        "quantity": 196,
        "unitprice": 196,
        "sellingPrice": 196,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f25",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 53",
        "parentItem": "6a85e33f277a43e1d0bd9b21",
        "quantity": 199.75,
        "unitprice": 199.75,
        "sellingPrice": 199.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 115276.13,
    "totalRevenue": 115276.13,
    "totalGrossProfit": 20749.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f26",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f27",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f28",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_51",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9120",
    "billNumber": "BILL-20260629-000052",
    "date": "2026-06-29T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f29",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 52",
        "parentItem": "6a85e33f277a43e1d0bd9b20",
        "quantity": 196,
        "unitprice": 196,
        "sellingPrice": 196,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 38416,
    "totalRevenue": 38416,
    "totalGrossProfit": 6914.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f2a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_52",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9121",
    "billNumber": "BILL-20260628-000053",
    "date": "2026-06-28T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f2b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 53",
        "parentItem": "6a85e33f277a43e1d0bd9b21",
        "quantity": 199.75,
        "unitprice": 199.75,
        "sellingPrice": 199.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f2c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 54",
        "parentItem": "6a85e33f277a43e1d0bd9b22",
        "quantity": 203.5,
        "unitprice": 203.5,
        "sellingPrice": 203.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 81312.31,
    "totalRevenue": 81312.31,
    "totalGrossProfit": 14636.22,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f2d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f2e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_53",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9122",
    "billNumber": "BILL-20260627-000054",
    "date": "2026-06-27T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f2f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 54",
        "parentItem": "6a85e33f277a43e1d0bd9b22",
        "quantity": 203.5,
        "unitprice": 203.5,
        "sellingPrice": 203.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f30",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 55",
        "parentItem": "6a85e33f277a43e1d0bd9b23",
        "quantity": 207.25,
        "unitprice": 207.25,
        "sellingPrice": 207.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f31",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 56",
        "parentItem": "6a85e33f277a43e1d0bd9b24",
        "quantity": 211,
        "unitprice": 211,
        "sellingPrice": 211,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 128885.81,
    "totalRevenue": 128885.81,
    "totalGrossProfit": 23199.45,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f32",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f33",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f34",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_54",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9123",
    "billNumber": "BILL-20260626-000055",
    "date": "2026-06-26T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f35",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 55",
        "parentItem": "6a85e33f277a43e1d0bd9b23",
        "quantity": 207.25,
        "unitprice": 207.25,
        "sellingPrice": 207.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 42952.56,
    "totalRevenue": 42952.56,
    "totalGrossProfit": 7731.46,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359030,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f36",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_55",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9124",
    "billNumber": "BILL-20260625-000056",
    "date": "2026-06-25T17:09:19.030Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f37",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 56",
        "parentItem": "6a85e33f277a43e1d0bd9b24",
        "quantity": 211,
        "unitprice": 211,
        "sellingPrice": 211,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f38",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 57",
        "parentItem": "6a85e33f277a43e1d0bd9b25",
        "quantity": 214.75,
        "unitprice": 214.75,
        "sellingPrice": 214.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 90638.56,
    "totalRevenue": 90638.56,
    "totalGrossProfit": 16314.94,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f39",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f3a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_56",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9125",
    "billNumber": "BILL-20260624-000057",
    "date": "2026-06-24T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f3b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 57",
        "parentItem": "6a85e33f277a43e1d0bd9b25",
        "quantity": 214.75,
        "unitprice": 214.75,
        "sellingPrice": 214.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f3c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 58",
        "parentItem": "6a85e33f277a43e1d0bd9b26",
        "quantity": 218.5,
        "unitprice": 218.5,
        "sellingPrice": 218.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f3d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 59",
        "parentItem": "6a85e33f277a43e1d0bd9b27",
        "quantity": 222.25,
        "unitprice": 222.25,
        "sellingPrice": 222.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 143254.88,
    "totalRevenue": 143254.88,
    "totalGrossProfit": 25785.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f3e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f3f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f40",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_57",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9126",
    "billNumber": "BILL-20260623-000058",
    "date": "2026-06-23T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f41",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 58",
        "parentItem": "6a85e33f277a43e1d0bd9b26",
        "quantity": 218.5,
        "unitprice": 218.5,
        "sellingPrice": 218.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 47742.25,
    "totalRevenue": 47742.25,
    "totalGrossProfit": 8593.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f42",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_58",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9127",
    "billNumber": "BILL-20260622-000059",
    "date": "2026-06-22T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f43",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 59",
        "parentItem": "6a85e33f277a43e1d0bd9b27",
        "quantity": 222.25,
        "unitprice": 222.25,
        "sellingPrice": 222.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f44",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 60",
        "parentItem": "6a85e33f277a43e1d0bd9b28",
        "quantity": 226,
        "unitprice": 226,
        "sellingPrice": 226,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 100471.06,
    "totalRevenue": 100471.06,
    "totalGrossProfit": 18084.79,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f45",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f46",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_59",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9128",
    "billNumber": "BILL-20260621-000060",
    "date": "2026-06-21T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f47",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 60",
        "parentItem": "6a85e33f277a43e1d0bd9b28",
        "quantity": 226,
        "unitprice": 226,
        "sellingPrice": 226,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f48",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 61",
        "parentItem": "6a85e33f277a43e1d0bd9b29",
        "quantity": 229.75,
        "unitprice": 229.75,
        "sellingPrice": 229.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f49",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 62",
        "parentItem": "6a85e33f277a43e1d0bd9b2a",
        "quantity": 233.5,
        "unitprice": 233.5,
        "sellingPrice": 233.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 158383.31,
    "totalRevenue": 158383.31,
    "totalGrossProfit": 28509,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f4a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f4b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f4c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_60",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9129",
    "billNumber": "BILL-20260620-000061",
    "date": "2026-06-20T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f4d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 61",
        "parentItem": "6a85e33f277a43e1d0bd9b29",
        "quantity": 229.75,
        "unitprice": 229.75,
        "sellingPrice": 229.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 52785.06,
    "totalRevenue": 52785.06,
    "totalGrossProfit": 9501.31,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f4e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_61",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd912a",
    "billNumber": "BILL-20260619-000062",
    "date": "2026-06-19T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f4f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 62",
        "parentItem": "6a85e33f277a43e1d0bd9b2a",
        "quantity": 233.5,
        "unitprice": 233.5,
        "sellingPrice": 233.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f50",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 63",
        "parentItem": "6a85e33f277a43e1d0bd9b2b",
        "quantity": 237.25,
        "unitprice": 237.25,
        "sellingPrice": 237.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 110809.81,
    "totalRevenue": 110809.81,
    "totalGrossProfit": 19945.77,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f51",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f52",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_62",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd912b",
    "billNumber": "BILL-20260618-000063",
    "date": "2026-06-18T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f53",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 63",
        "parentItem": "6a85e33f277a43e1d0bd9b2b",
        "quantity": 237.25,
        "unitprice": 237.25,
        "sellingPrice": 237.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f54",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 64",
        "parentItem": "6a85e33f277a43e1d0bd9b2c",
        "quantity": 241,
        "unitprice": 241,
        "sellingPrice": 241,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f55",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 65",
        "parentItem": "6a85e33f277a43e1d0bd9b2d",
        "quantity": 244.75,
        "unitprice": 244.75,
        "sellingPrice": 244.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 174271.13,
    "totalRevenue": 174271.13,
    "totalGrossProfit": 31368.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f56",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f57",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f58",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_63",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd912c",
    "billNumber": "BILL-20260617-000064",
    "date": "2026-06-17T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f59",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 64",
        "parentItem": "6a85e33f277a43e1d0bd9b2c",
        "quantity": 241,
        "unitprice": 241,
        "sellingPrice": 241,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 58081,
    "totalRevenue": 58081,
    "totalGrossProfit": 10454.58,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f5a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_64",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd912d",
    "billNumber": "BILL-20260616-000065",
    "date": "2026-06-16T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f5b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 65",
        "parentItem": "6a85e33f277a43e1d0bd9b2d",
        "quantity": 244.75,
        "unitprice": 244.75,
        "sellingPrice": 244.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f5c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 66",
        "parentItem": "6a85e33f277a43e1d0bd9b2e",
        "quantity": 248.5,
        "unitprice": 248.5,
        "sellingPrice": 248.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 121654.81,
    "totalRevenue": 121654.81,
    "totalGrossProfit": 21897.87,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f5d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359031,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f5e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_65",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd912e",
    "billNumber": "BILL-20260615-000066",
    "date": "2026-06-15T17:09:19.031Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f5f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 66",
        "parentItem": "6a85e33f277a43e1d0bd9b2e",
        "quantity": 248.5,
        "unitprice": 248.5,
        "sellingPrice": 248.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f60",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 67",
        "parentItem": "6a85e33f277a43e1d0bd9b2f",
        "quantity": 252.25,
        "unitprice": 252.25,
        "sellingPrice": 252.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f61",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 68",
        "parentItem": "6a85e33f277a43e1d0bd9b30",
        "quantity": 256,
        "unitprice": 256,
        "sellingPrice": 256,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 190918.31,
    "totalRevenue": 190918.31,
    "totalGrossProfit": 34365.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f62",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f63",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f64",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_66",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd912f",
    "billNumber": "BILL-20260614-000067",
    "date": "2026-06-14T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f65",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 67",
        "parentItem": "6a85e33f277a43e1d0bd9b2f",
        "quantity": 252.25,
        "unitprice": 252.25,
        "sellingPrice": 252.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 63630.06,
    "totalRevenue": 63630.06,
    "totalGrossProfit": 11453.41,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f66",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_67",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9130",
    "billNumber": "BILL-20260613-000068",
    "date": "2026-06-13T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f67",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 68",
        "parentItem": "6a85e33f277a43e1d0bd9b30",
        "quantity": 256,
        "unitprice": 256,
        "sellingPrice": 256,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f68",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 69",
        "parentItem": "6a85e33f277a43e1d0bd9b31",
        "quantity": 259.75,
        "unitprice": 259.75,
        "sellingPrice": 259.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 133006.06,
    "totalRevenue": 133006.06,
    "totalGrossProfit": 23941.09,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f69",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f6a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_68",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9131",
    "billNumber": "BILL-20260612-000069",
    "date": "2026-06-12T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f6b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 69",
        "parentItem": "6a85e33f277a43e1d0bd9b31",
        "quantity": 259.75,
        "unitprice": 259.75,
        "sellingPrice": 259.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f6c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 70",
        "parentItem": "6a85e33f277a43e1d0bd9b32",
        "quantity": 263.5,
        "unitprice": 263.5,
        "sellingPrice": 263.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f6d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 71",
        "parentItem": "6a85e33f277a43e1d0bd9b33",
        "quantity": 267.25,
        "unitprice": 267.25,
        "sellingPrice": 267.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 208324.88,
    "totalRevenue": 208324.88,
    "totalGrossProfit": 37498.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f6e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f6f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f70",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_69",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9132",
    "billNumber": "BILL-20260611-000070",
    "date": "2026-06-11T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f71",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 70",
        "parentItem": "6a85e33f277a43e1d0bd9b32",
        "quantity": 263.5,
        "unitprice": 263.5,
        "sellingPrice": 263.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 69432.25,
    "totalRevenue": 69432.25,
    "totalGrossProfit": 12497.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f72",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_70",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9133",
    "billNumber": "BILL-20260610-000071",
    "date": "2026-06-10T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f73",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 71",
        "parentItem": "6a85e33f277a43e1d0bd9b33",
        "quantity": 267.25,
        "unitprice": 267.25,
        "sellingPrice": 267.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f74",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 72",
        "parentItem": "6a85e33f277a43e1d0bd9b34",
        "quantity": 271,
        "unitprice": 271,
        "sellingPrice": 271,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 144863.56,
    "totalRevenue": 144863.56,
    "totalGrossProfit": 26075.44,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f75",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f76",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_71",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9134",
    "billNumber": "BILL-20260609-000072",
    "date": "2026-06-09T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f77",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 72",
        "parentItem": "6a85e33f277a43e1d0bd9b34",
        "quantity": 271,
        "unitprice": 271,
        "sellingPrice": 271,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f78",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 73",
        "parentItem": "6a85e33f277a43e1d0bd9b35",
        "quantity": 274.75,
        "unitprice": 274.75,
        "sellingPrice": 274.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f79",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 74",
        "parentItem": "6a85e33f277a43e1d0bd9b36",
        "quantity": 278.5,
        "unitprice": 278.5,
        "sellingPrice": 278.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 226490.81,
    "totalRevenue": 226490.81,
    "totalGrossProfit": 40768.35,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f7a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f7b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f7c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_72",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9135",
    "billNumber": "BILL-20260608-000073",
    "date": "2026-06-08T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f7d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 73",
        "parentItem": "6a85e33f277a43e1d0bd9b35",
        "quantity": 274.75,
        "unitprice": 274.75,
        "sellingPrice": 274.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 75487.56,
    "totalRevenue": 75487.56,
    "totalGrossProfit": 13587.76,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f7e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_73",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9136",
    "billNumber": "BILL-20260607-000074",
    "date": "2026-06-07T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f7f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 74",
        "parentItem": "6a85e33f277a43e1d0bd9b36",
        "quantity": 278.5,
        "unitprice": 278.5,
        "sellingPrice": 278.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f80",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 75",
        "parentItem": "6a85e33f277a43e1d0bd9b37",
        "quantity": 282.25,
        "unitprice": 282.25,
        "sellingPrice": 282.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 157227.31,
    "totalRevenue": 157227.31,
    "totalGrossProfit": 28300.92,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f81",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359032,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f82",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_74",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9137",
    "billNumber": "BILL-20260606-000075",
    "date": "2026-06-06T17:09:19.032Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f83",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 75",
        "parentItem": "6a85e33f277a43e1d0bd9b37",
        "quantity": 282.25,
        "unitprice": 282.25,
        "sellingPrice": 282.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f84",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 76",
        "parentItem": "6a85e33f277a43e1d0bd9b38",
        "quantity": 286,
        "unitprice": 286,
        "sellingPrice": 286,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f85",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 77",
        "parentItem": "6a85e33f277a43e1d0bd9b39",
        "quantity": 289.75,
        "unitprice": 289.75,
        "sellingPrice": 289.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 245416.13,
    "totalRevenue": 245416.13,
    "totalGrossProfit": 44174.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f86",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f87",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f88",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_75",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9138",
    "billNumber": "BILL-20260605-000076",
    "date": "2026-06-05T17:09:19.033Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f89",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 76",
        "parentItem": "6a85e33f277a43e1d0bd9b38",
        "quantity": 286,
        "unitprice": 286,
        "sellingPrice": 286,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 81796,
    "totalRevenue": 81796,
    "totalGrossProfit": 14723.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f8a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_76",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9139",
    "billNumber": "BILL-20260604-000077",
    "date": "2026-06-04T17:09:19.033Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f8b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 77",
        "parentItem": "6a85e33f277a43e1d0bd9b39",
        "quantity": 289.75,
        "unitprice": 289.75,
        "sellingPrice": 289.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f8c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 78",
        "parentItem": "6a85e33f277a43e1d0bd9b3a",
        "quantity": 293.5,
        "unitprice": 293.5,
        "sellingPrice": 293.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 170097.31,
    "totalRevenue": 170097.31,
    "totalGrossProfit": 30617.52,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f8d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f8e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_77",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd913a",
    "billNumber": "BILL-20260603-000078",
    "date": "2026-06-03T17:09:19.033Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f8f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 78",
        "parentItem": "6a85e33f277a43e1d0bd9b3a",
        "quantity": 293.5,
        "unitprice": 293.5,
        "sellingPrice": 293.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f90",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 79",
        "parentItem": "6a85e33f277a43e1d0bd9b3b",
        "quantity": 297.25,
        "unitprice": 297.25,
        "sellingPrice": 297.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f91",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 80",
        "parentItem": "6a85e33f277a43e1d0bd9b3c",
        "quantity": 301,
        "unitprice": 301,
        "sellingPrice": 301,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 265100.81,
    "totalRevenue": 265100.81,
    "totalGrossProfit": 47718.15,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f92",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f93",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f94",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_78",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd913b",
    "billNumber": "BILL-20260602-000079",
    "date": "2026-06-02T17:09:19.033Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f95",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 79",
        "parentItem": "6a85e33f277a43e1d0bd9b3b",
        "quantity": 297.25,
        "unitprice": 297.25,
        "sellingPrice": 297.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 88357.56,
    "totalRevenue": 88357.56,
    "totalGrossProfit": 15904.36,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f96",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_79",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd913c",
    "billNumber": "BILL-20260601-000080",
    "date": "2026-06-01T17:09:19.033Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f97",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 80",
        "parentItem": "6a85e33f277a43e1d0bd9b3c",
        "quantity": 301,
        "unitprice": 301,
        "sellingPrice": 301,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f98",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 81",
        "parentItem": "6a85e33f277a43e1d0bd9b3d",
        "quantity": 304.75,
        "unitprice": 304.75,
        "sellingPrice": 304.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 183473.56,
    "totalRevenue": 183473.56,
    "totalGrossProfit": 33025.24,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f99",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f9a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_80",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd913d",
    "billNumber": "BILL-20260531-000081",
    "date": "2026-05-31T17:09:19.033Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9f9b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 81",
        "parentItem": "6a85e33f277a43e1d0bd9b3d",
        "quantity": 304.75,
        "unitprice": 304.75,
        "sellingPrice": 304.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f9c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 82",
        "parentItem": "6a85e33f277a43e1d0bd9b3e",
        "quantity": 308.5,
        "unitprice": 308.5,
        "sellingPrice": 308.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9f9d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 83",
        "parentItem": "6a85e33f277a43e1d0bd9b3f",
        "quantity": 312.25,
        "unitprice": 312.25,
        "sellingPrice": 312.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 285544.88,
    "totalRevenue": 285544.88,
    "totalGrossProfit": 51398.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f9e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9f9f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fa0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_81",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd913e",
    "billNumber": "BILL-20260530-000082",
    "date": "2026-05-30T17:09:19.033Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fa1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 82",
        "parentItem": "6a85e33f277a43e1d0bd9b3e",
        "quantity": 308.5,
        "unitprice": 308.5,
        "sellingPrice": 308.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 95172.25,
    "totalRevenue": 95172.25,
    "totalGrossProfit": 17131.01,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359033,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fa2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_82",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd913f",
    "billNumber": "BILL-20260529-000083",
    "date": "2026-05-29T17:09:19.034Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fa3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 83",
        "parentItem": "6a85e33f277a43e1d0bd9b3f",
        "quantity": 312.25,
        "unitprice": 312.25,
        "sellingPrice": 312.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fa4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 84",
        "parentItem": "6a85e33f277a43e1d0bd9b40",
        "quantity": 316,
        "unitprice": 316,
        "sellingPrice": 316,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 197356.06,
    "totalRevenue": 197356.06,
    "totalGrossProfit": 35524.09,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fa5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fa6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_83",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9140",
    "billNumber": "BILL-20260528-000084",
    "date": "2026-05-28T17:09:19.034Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fa7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 84",
        "parentItem": "6a85e33f277a43e1d0bd9b40",
        "quantity": 316,
        "unitprice": 316,
        "sellingPrice": 316,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fa8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 85",
        "parentItem": "6a85e33f277a43e1d0bd9b41",
        "quantity": 319.75,
        "unitprice": 319.75,
        "sellingPrice": 319.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fa9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 86",
        "parentItem": "6a85e33f277a43e1d0bd9b42",
        "quantity": 323.5,
        "unitprice": 323.5,
        "sellingPrice": 323.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 306748.31,
    "totalRevenue": 306748.31,
    "totalGrossProfit": 55214.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9faa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fab",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fac",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_84",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9141",
    "billNumber": "BILL-20260527-000085",
    "date": "2026-05-27T17:09:19.034Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fad",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 85",
        "parentItem": "6a85e33f277a43e1d0bd9b41",
        "quantity": 319.75,
        "unitprice": 319.75,
        "sellingPrice": 319.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 102240.06,
    "totalRevenue": 102240.06,
    "totalGrossProfit": 18403.21,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_85",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9142",
    "billNumber": "BILL-20260526-000086",
    "date": "2026-05-26T17:09:19.034Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9faf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 86",
        "parentItem": "6a85e33f277a43e1d0bd9b42",
        "quantity": 323.5,
        "unitprice": 323.5,
        "sellingPrice": 323.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fb0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 87",
        "parentItem": "6a85e33f277a43e1d0bd9b43",
        "quantity": 327.25,
        "unitprice": 327.25,
        "sellingPrice": 327.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 211744.81,
    "totalRevenue": 211744.81,
    "totalGrossProfit": 38114.07,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fb1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fb2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_86",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9143",
    "billNumber": "BILL-20260525-000087",
    "date": "2026-05-25T17:09:19.034Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fb3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 87",
        "parentItem": "6a85e33f277a43e1d0bd9b43",
        "quantity": 327.25,
        "unitprice": 327.25,
        "sellingPrice": 327.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fb4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 88",
        "parentItem": "6a85e33f277a43e1d0bd9b44",
        "quantity": 331,
        "unitprice": 331,
        "sellingPrice": 331,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fb5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 89",
        "parentItem": "6a85e33f277a43e1d0bd9b45",
        "quantity": 334.75,
        "unitprice": 334.75,
        "sellingPrice": 334.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 328711.13,
    "totalRevenue": 328711.13,
    "totalGrossProfit": 59168,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fb6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fb7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fb8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_87",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9144",
    "billNumber": "BILL-20260524-000088",
    "date": "2026-05-24T17:09:19.034Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fb9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 88",
        "parentItem": "6a85e33f277a43e1d0bd9b44",
        "quantity": 331,
        "unitprice": 331,
        "sellingPrice": 331,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 109561,
    "totalRevenue": 109561,
    "totalGrossProfit": 19720.98,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_88",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9145",
    "billNumber": "BILL-20260523-000089",
    "date": "2026-05-23T17:09:19.034Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fbb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 89",
        "parentItem": "6a85e33f277a43e1d0bd9b45",
        "quantity": 334.75,
        "unitprice": 334.75,
        "sellingPrice": 334.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fbc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 90",
        "parentItem": "6a85e33f277a43e1d0bd9b46",
        "quantity": 338.5,
        "unitprice": 338.5,
        "sellingPrice": 338.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 226639.81,
    "totalRevenue": 226639.81,
    "totalGrossProfit": 40795.17,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fbd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359034,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fbe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_89",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9146",
    "billNumber": "BILL-20260522-000090",
    "date": "2026-05-22T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fbf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 90",
        "parentItem": "6a85e33f277a43e1d0bd9b46",
        "quantity": 338.5,
        "unitprice": 338.5,
        "sellingPrice": 338.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fc0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 91",
        "parentItem": "6a85e33f277a43e1d0bd9b47",
        "quantity": 342.25,
        "unitprice": 342.25,
        "sellingPrice": 342.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fc1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 92",
        "parentItem": "6a85e33f277a43e1d0bd9b48",
        "quantity": 346,
        "unitprice": 346,
        "sellingPrice": 346,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 351433.31,
    "totalRevenue": 351433.31,
    "totalGrossProfit": 63258,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fc2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fc3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fc4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_90",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9147",
    "billNumber": "BILL-20260521-000091",
    "date": "2026-05-21T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fc5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 91",
        "parentItem": "6a85e33f277a43e1d0bd9b47",
        "quantity": 342.25,
        "unitprice": 342.25,
        "sellingPrice": 342.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 117135.06,
    "totalRevenue": 117135.06,
    "totalGrossProfit": 21084.31,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fc6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_91",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9148",
    "billNumber": "BILL-20260520-000092",
    "date": "2026-05-20T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fc7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 92",
        "parentItem": "6a85e33f277a43e1d0bd9b48",
        "quantity": 346,
        "unitprice": 346,
        "sellingPrice": 346,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fc8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 93",
        "parentItem": "6a85e33f277a43e1d0bd9b49",
        "quantity": 349.75,
        "unitprice": 349.75,
        "sellingPrice": 349.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 242041.06,
    "totalRevenue": 242041.06,
    "totalGrossProfit": 43567.39,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fc9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_92",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9149",
    "billNumber": "BILL-20260519-000093",
    "date": "2026-05-19T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fcb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 93",
        "parentItem": "6a85e33f277a43e1d0bd9b49",
        "quantity": 349.75,
        "unitprice": 349.75,
        "sellingPrice": 349.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fcc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 94",
        "parentItem": "6a85e33f277a43e1d0bd9b4a",
        "quantity": 353.5,
        "unitprice": 353.5,
        "sellingPrice": 353.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fcd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 95",
        "parentItem": "6a85e33f277a43e1d0bd9b4b",
        "quantity": 357.25,
        "unitprice": 357.25,
        "sellingPrice": 357.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 374914.88,
    "totalRevenue": 374914.88,
    "totalGrossProfit": 67484.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fce",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fcf",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fd0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_93",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd914a",
    "billNumber": "BILL-20260518-000094",
    "date": "2026-05-18T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fd1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 94",
        "parentItem": "6a85e33f277a43e1d0bd9b4a",
        "quantity": 353.5,
        "unitprice": 353.5,
        "sellingPrice": 353.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 124962.25,
    "totalRevenue": 124962.25,
    "totalGrossProfit": 22493.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fd2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_94",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd914b",
    "billNumber": "BILL-20260517-000095",
    "date": "2026-05-17T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fd3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 95",
        "parentItem": "6a85e33f277a43e1d0bd9b4b",
        "quantity": 357.25,
        "unitprice": 357.25,
        "sellingPrice": 357.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fd4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 96",
        "parentItem": "6a85e33f277a43e1d0bd9b4c",
        "quantity": 361,
        "unitprice": 361,
        "sellingPrice": 361,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 257948.56,
    "totalRevenue": 257948.56,
    "totalGrossProfit": 46430.74,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fd5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fd6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_95",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd914c",
    "billNumber": "BILL-20260516-000096",
    "date": "2026-05-16T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fd7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 96",
        "parentItem": "6a85e33f277a43e1d0bd9b4c",
        "quantity": 361,
        "unitprice": 361,
        "sellingPrice": 361,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fd8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 97",
        "parentItem": "6a85e33f277a43e1d0bd9b4d",
        "quantity": 364.75,
        "unitprice": 364.75,
        "sellingPrice": 364.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fd9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 98",
        "parentItem": "6a85e33f277a43e1d0bd9b4e",
        "quantity": 368.5,
        "unitprice": 368.5,
        "sellingPrice": 368.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 399155.81,
    "totalRevenue": 399155.81,
    "totalGrossProfit": 71848.05,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fda",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fdb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359035,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fdc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_96",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd914d",
    "billNumber": "BILL-20260515-000097",
    "date": "2026-05-15T17:09:19.035Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fdd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 97",
        "parentItem": "6a85e33f277a43e1d0bd9b4d",
        "quantity": 364.75,
        "unitprice": 364.75,
        "sellingPrice": 364.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 133042.56,
    "totalRevenue": 133042.56,
    "totalGrossProfit": 23947.66,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fde",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_97",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd914e",
    "billNumber": "BILL-20260514-000098",
    "date": "2026-05-14T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fdf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 98",
        "parentItem": "6a85e33f277a43e1d0bd9b4e",
        "quantity": 368.5,
        "unitprice": 368.5,
        "sellingPrice": 368.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fe0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 99",
        "parentItem": "6a85e33f277a43e1d0bd9b4f",
        "quantity": 372.25,
        "unitprice": 372.25,
        "sellingPrice": 372.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 274362.31,
    "totalRevenue": 274362.31,
    "totalGrossProfit": 49385.22,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fe1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fe2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_98",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd914f",
    "billNumber": "BILL-20260513-000099",
    "date": "2026-05-13T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fe3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 99",
        "parentItem": "6a85e33f277a43e1d0bd9b4f",
        "quantity": 372.25,
        "unitprice": 372.25,
        "sellingPrice": 372.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fe4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 100",
        "parentItem": "6a85e33f277a43e1d0bd9b50",
        "quantity": 376,
        "unitprice": 376,
        "sellingPrice": 376,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fe5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 101",
        "parentItem": "6a85e33f277a43e1d0bd9b51",
        "quantity": 379.75,
        "unitprice": 379.75,
        "sellingPrice": 379.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 424156.13,
    "totalRevenue": 424156.13,
    "totalGrossProfit": 76348.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fe6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fe7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fe8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_99",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9150",
    "billNumber": "BILL-20260512-000100",
    "date": "2026-05-12T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fe9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 100",
        "parentItem": "6a85e33f277a43e1d0bd9b50",
        "quantity": 376,
        "unitprice": 376,
        "sellingPrice": 376,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 141376,
    "totalRevenue": 141376,
    "totalGrossProfit": 25447.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_100",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9151",
    "billNumber": "BILL-20260511-000101",
    "date": "2026-05-11T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9feb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 101",
        "parentItem": "6a85e33f277a43e1d0bd9b51",
        "quantity": 379.75,
        "unitprice": 379.75,
        "sellingPrice": 379.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9fec",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 102",
        "parentItem": "6a85e33f277a43e1d0bd9b52",
        "quantity": 383.5,
        "unitprice": 383.5,
        "sellingPrice": 383.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 291282.31,
    "totalRevenue": 291282.31,
    "totalGrossProfit": 52430.82,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fed",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_101",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9152",
    "billNumber": "BILL-20260510-000102",
    "date": "2026-05-10T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9fef",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 102",
        "parentItem": "6a85e33f277a43e1d0bd9b52",
        "quantity": 383.5,
        "unitprice": 383.5,
        "sellingPrice": 383.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ff0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 103",
        "parentItem": "6a85e33f277a43e1d0bd9b53",
        "quantity": 387.25,
        "unitprice": 387.25,
        "sellingPrice": 387.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ff1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 104",
        "parentItem": "6a85e33f277a43e1d0bd9b54",
        "quantity": 391,
        "unitprice": 391,
        "sellingPrice": 391,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 449915.81,
    "totalRevenue": 449915.81,
    "totalGrossProfit": 80984.85,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ff2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ff3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ff4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_102",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9153",
    "billNumber": "BILL-20260509-000103",
    "date": "2026-05-09T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ff5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 103",
        "parentItem": "6a85e33f277a43e1d0bd9b53",
        "quantity": 387.25,
        "unitprice": 387.25,
        "sellingPrice": 387.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 149962.56,
    "totalRevenue": 149962.56,
    "totalGrossProfit": 26993.26,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ff6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_103",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9154",
    "billNumber": "BILL-20260508-000104",
    "date": "2026-05-08T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ff7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 104",
        "parentItem": "6a85e33f277a43e1d0bd9b54",
        "quantity": 391,
        "unitprice": 391,
        "sellingPrice": 391,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ff8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 105",
        "parentItem": "6a85e33f277a43e1d0bd9b55",
        "quantity": 394.75,
        "unitprice": 394.75,
        "sellingPrice": 394.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 308708.56,
    "totalRevenue": 308708.56,
    "totalGrossProfit": 55567.54,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ff9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359036,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ffa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_104",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9155",
    "billNumber": "BILL-20260507-000105",
    "date": "2026-05-07T17:09:19.036Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bd9ffb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 105",
        "parentItem": "6a85e33f277a43e1d0bd9b55",
        "quantity": 394.75,
        "unitprice": 394.75,
        "sellingPrice": 394.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ffc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 106",
        "parentItem": "6a85e33f277a43e1d0bd9b56",
        "quantity": 398.5,
        "unitprice": 398.5,
        "sellingPrice": 398.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bd9ffd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 107",
        "parentItem": "6a85e33f277a43e1d0bd9b57",
        "quantity": 402.25,
        "unitprice": 402.25,
        "sellingPrice": 402.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 476434.88,
    "totalRevenue": 476434.88,
    "totalGrossProfit": 85758.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9ffe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bd9fff",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda000",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_105",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9156",
    "billNumber": "BILL-20260506-000106",
    "date": "2026-05-06T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda001",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 106",
        "parentItem": "6a85e33f277a43e1d0bd9b56",
        "quantity": 398.5,
        "unitprice": 398.5,
        "sellingPrice": 398.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 158802.25,
    "totalRevenue": 158802.25,
    "totalGrossProfit": 28584.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda002",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_106",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9157",
    "billNumber": "BILL-20260505-000107",
    "date": "2026-05-05T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda003",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 107",
        "parentItem": "6a85e33f277a43e1d0bd9b57",
        "quantity": 402.25,
        "unitprice": 402.25,
        "sellingPrice": 402.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda004",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 108",
        "parentItem": "6a85e33f277a43e1d0bd9b58",
        "quantity": 406,
        "unitprice": 406,
        "sellingPrice": 406,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 326641.06,
    "totalRevenue": 326641.06,
    "totalGrossProfit": 58795.39,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda005",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda006",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_107",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9158",
    "billNumber": "BILL-20260504-000108",
    "date": "2026-05-04T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda007",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 108",
        "parentItem": "6a85e33f277a43e1d0bd9b58",
        "quantity": 406,
        "unitprice": 406,
        "sellingPrice": 406,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda008",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 109",
        "parentItem": "6a85e33f277a43e1d0bd9b59",
        "quantity": 409.75,
        "unitprice": 409.75,
        "sellingPrice": 409.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda009",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 110",
        "parentItem": "6a85e33f277a43e1d0bd9b5a",
        "quantity": 413.5,
        "unitprice": 413.5,
        "sellingPrice": 413.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 503713.31,
    "totalRevenue": 503713.31,
    "totalGrossProfit": 90668.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda00a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda00b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda00c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_108",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9159",
    "billNumber": "BILL-20260503-000109",
    "date": "2026-05-03T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda00d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 109",
        "parentItem": "6a85e33f277a43e1d0bd9b59",
        "quantity": 409.75,
        "unitprice": 409.75,
        "sellingPrice": 409.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 167895.06,
    "totalRevenue": 167895.06,
    "totalGrossProfit": 30221.11,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda00e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_109",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd915a",
    "billNumber": "BILL-20260502-000110",
    "date": "2026-05-02T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda00f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 110",
        "parentItem": "6a85e33f277a43e1d0bd9b5a",
        "quantity": 413.5,
        "unitprice": 413.5,
        "sellingPrice": 413.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda010",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 111",
        "parentItem": "6a85e33f277a43e1d0bd9b5b",
        "quantity": 417.25,
        "unitprice": 417.25,
        "sellingPrice": 417.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 345079.81,
    "totalRevenue": 345079.81,
    "totalGrossProfit": 62114.37,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda011",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda012",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_110",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd915b",
    "billNumber": "BILL-20260501-000111",
    "date": "2026-05-01T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda013",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 111",
        "parentItem": "6a85e33f277a43e1d0bd9b5b",
        "quantity": 417.25,
        "unitprice": 417.25,
        "sellingPrice": 417.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda014",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 112",
        "parentItem": "6a85e33f277a43e1d0bd9b5c",
        "quantity": 421,
        "unitprice": 421,
        "sellingPrice": 421,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda015",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 113",
        "parentItem": "6a85e33f277a43e1d0bd9b5d",
        "quantity": 424.75,
        "unitprice": 424.75,
        "sellingPrice": 424.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 531751.13,
    "totalRevenue": 531751.13,
    "totalGrossProfit": 95715.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda016",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda017",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda018",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_111",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd915c",
    "billNumber": "BILL-20260430-000112",
    "date": "2026-04-30T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda019",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 112",
        "parentItem": "6a85e33f277a43e1d0bd9b5c",
        "quantity": 421,
        "unitprice": 421,
        "sellingPrice": 421,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 177241,
    "totalRevenue": 177241,
    "totalGrossProfit": 31903.38,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359037,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda01a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_112",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd915d",
    "billNumber": "BILL-20260429-000113",
    "date": "2026-04-29T17:09:19.037Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda01b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 113",
        "parentItem": "6a85e33f277a43e1d0bd9b5d",
        "quantity": 424.75,
        "unitprice": 424.75,
        "sellingPrice": 424.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda01c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 114",
        "parentItem": "6a85e33f277a43e1d0bd9b5e",
        "quantity": 428.5,
        "unitprice": 428.5,
        "sellingPrice": 428.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 364024.81,
    "totalRevenue": 364024.81,
    "totalGrossProfit": 65524.47,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda01d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda01e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_113",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd915e",
    "billNumber": "BILL-20260428-000114",
    "date": "2026-04-28T17:09:19.038Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda01f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 114",
        "parentItem": "6a85e33f277a43e1d0bd9b5e",
        "quantity": 428.5,
        "unitprice": 428.5,
        "sellingPrice": 428.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda020",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 115",
        "parentItem": "6a85e33f277a43e1d0bd9b5f",
        "quantity": 432.25,
        "unitprice": 432.25,
        "sellingPrice": 432.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda021",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 116",
        "parentItem": "6a85e33f277a43e1d0bd9b60",
        "quantity": 436,
        "unitprice": 436,
        "sellingPrice": 436,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 560548.31,
    "totalRevenue": 560548.31,
    "totalGrossProfit": 100898.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda022",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda023",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda024",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_114",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd915f",
    "billNumber": "BILL-20260427-000115",
    "date": "2026-04-27T17:09:19.038Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda025",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 115",
        "parentItem": "6a85e33f277a43e1d0bd9b5f",
        "quantity": 432.25,
        "unitprice": 432.25,
        "sellingPrice": 432.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 186840.06,
    "totalRevenue": 186840.06,
    "totalGrossProfit": 33631.21,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda026",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_115",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9160",
    "billNumber": "BILL-20260426-000116",
    "date": "2026-04-26T17:09:19.038Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda027",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 116",
        "parentItem": "6a85e33f277a43e1d0bd9b60",
        "quantity": 436,
        "unitprice": 436,
        "sellingPrice": 436,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda028",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 117",
        "parentItem": "6a85e33f277a43e1d0bd9b61",
        "quantity": 439.75,
        "unitprice": 439.75,
        "sellingPrice": 439.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 383476.06,
    "totalRevenue": 383476.06,
    "totalGrossProfit": 69025.69,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda029",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda02a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_116",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9161",
    "billNumber": "BILL-20260425-000117",
    "date": "2026-04-25T17:09:19.038Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda02b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 117",
        "parentItem": "6a85e33f277a43e1d0bd9b61",
        "quantity": 439.75,
        "unitprice": 439.75,
        "sellingPrice": 439.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda02c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 118",
        "parentItem": "6a85e33f277a43e1d0bd9b62",
        "quantity": 443.5,
        "unitprice": 443.5,
        "sellingPrice": 443.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda02d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 119",
        "parentItem": "6a85e33f277a43e1d0bd9b63",
        "quantity": 447.25,
        "unitprice": 447.25,
        "sellingPrice": 447.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 590104.88,
    "totalRevenue": 590104.88,
    "totalGrossProfit": 106218.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda02e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda02f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda030",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_117",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9162",
    "billNumber": "BILL-20260424-000118",
    "date": "2026-04-24T17:09:19.038Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda031",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 118",
        "parentItem": "6a85e33f277a43e1d0bd9b62",
        "quantity": 443.5,
        "unitprice": 443.5,
        "sellingPrice": 443.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 196692.25,
    "totalRevenue": 196692.25,
    "totalGrossProfit": 35404.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda032",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_118",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9163",
    "billNumber": "BILL-20260423-000119",
    "date": "2026-04-23T17:09:19.038Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda033",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 119",
        "parentItem": "6a85e33f277a43e1d0bd9b63",
        "quantity": 447.25,
        "unitprice": 447.25,
        "sellingPrice": 447.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda034",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 120",
        "parentItem": "6a85e33f277a43e1d0bd9b64",
        "quantity": 451,
        "unitprice": 451,
        "sellingPrice": 451,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 403433.56,
    "totalRevenue": 403433.56,
    "totalGrossProfit": 72618.04,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda035",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda036",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_119",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9164",
    "billNumber": "BILL-20260422-000120",
    "date": "2026-04-22T17:09:19.038Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda037",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 120",
        "parentItem": "6a85e33f277a43e1d0bd9b64",
        "quantity": 451,
        "unitprice": 451,
        "sellingPrice": 451,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda038",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 121",
        "parentItem": "6a85e33f277a43e1d0bd9b65",
        "quantity": 454.75,
        "unitprice": 454.75,
        "sellingPrice": 454.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda039",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 122",
        "parentItem": "6a85e33f277a43e1d0bd9b66",
        "quantity": 458.5,
        "unitprice": 458.5,
        "sellingPrice": 458.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 620420.81,
    "totalRevenue": 620420.81,
    "totalGrossProfit": 111675.75,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359038,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda03a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda03b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda03c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_120",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9165",
    "billNumber": "BILL-20260421-000121",
    "date": "2026-04-21T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda03d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 121",
        "parentItem": "6a85e33f277a43e1d0bd9b65",
        "quantity": 454.75,
        "unitprice": 454.75,
        "sellingPrice": 454.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 206797.56,
    "totalRevenue": 206797.56,
    "totalGrossProfit": 37223.56,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda03e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_121",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9166",
    "billNumber": "BILL-20260420-000122",
    "date": "2026-04-20T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda03f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 122",
        "parentItem": "6a85e33f277a43e1d0bd9b66",
        "quantity": 458.5,
        "unitprice": 458.5,
        "sellingPrice": 458.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda040",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 123",
        "parentItem": "6a85e33f277a43e1d0bd9b67",
        "quantity": 462.25,
        "unitprice": 462.25,
        "sellingPrice": 462.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 423897.31,
    "totalRevenue": 423897.31,
    "totalGrossProfit": 76301.52,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda041",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda042",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_122",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9167",
    "billNumber": "BILL-20260419-000123",
    "date": "2026-04-19T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda043",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 123",
        "parentItem": "6a85e33f277a43e1d0bd9b67",
        "quantity": 462.25,
        "unitprice": 462.25,
        "sellingPrice": 462.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda044",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 124",
        "parentItem": "6a85e33f277a43e1d0bd9b68",
        "quantity": 466,
        "unitprice": 466,
        "sellingPrice": 466,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda045",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 125",
        "parentItem": "6a85e33f277a43e1d0bd9b69",
        "quantity": 469.75,
        "unitprice": 469.75,
        "sellingPrice": 469.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 651496.13,
    "totalRevenue": 651496.13,
    "totalGrossProfit": 117269.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda046",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda047",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda048",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_123",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9168",
    "billNumber": "BILL-20260418-000124",
    "date": "2026-04-18T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda049",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 124",
        "parentItem": "6a85e33f277a43e1d0bd9b68",
        "quantity": 466,
        "unitprice": 466,
        "sellingPrice": 466,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 217156,
    "totalRevenue": 217156,
    "totalGrossProfit": 39088.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda04a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_124",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9169",
    "billNumber": "BILL-20260417-000125",
    "date": "2026-04-17T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda04b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 125",
        "parentItem": "6a85e33f277a43e1d0bd9b69",
        "quantity": 469.75,
        "unitprice": 469.75,
        "sellingPrice": 469.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda04c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 126",
        "parentItem": "6a85e33f277a43e1d0bd9b6a",
        "quantity": 473.5,
        "unitprice": 473.5,
        "sellingPrice": 473.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 444867.31,
    "totalRevenue": 444867.31,
    "totalGrossProfit": 80076.12,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda04d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda04e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_125",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd916a",
    "billNumber": "BILL-20260416-000126",
    "date": "2026-04-16T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda04f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 126",
        "parentItem": "6a85e33f277a43e1d0bd9b6a",
        "quantity": 473.5,
        "unitprice": 473.5,
        "sellingPrice": 473.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda050",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 127",
        "parentItem": "6a85e33f277a43e1d0bd9b6b",
        "quantity": 477.25,
        "unitprice": 477.25,
        "sellingPrice": 477.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda051",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 128",
        "parentItem": "6a85e33f277a43e1d0bd9b6c",
        "quantity": 481,
        "unitprice": 481,
        "sellingPrice": 481,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 683330.81,
    "totalRevenue": 683330.81,
    "totalGrossProfit": 122999.55,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda052",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda053",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda054",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_126",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd916b",
    "billNumber": "BILL-20260415-000127",
    "date": "2026-04-15T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda055",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 127",
        "parentItem": "6a85e33f277a43e1d0bd9b6b",
        "quantity": 477.25,
        "unitprice": 477.25,
        "sellingPrice": 477.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 227767.56,
    "totalRevenue": 227767.56,
    "totalGrossProfit": 40998.16,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda056",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_127",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd916c",
    "billNumber": "BILL-20260414-000128",
    "date": "2026-04-14T17:09:19.039Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda057",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 128",
        "parentItem": "6a85e33f277a43e1d0bd9b6c",
        "quantity": 481,
        "unitprice": 481,
        "sellingPrice": 481,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda058",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 129",
        "parentItem": "6a85e33f277a43e1d0bd9b6d",
        "quantity": 484.75,
        "unitprice": 484.75,
        "sellingPrice": 484.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 466343.56,
    "totalRevenue": 466343.56,
    "totalGrossProfit": 83941.84,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359039,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda059",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda05a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_128",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd916d",
    "billNumber": "BILL-20260413-000129",
    "date": "2026-04-13T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda05b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 129",
        "parentItem": "6a85e33f277a43e1d0bd9b6d",
        "quantity": 484.75,
        "unitprice": 484.75,
        "sellingPrice": 484.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda05c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 130",
        "parentItem": "6a85e33f277a43e1d0bd9b6e",
        "quantity": 488.5,
        "unitprice": 488.5,
        "sellingPrice": 488.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda05d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 131",
        "parentItem": "6a85e33f277a43e1d0bd9b6f",
        "quantity": 492.25,
        "unitprice": 492.25,
        "sellingPrice": 492.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 715924.88,
    "totalRevenue": 715924.88,
    "totalGrossProfit": 128866.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda05e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda05f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda060",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_129",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd916e",
    "billNumber": "BILL-20260412-000130",
    "date": "2026-04-12T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda061",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 130",
        "parentItem": "6a85e33f277a43e1d0bd9b6e",
        "quantity": 488.5,
        "unitprice": 488.5,
        "sellingPrice": 488.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 238632.25,
    "totalRevenue": 238632.25,
    "totalGrossProfit": 42953.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda062",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_130",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd916f",
    "billNumber": "BILL-20260411-000131",
    "date": "2026-04-11T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda063",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 131",
        "parentItem": "6a85e33f277a43e1d0bd9b6f",
        "quantity": 492.25,
        "unitprice": 492.25,
        "sellingPrice": 492.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda064",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 132",
        "parentItem": "6a85e33f277a43e1d0bd9b70",
        "quantity": 496,
        "unitprice": 496,
        "sellingPrice": 496,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 488326.06,
    "totalRevenue": 488326.06,
    "totalGrossProfit": 87898.69,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda065",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda066",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_131",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9170",
    "billNumber": "BILL-20260410-000132",
    "date": "2026-04-10T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda067",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 132",
        "parentItem": "6a85e33f277a43e1d0bd9b70",
        "quantity": 496,
        "unitprice": 496,
        "sellingPrice": 496,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda068",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 133",
        "parentItem": "6a85e33f277a43e1d0bd9b71",
        "quantity": 499.75,
        "unitprice": 499.75,
        "sellingPrice": 499.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda069",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 134",
        "parentItem": "6a85e33f277a43e1d0bd9b72",
        "quantity": 503.5,
        "unitprice": 503.5,
        "sellingPrice": 503.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 749278.31,
    "totalRevenue": 749278.31,
    "totalGrossProfit": 134870.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda06a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda06b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda06c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_132",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9171",
    "billNumber": "BILL-20260409-000133",
    "date": "2026-04-09T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda06d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 133",
        "parentItem": "6a85e33f277a43e1d0bd9b71",
        "quantity": 499.75,
        "unitprice": 499.75,
        "sellingPrice": 499.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 249750.06,
    "totalRevenue": 249750.06,
    "totalGrossProfit": 44955.01,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda06e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_133",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9172",
    "billNumber": "BILL-20260408-000134",
    "date": "2026-04-08T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda06f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 134",
        "parentItem": "6a85e33f277a43e1d0bd9b72",
        "quantity": 503.5,
        "unitprice": 503.5,
        "sellingPrice": 503.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda070",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 135",
        "parentItem": "6a85e33f277a43e1d0bd9b73",
        "quantity": 507.25,
        "unitprice": 507.25,
        "sellingPrice": 507.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 510814.81,
    "totalRevenue": 510814.81,
    "totalGrossProfit": 91946.67,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda071",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda072",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_134",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9173",
    "billNumber": "BILL-20260407-000135",
    "date": "2026-04-07T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda073",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 135",
        "parentItem": "6a85e33f277a43e1d0bd9b73",
        "quantity": 507.25,
        "unitprice": 507.25,
        "sellingPrice": 507.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda074",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 136",
        "parentItem": "6a85e33f277a43e1d0bd9b74",
        "quantity": 511,
        "unitprice": 511,
        "sellingPrice": 511,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda075",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 137",
        "parentItem": "6a85e33f277a43e1d0bd9b75",
        "quantity": 514.75,
        "unitprice": 514.75,
        "sellingPrice": 514.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 783391.13,
    "totalRevenue": 783391.13,
    "totalGrossProfit": 141010.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda076",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda077",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda078",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_135",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9174",
    "billNumber": "BILL-20260406-000136",
    "date": "2026-04-06T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda079",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 136",
        "parentItem": "6a85e33f277a43e1d0bd9b74",
        "quantity": 511,
        "unitprice": 511,
        "sellingPrice": 511,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 261121,
    "totalRevenue": 261121,
    "totalGrossProfit": 47001.78,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359040,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda07a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_136",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9175",
    "billNumber": "BILL-20260405-000137",
    "date": "2026-04-05T17:09:19.040Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda07b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 137",
        "parentItem": "6a85e33f277a43e1d0bd9b75",
        "quantity": 514.75,
        "unitprice": 514.75,
        "sellingPrice": 514.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda07c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 138",
        "parentItem": "6a85e33f277a43e1d0bd9b76",
        "quantity": 518.5,
        "unitprice": 518.5,
        "sellingPrice": 518.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 533809.81,
    "totalRevenue": 533809.81,
    "totalGrossProfit": 96085.77,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda07d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda07e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_137",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9176",
    "billNumber": "BILL-20260404-000138",
    "date": "2026-04-04T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda07f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 138",
        "parentItem": "6a85e33f277a43e1d0bd9b76",
        "quantity": 518.5,
        "unitprice": 518.5,
        "sellingPrice": 518.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda080",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 139",
        "parentItem": "6a85e33f277a43e1d0bd9b77",
        "quantity": 522.25,
        "unitprice": 522.25,
        "sellingPrice": 522.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda081",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 140",
        "parentItem": "6a85e33f277a43e1d0bd9b78",
        "quantity": 526,
        "unitprice": 526,
        "sellingPrice": 526,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 818263.31,
    "totalRevenue": 818263.31,
    "totalGrossProfit": 147287.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda082",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda083",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda084",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_138",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9177",
    "billNumber": "BILL-20260403-000139",
    "date": "2026-04-03T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda085",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 139",
        "parentItem": "6a85e33f277a43e1d0bd9b77",
        "quantity": 522.25,
        "unitprice": 522.25,
        "sellingPrice": 522.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 272745.06,
    "totalRevenue": 272745.06,
    "totalGrossProfit": 49094.11,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda086",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_139",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9178",
    "billNumber": "BILL-20260402-000140",
    "date": "2026-04-02T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda087",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 140",
        "parentItem": "6a85e33f277a43e1d0bd9b78",
        "quantity": 526,
        "unitprice": 526,
        "sellingPrice": 526,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda088",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 141",
        "parentItem": "6a85e33f277a43e1d0bd9b79",
        "quantity": 529.75,
        "unitprice": 529.75,
        "sellingPrice": 529.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 557311.06,
    "totalRevenue": 557311.06,
    "totalGrossProfit": 100315.99,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda089",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda08a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_140",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9179",
    "billNumber": "BILL-20260401-000141",
    "date": "2026-04-01T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda08b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 141",
        "parentItem": "6a85e33f277a43e1d0bd9b79",
        "quantity": 529.75,
        "unitprice": 529.75,
        "sellingPrice": 529.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda08c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 142",
        "parentItem": "6a85e33f277a43e1d0bd9b7a",
        "quantity": 533.5,
        "unitprice": 533.5,
        "sellingPrice": 533.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda08d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 143",
        "parentItem": "6a85e33f277a43e1d0bd9b7b",
        "quantity": 537.25,
        "unitprice": 537.25,
        "sellingPrice": 537.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 853894.88,
    "totalRevenue": 853894.88,
    "totalGrossProfit": 153701.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda08e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda08f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda090",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_141",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd917a",
    "billNumber": "BILL-20260331-000142",
    "date": "2026-03-31T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda091",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 142",
        "parentItem": "6a85e33f277a43e1d0bd9b7a",
        "quantity": 533.5,
        "unitprice": 533.5,
        "sellingPrice": 533.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 284622.25,
    "totalRevenue": 284622.25,
    "totalGrossProfit": 51232,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda092",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_142",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd917b",
    "billNumber": "BILL-20260330-000143",
    "date": "2026-03-30T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda093",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 143",
        "parentItem": "6a85e33f277a43e1d0bd9b7b",
        "quantity": 537.25,
        "unitprice": 537.25,
        "sellingPrice": 537.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda094",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 144",
        "parentItem": "6a85e33f277a43e1d0bd9b7c",
        "quantity": 541,
        "unitprice": 541,
        "sellingPrice": 541,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 581318.56,
    "totalRevenue": 581318.56,
    "totalGrossProfit": 104637.34,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda095",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda096",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_143",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd917c",
    "billNumber": "BILL-20260329-000144",
    "date": "2026-03-29T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda097",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 144",
        "parentItem": "6a85e33f277a43e1d0bd9b7c",
        "quantity": 541,
        "unitprice": 541,
        "sellingPrice": 541,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda098",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 145",
        "parentItem": "6a85e33f277a43e1d0bd9b7d",
        "quantity": 544.75,
        "unitprice": 544.75,
        "sellingPrice": 544.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda099",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 146",
        "parentItem": "6a85e33f277a43e1d0bd9b7e",
        "quantity": 548.5,
        "unitprice": 548.5,
        "sellingPrice": 548.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 890285.81,
    "totalRevenue": 890285.81,
    "totalGrossProfit": 160251.45,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda09a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda09b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359041,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda09c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_144",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd917d",
    "billNumber": "BILL-20260328-000145",
    "date": "2026-03-28T17:09:19.041Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda09d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 145",
        "parentItem": "6a85e33f277a43e1d0bd9b7d",
        "quantity": 544.75,
        "unitprice": 544.75,
        "sellingPrice": 544.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 296752.56,
    "totalRevenue": 296752.56,
    "totalGrossProfit": 53415.46,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359042,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda09e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_145",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd917e",
    "billNumber": "BILL-20260327-000146",
    "date": "2026-03-27T17:09:19.042Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda09f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 146",
        "parentItem": "6a85e33f277a43e1d0bd9b7e",
        "quantity": 548.5,
        "unitprice": 548.5,
        "sellingPrice": 548.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0a0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 147",
        "parentItem": "6a85e33f277a43e1d0bd9b7f",
        "quantity": 552.25,
        "unitprice": 552.25,
        "sellingPrice": 552.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 605832.31,
    "totalRevenue": 605832.31,
    "totalGrossProfit": 109049.82,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359042,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0a1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359042,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0a2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_146",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd917f",
    "billNumber": "BILL-20260326-000147",
    "date": "2026-03-26T17:09:19.042Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0a3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 147",
        "parentItem": "6a85e33f277a43e1d0bd9b7f",
        "quantity": 552.25,
        "unitprice": 552.25,
        "sellingPrice": 552.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0a4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 148",
        "parentItem": "6a85e33f277a43e1d0bd9b80",
        "quantity": 556,
        "unitprice": 556,
        "sellingPrice": 556,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0a5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 149",
        "parentItem": "6a85e33f277a43e1d0bd9b81",
        "quantity": 559.75,
        "unitprice": 559.75,
        "sellingPrice": 559.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 927436.13,
    "totalRevenue": 927436.13,
    "totalGrossProfit": 166938.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359042,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0a6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359042,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0a7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359042,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0a8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_147",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9180",
    "billNumber": "BILL-20260325-000148",
    "date": "2026-03-25T17:09:19.042Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0a9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 148",
        "parentItem": "6a85e33f277a43e1d0bd9b80",
        "quantity": 556,
        "unitprice": 556,
        "sellingPrice": 556,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 309136,
    "totalRevenue": 309136,
    "totalGrossProfit": 55644.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359043,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0aa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_148",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9181",
    "billNumber": "BILL-20260324-000149",
    "date": "2026-03-24T17:09:19.043Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0ab",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 149",
        "parentItem": "6a85e33f277a43e1d0bd9b81",
        "quantity": 559.75,
        "unitprice": 559.75,
        "sellingPrice": 559.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0ac",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 150",
        "parentItem": "6a85e33f277a43e1d0bd9b82",
        "quantity": 563.5,
        "unitprice": 563.5,
        "sellingPrice": 563.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 630852.31,
    "totalRevenue": 630852.31,
    "totalGrossProfit": 113553.42,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359043,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ad",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359043,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_149",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9182",
    "billNumber": "BILL-20260323-000150",
    "date": "2026-03-23T17:09:19.043Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0af",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 150",
        "parentItem": "6a85e33f277a43e1d0bd9b82",
        "quantity": 563.5,
        "unitprice": 563.5,
        "sellingPrice": 563.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0b0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 151",
        "parentItem": "6a85e33f277a43e1d0bd9b83",
        "quantity": 567.25,
        "unitprice": 567.25,
        "sellingPrice": 567.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0b1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 152",
        "parentItem": "6a85e33f277a43e1d0bd9b84",
        "quantity": 571,
        "unitprice": 571,
        "sellingPrice": 571,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 965345.81,
    "totalRevenue": 965345.81,
    "totalGrossProfit": 173762.25,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359043,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0b2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0b3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0b4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_150",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9183",
    "billNumber": "BILL-20260322-000151",
    "date": "2026-03-22T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0b5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 151",
        "parentItem": "6a85e33f277a43e1d0bd9b83",
        "quantity": 567.25,
        "unitprice": 567.25,
        "sellingPrice": 567.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 321772.56,
    "totalRevenue": 321772.56,
    "totalGrossProfit": 57919.06,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0b6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_151",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9184",
    "billNumber": "BILL-20260321-000152",
    "date": "2026-03-21T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0b7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 152",
        "parentItem": "6a85e33f277a43e1d0bd9b84",
        "quantity": 571,
        "unitprice": 571,
        "sellingPrice": 571,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0b8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 153",
        "parentItem": "6a85e33f277a43e1d0bd9b85",
        "quantity": 574.75,
        "unitprice": 574.75,
        "sellingPrice": 574.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 656378.56,
    "totalRevenue": 656378.56,
    "totalGrossProfit": 118148.14,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0b9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_152",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9185",
    "billNumber": "BILL-20260320-000153",
    "date": "2026-03-20T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0bb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 153",
        "parentItem": "6a85e33f277a43e1d0bd9b85",
        "quantity": 574.75,
        "unitprice": 574.75,
        "sellingPrice": 574.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0bc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 154",
        "parentItem": "6a85e33f277a43e1d0bd9b86",
        "quantity": 578.5,
        "unitprice": 578.5,
        "sellingPrice": 578.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0bd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 155",
        "parentItem": "6a85e33f277a43e1d0bd9b87",
        "quantity": 582.25,
        "unitprice": 582.25,
        "sellingPrice": 582.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1004014.88,
    "totalRevenue": 1004014.88,
    "totalGrossProfit": 180722.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0be",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0bf",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0c0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_153",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9186",
    "billNumber": "BILL-20260319-000154",
    "date": "2026-03-19T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0c1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 154",
        "parentItem": "6a85e33f277a43e1d0bd9b86",
        "quantity": 578.5,
        "unitprice": 578.5,
        "sellingPrice": 578.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 334662.25,
    "totalRevenue": 334662.25,
    "totalGrossProfit": 60239.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0c2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_154",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9187",
    "billNumber": "BILL-20260318-000155",
    "date": "2026-03-18T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0c3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 155",
        "parentItem": "6a85e33f277a43e1d0bd9b87",
        "quantity": 582.25,
        "unitprice": 582.25,
        "sellingPrice": 582.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0c4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 156",
        "parentItem": "6a85e33f277a43e1d0bd9b88",
        "quantity": 586,
        "unitprice": 586,
        "sellingPrice": 586,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 682411.06,
    "totalRevenue": 682411.06,
    "totalGrossProfit": 122833.99,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0c5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0c6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_155",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9188",
    "billNumber": "BILL-20260317-000156",
    "date": "2026-03-17T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0c7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 156",
        "parentItem": "6a85e33f277a43e1d0bd9b88",
        "quantity": 586,
        "unitprice": 586,
        "sellingPrice": 586,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0c8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 157",
        "parentItem": "6a85e33f277a43e1d0bd9b89",
        "quantity": 589.75,
        "unitprice": 589.75,
        "sellingPrice": 589.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0c9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 158",
        "parentItem": "6a85e33f277a43e1d0bd9b8a",
        "quantity": 593.5,
        "unitprice": 593.5,
        "sellingPrice": 593.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1043443.31,
    "totalRevenue": 1043443.31,
    "totalGrossProfit": 187819.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0cb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0cc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_156",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9189",
    "billNumber": "BILL-20260316-000157",
    "date": "2026-03-16T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0cd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 157",
        "parentItem": "6a85e33f277a43e1d0bd9b89",
        "quantity": 589.75,
        "unitprice": 589.75,
        "sellingPrice": 589.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 347805.06,
    "totalRevenue": 347805.06,
    "totalGrossProfit": 62604.91,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ce",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_157",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd918a",
    "billNumber": "BILL-20260315-000158",
    "date": "2026-03-15T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0cf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 158",
        "parentItem": "6a85e33f277a43e1d0bd9b8a",
        "quantity": 593.5,
        "unitprice": 593.5,
        "sellingPrice": 593.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0d0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 159",
        "parentItem": "6a85e33f277a43e1d0bd9b8b",
        "quantity": 597.25,
        "unitprice": 597.25,
        "sellingPrice": 597.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 708949.81,
    "totalRevenue": 708949.81,
    "totalGrossProfit": 127610.97,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0d1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0d2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_158",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd918b",
    "billNumber": "BILL-20260314-000159",
    "date": "2026-03-14T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0d3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 159",
        "parentItem": "6a85e33f277a43e1d0bd9b8b",
        "quantity": 597.25,
        "unitprice": 597.25,
        "sellingPrice": 597.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0d4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 160",
        "parentItem": "6a85e33f277a43e1d0bd9b8c",
        "quantity": 601,
        "unitprice": 601,
        "sellingPrice": 601,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0d5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 161",
        "parentItem": "6a85e33f277a43e1d0bd9b8d",
        "quantity": 604.75,
        "unitprice": 604.75,
        "sellingPrice": 604.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1083631.13,
    "totalRevenue": 1083631.13,
    "totalGrossProfit": 195053.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0d6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0d7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0d8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_159",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd918c",
    "billNumber": "BILL-20260313-000160",
    "date": "2026-03-13T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0d9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 160",
        "parentItem": "6a85e33f277a43e1d0bd9b8c",
        "quantity": 601,
        "unitprice": 601,
        "sellingPrice": 601,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 361201,
    "totalRevenue": 361201,
    "totalGrossProfit": 65016.18,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0da",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_160",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd918d",
    "billNumber": "BILL-20260312-000161",
    "date": "2026-03-12T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0db",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 161",
        "parentItem": "6a85e33f277a43e1d0bd9b8d",
        "quantity": 604.75,
        "unitprice": 604.75,
        "sellingPrice": 604.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0dc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 162",
        "parentItem": "6a85e33f277a43e1d0bd9b8e",
        "quantity": 608.5,
        "unitprice": 608.5,
        "sellingPrice": 608.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 735994.81,
    "totalRevenue": 735994.81,
    "totalGrossProfit": 132479.07,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0dd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0de",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_161",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd918e",
    "billNumber": "BILL-20260311-000162",
    "date": "2026-03-11T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0df",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 162",
        "parentItem": "6a85e33f277a43e1d0bd9b8e",
        "quantity": 608.5,
        "unitprice": 608.5,
        "sellingPrice": 608.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0e0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 163",
        "parentItem": "6a85e33f277a43e1d0bd9b8f",
        "quantity": 612.25,
        "unitprice": 612.25,
        "sellingPrice": 612.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0e1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 164",
        "parentItem": "6a85e33f277a43e1d0bd9b90",
        "quantity": 616,
        "unitprice": 616,
        "sellingPrice": 616,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1124578.31,
    "totalRevenue": 1124578.31,
    "totalGrossProfit": 202424.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0e2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0e3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0e4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_162",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd918f",
    "billNumber": "BILL-20260310-000163",
    "date": "2026-03-10T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0e5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 163",
        "parentItem": "6a85e33f277a43e1d0bd9b8f",
        "quantity": 612.25,
        "unitprice": 612.25,
        "sellingPrice": 612.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 374850.06,
    "totalRevenue": 374850.06,
    "totalGrossProfit": 67473.01,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359044,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0e6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_163",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9190",
    "billNumber": "BILL-20260309-000164",
    "date": "2026-03-09T17:09:19.044Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0e7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 164",
        "parentItem": "6a85e33f277a43e1d0bd9b90",
        "quantity": 616,
        "unitprice": 616,
        "sellingPrice": 616,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0e8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 165",
        "parentItem": "6a85e33f277a43e1d0bd9b91",
        "quantity": 619.75,
        "unitprice": 619.75,
        "sellingPrice": 619.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 763546.06,
    "totalRevenue": 763546.06,
    "totalGrossProfit": 137438.29,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0e9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_164",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9191",
    "billNumber": "BILL-20260308-000165",
    "date": "2026-03-08T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0eb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 165",
        "parentItem": "6a85e33f277a43e1d0bd9b91",
        "quantity": 619.75,
        "unitprice": 619.75,
        "sellingPrice": 619.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0ec",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 166",
        "parentItem": "6a85e33f277a43e1d0bd9b92",
        "quantity": 623.5,
        "unitprice": 623.5,
        "sellingPrice": 623.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0ed",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 167",
        "parentItem": "6a85e33f277a43e1d0bd9b93",
        "quantity": 627.25,
        "unitprice": 627.25,
        "sellingPrice": 627.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1166284.88,
    "totalRevenue": 1166284.88,
    "totalGrossProfit": 209931.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0ef",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0f0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_165",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9192",
    "billNumber": "BILL-20260307-000166",
    "date": "2026-03-07T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0f1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 166",
        "parentItem": "6a85e33f277a43e1d0bd9b92",
        "quantity": 623.5,
        "unitprice": 623.5,
        "sellingPrice": 623.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 388752.25,
    "totalRevenue": 388752.25,
    "totalGrossProfit": 69975.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0f2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_166",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9193",
    "billNumber": "BILL-20260306-000167",
    "date": "2026-03-06T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0f3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 167",
        "parentItem": "6a85e33f277a43e1d0bd9b93",
        "quantity": 627.25,
        "unitprice": 627.25,
        "sellingPrice": 627.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0f4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 168",
        "parentItem": "6a85e33f277a43e1d0bd9b94",
        "quantity": 631,
        "unitprice": 631,
        "sellingPrice": 631,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 791603.56,
    "totalRevenue": 791603.56,
    "totalGrossProfit": 142488.64,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0f5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0f6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_167",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9194",
    "billNumber": "BILL-20260305-000168",
    "date": "2026-03-05T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0f7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 168",
        "parentItem": "6a85e33f277a43e1d0bd9b94",
        "quantity": 631,
        "unitprice": 631,
        "sellingPrice": 631,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0f8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 169",
        "parentItem": "6a85e33f277a43e1d0bd9b95",
        "quantity": 634.75,
        "unitprice": 634.75,
        "sellingPrice": 634.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda0f9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 170",
        "parentItem": "6a85e33f277a43e1d0bd9b96",
        "quantity": 638.5,
        "unitprice": 638.5,
        "sellingPrice": 638.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1208750.81,
    "totalRevenue": 1208750.81,
    "totalGrossProfit": 217575.15,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0fa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0fb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0fc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_168",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9195",
    "billNumber": "BILL-20260304-000169",
    "date": "2026-03-04T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0fd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 169",
        "parentItem": "6a85e33f277a43e1d0bd9b95",
        "quantity": 634.75,
        "unitprice": 634.75,
        "sellingPrice": 634.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 402907.56,
    "totalRevenue": 402907.56,
    "totalGrossProfit": 72523.36,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda0fe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_169",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9196",
    "billNumber": "BILL-20260303-000170",
    "date": "2026-03-03T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda0ff",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 170",
        "parentItem": "6a85e33f277a43e1d0bd9b96",
        "quantity": 638.5,
        "unitprice": 638.5,
        "sellingPrice": 638.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda100",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 171",
        "parentItem": "6a85e33f277a43e1d0bd9b97",
        "quantity": 642.25,
        "unitprice": 642.25,
        "sellingPrice": 642.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 820167.31,
    "totalRevenue": 820167.31,
    "totalGrossProfit": 147630.12,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda101",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda102",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_170",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9197",
    "billNumber": "BILL-20260302-000171",
    "date": "2026-03-02T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda103",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 171",
        "parentItem": "6a85e33f277a43e1d0bd9b97",
        "quantity": 642.25,
        "unitprice": 642.25,
        "sellingPrice": 642.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda104",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 172",
        "parentItem": "6a85e33f277a43e1d0bd9b98",
        "quantity": 646,
        "unitprice": 646,
        "sellingPrice": 646,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda105",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 173",
        "parentItem": "6a85e33f277a43e1d0bd9b99",
        "quantity": 649.75,
        "unitprice": 649.75,
        "sellingPrice": 649.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1251976.13,
    "totalRevenue": 1251976.13,
    "totalGrossProfit": 225355.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda106",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda107",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda108",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_171",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9198",
    "billNumber": "BILL-20260301-000172",
    "date": "2026-03-01T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda109",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 172",
        "parentItem": "6a85e33f277a43e1d0bd9b98",
        "quantity": 646,
        "unitprice": 646,
        "sellingPrice": 646,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 417316,
    "totalRevenue": 417316,
    "totalGrossProfit": 75116.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda10a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_172",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9199",
    "billNumber": "BILL-20260228-000173",
    "date": "2026-02-28T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda10b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 173",
        "parentItem": "6a85e33f277a43e1d0bd9b99",
        "quantity": 649.75,
        "unitprice": 649.75,
        "sellingPrice": 649.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda10c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 174",
        "parentItem": "6a85e33f277a43e1d0bd9b9a",
        "quantity": 653.5,
        "unitprice": 653.5,
        "sellingPrice": 653.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 849237.31,
    "totalRevenue": 849237.31,
    "totalGrossProfit": 152862.72,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda10d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda10e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_173",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd919a",
    "billNumber": "BILL-20260227-000174",
    "date": "2026-02-27T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda10f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 174",
        "parentItem": "6a85e33f277a43e1d0bd9b9a",
        "quantity": 653.5,
        "unitprice": 653.5,
        "sellingPrice": 653.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda110",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 175",
        "parentItem": "6a85e33f277a43e1d0bd9b9b",
        "quantity": 657.25,
        "unitprice": 657.25,
        "sellingPrice": 657.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda111",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 176",
        "parentItem": "6a85e33f277a43e1d0bd9b9c",
        "quantity": 661,
        "unitprice": 661,
        "sellingPrice": 661,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1295960.81,
    "totalRevenue": 1295960.81,
    "totalGrossProfit": 233272.95,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda112",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda113",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda114",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_174",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd919b",
    "billNumber": "BILL-20260226-000175",
    "date": "2026-02-26T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda115",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 175",
        "parentItem": "6a85e33f277a43e1d0bd9b9b",
        "quantity": 657.25,
        "unitprice": 657.25,
        "sellingPrice": 657.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 431977.56,
    "totalRevenue": 431977.56,
    "totalGrossProfit": 77755.96,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda116",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_175",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd919c",
    "billNumber": "BILL-20260225-000176",
    "date": "2026-02-25T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda117",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 176",
        "parentItem": "6a85e33f277a43e1d0bd9b9c",
        "quantity": 661,
        "unitprice": 661,
        "sellingPrice": 661,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda118",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 177",
        "parentItem": "6a85e33f277a43e1d0bd9b9d",
        "quantity": 664.75,
        "unitprice": 664.75,
        "sellingPrice": 664.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 878813.56,
    "totalRevenue": 878813.56,
    "totalGrossProfit": 158186.44,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda119",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda11a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_176",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd919d",
    "billNumber": "BILL-20260224-000177",
    "date": "2026-02-24T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda11b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 177",
        "parentItem": "6a85e33f277a43e1d0bd9b9d",
        "quantity": 664.75,
        "unitprice": 664.75,
        "sellingPrice": 664.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda11c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 178",
        "parentItem": "6a85e33f277a43e1d0bd9b9e",
        "quantity": 668.5,
        "unitprice": 668.5,
        "sellingPrice": 668.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda11d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 179",
        "parentItem": "6a85e33f277a43e1d0bd9b9f",
        "quantity": 672.25,
        "unitprice": 672.25,
        "sellingPrice": 672.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1340704.88,
    "totalRevenue": 1340704.88,
    "totalGrossProfit": 241326.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda11e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda11f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359045,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda120",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_177",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd919e",
    "billNumber": "BILL-20260223-000178",
    "date": "2026-02-23T17:09:19.045Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda121",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 178",
        "parentItem": "6a85e33f277a43e1d0bd9b9e",
        "quantity": 668.5,
        "unitprice": 668.5,
        "sellingPrice": 668.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 446892.25,
    "totalRevenue": 446892.25,
    "totalGrossProfit": 80440.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda122",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_178",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd919f",
    "billNumber": "BILL-20260222-000179",
    "date": "2026-02-22T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda123",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 179",
        "parentItem": "6a85e33f277a43e1d0bd9b9f",
        "quantity": 672.25,
        "unitprice": 672.25,
        "sellingPrice": 672.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda124",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 180",
        "parentItem": "6a85e33f277a43e1d0bd9ba0",
        "quantity": 676,
        "unitprice": 676,
        "sellingPrice": 676,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 908896.06,
    "totalRevenue": 908896.06,
    "totalGrossProfit": 163601.29,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda125",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda126",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_179",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a0",
    "billNumber": "BILL-20260221-000180",
    "date": "2026-02-21T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda127",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 180",
        "parentItem": "6a85e33f277a43e1d0bd9ba0",
        "quantity": 676,
        "unitprice": 676,
        "sellingPrice": 676,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda128",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 181",
        "parentItem": "6a85e33f277a43e1d0bd9ba1",
        "quantity": 679.75,
        "unitprice": 679.75,
        "sellingPrice": 679.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda129",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 182",
        "parentItem": "6a85e33f277a43e1d0bd9ba2",
        "quantity": 683.5,
        "unitprice": 683.5,
        "sellingPrice": 683.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1386208.31,
    "totalRevenue": 1386208.31,
    "totalGrossProfit": 249517.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda12a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda12b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda12c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_180",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a1",
    "billNumber": "BILL-20260220-000181",
    "date": "2026-02-20T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda12d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 181",
        "parentItem": "6a85e33f277a43e1d0bd9ba1",
        "quantity": 679.75,
        "unitprice": 679.75,
        "sellingPrice": 679.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 462060.06,
    "totalRevenue": 462060.06,
    "totalGrossProfit": 83170.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda12e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_181",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a2",
    "billNumber": "BILL-20260219-000182",
    "date": "2026-02-19T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda12f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 182",
        "parentItem": "6a85e33f277a43e1d0bd9ba2",
        "quantity": 683.5,
        "unitprice": 683.5,
        "sellingPrice": 683.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda130",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 183",
        "parentItem": "6a85e33f277a43e1d0bd9ba3",
        "quantity": 687.25,
        "unitprice": 687.25,
        "sellingPrice": 687.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 939484.81,
    "totalRevenue": 939484.81,
    "totalGrossProfit": 169107.27,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda131",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda132",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_182",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a3",
    "billNumber": "BILL-20260218-000183",
    "date": "2026-02-18T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda133",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 183",
        "parentItem": "6a85e33f277a43e1d0bd9ba3",
        "quantity": 687.25,
        "unitprice": 687.25,
        "sellingPrice": 687.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda134",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 184",
        "parentItem": "6a85e33f277a43e1d0bd9ba4",
        "quantity": 691,
        "unitprice": 691,
        "sellingPrice": 691,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda135",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 185",
        "parentItem": "6a85e33f277a43e1d0bd9ba5",
        "quantity": 694.75,
        "unitprice": 694.75,
        "sellingPrice": 694.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1432471.13,
    "totalRevenue": 1432471.13,
    "totalGrossProfit": 257844.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda136",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda137",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda138",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_183",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a4",
    "billNumber": "BILL-20260217-000184",
    "date": "2026-02-17T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda139",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 184",
        "parentItem": "6a85e33f277a43e1d0bd9ba4",
        "quantity": 691,
        "unitprice": 691,
        "sellingPrice": 691,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 477481,
    "totalRevenue": 477481,
    "totalGrossProfit": 85946.58,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda13a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_184",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a5",
    "billNumber": "BILL-20260216-000185",
    "date": "2026-02-16T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda13b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 185",
        "parentItem": "6a85e33f277a43e1d0bd9ba5",
        "quantity": 694.75,
        "unitprice": 694.75,
        "sellingPrice": 694.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda13c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 186",
        "parentItem": "6a85e33f277a43e1d0bd9ba6",
        "quantity": 698.5,
        "unitprice": 698.5,
        "sellingPrice": 698.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 970579.81,
    "totalRevenue": 970579.81,
    "totalGrossProfit": 174704.37,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda13d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda13e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_185",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a6",
    "billNumber": "BILL-20260215-000186",
    "date": "2026-02-15T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda13f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 186",
        "parentItem": "6a85e33f277a43e1d0bd9ba6",
        "quantity": 698.5,
        "unitprice": 698.5,
        "sellingPrice": 698.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda140",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 187",
        "parentItem": "6a85e33f277a43e1d0bd9ba7",
        "quantity": 702.25,
        "unitprice": 702.25,
        "sellingPrice": 702.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda141",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 188",
        "parentItem": "6a85e33f277a43e1d0bd9ba8",
        "quantity": 706,
        "unitprice": 706,
        "sellingPrice": 706,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1479493.31,
    "totalRevenue": 1479493.31,
    "totalGrossProfit": 266308.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda142",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda143",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda144",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_186",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a7",
    "billNumber": "BILL-20260214-000187",
    "date": "2026-02-14T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda145",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 187",
        "parentItem": "6a85e33f277a43e1d0bd9ba7",
        "quantity": 702.25,
        "unitprice": 702.25,
        "sellingPrice": 702.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 493155.06,
    "totalRevenue": 493155.06,
    "totalGrossProfit": 88767.91,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda146",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_187",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a8",
    "billNumber": "BILL-20260213-000188",
    "date": "2026-02-13T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda147",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 188",
        "parentItem": "6a85e33f277a43e1d0bd9ba8",
        "quantity": 706,
        "unitprice": 706,
        "sellingPrice": 706,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda148",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 189",
        "parentItem": "6a85e33f277a43e1d0bd9ba9",
        "quantity": 709.75,
        "unitprice": 709.75,
        "sellingPrice": 709.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1002181.06,
    "totalRevenue": 1002181.06,
    "totalGrossProfit": 180392.59,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda149",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda14a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_188",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91a9",
    "billNumber": "BILL-20260212-000189",
    "date": "2026-02-12T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda14b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 189",
        "parentItem": "6a85e33f277a43e1d0bd9ba9",
        "quantity": 709.75,
        "unitprice": 709.75,
        "sellingPrice": 709.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda14c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 190",
        "parentItem": "6a85e33f277a43e1d0bd9baa",
        "quantity": 713.5,
        "unitprice": 713.5,
        "sellingPrice": 713.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda14d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 191",
        "parentItem": "6a85e33f277a43e1d0bd9bab",
        "quantity": 717.25,
        "unitprice": 717.25,
        "sellingPrice": 717.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1527274.88,
    "totalRevenue": 1527274.88,
    "totalGrossProfit": 274909.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda14e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda14f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda150",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_189",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91aa",
    "billNumber": "BILL-20260211-000190",
    "date": "2026-02-11T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda151",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 190",
        "parentItem": "6a85e33f277a43e1d0bd9baa",
        "quantity": 713.5,
        "unitprice": 713.5,
        "sellingPrice": 713.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 509082.25,
    "totalRevenue": 509082.25,
    "totalGrossProfit": 91634.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda152",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_190",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ab",
    "billNumber": "BILL-20260210-000191",
    "date": "2026-02-10T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda153",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 191",
        "parentItem": "6a85e33f277a43e1d0bd9bab",
        "quantity": 717.25,
        "unitprice": 717.25,
        "sellingPrice": 717.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda154",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 192",
        "parentItem": "6a85e33f277a43e1d0bd9bac",
        "quantity": 721,
        "unitprice": 721,
        "sellingPrice": 721,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1034288.56,
    "totalRevenue": 1034288.56,
    "totalGrossProfit": 186171.94,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda155",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359046,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda156",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_191",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ac",
    "billNumber": "BILL-20260209-000192",
    "date": "2026-02-09T17:09:19.046Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda157",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 192",
        "parentItem": "6a85e33f277a43e1d0bd9bac",
        "quantity": 721,
        "unitprice": 721,
        "sellingPrice": 721,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda158",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 193",
        "parentItem": "6a85e33f277a43e1d0bd9bad",
        "quantity": 724.75,
        "unitprice": 724.75,
        "sellingPrice": 724.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda159",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 194",
        "parentItem": "6a85e33f277a43e1d0bd9bae",
        "quantity": 728.5,
        "unitprice": 728.5,
        "sellingPrice": 728.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1575815.81,
    "totalRevenue": 1575815.81,
    "totalGrossProfit": 283646.85,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda15a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda15b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda15c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_192",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ad",
    "billNumber": "BILL-20260208-000193",
    "date": "2026-02-08T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda15d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 193",
        "parentItem": "6a85e33f277a43e1d0bd9bad",
        "quantity": 724.75,
        "unitprice": 724.75,
        "sellingPrice": 724.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 525262.56,
    "totalRevenue": 525262.56,
    "totalGrossProfit": 94547.26,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda15e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_193",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ae",
    "billNumber": "BILL-20260207-000194",
    "date": "2026-02-07T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda15f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 194",
        "parentItem": "6a85e33f277a43e1d0bd9bae",
        "quantity": 728.5,
        "unitprice": 728.5,
        "sellingPrice": 728.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda160",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 195",
        "parentItem": "6a85e33f277a43e1d0bd9baf",
        "quantity": 732.25,
        "unitprice": 732.25,
        "sellingPrice": 732.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1066902.31,
    "totalRevenue": 1066902.31,
    "totalGrossProfit": 192042.42,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda161",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda162",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_194",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91af",
    "billNumber": "BILL-20260206-000195",
    "date": "2026-02-06T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda163",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 195",
        "parentItem": "6a85e33f277a43e1d0bd9baf",
        "quantity": 732.25,
        "unitprice": 732.25,
        "sellingPrice": 732.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda164",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 196",
        "parentItem": "6a85e33f277a43e1d0bd9bb0",
        "quantity": 736,
        "unitprice": 736,
        "sellingPrice": 736,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda165",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 197",
        "parentItem": "6a85e33f277a43e1d0bd9bb1",
        "quantity": 739.75,
        "unitprice": 739.75,
        "sellingPrice": 739.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1625116.13,
    "totalRevenue": 1625116.13,
    "totalGrossProfit": 292520.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda166",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda167",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda168",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_195",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b0",
    "billNumber": "BILL-20260205-000196",
    "date": "2026-02-05T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda169",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 196",
        "parentItem": "6a85e33f277a43e1d0bd9bb0",
        "quantity": 736,
        "unitprice": 736,
        "sellingPrice": 736,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 541696,
    "totalRevenue": 541696,
    "totalGrossProfit": 97505.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda16a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_196",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b1",
    "billNumber": "BILL-20260204-000197",
    "date": "2026-02-04T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda16b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 197",
        "parentItem": "6a85e33f277a43e1d0bd9bb1",
        "quantity": 739.75,
        "unitprice": 739.75,
        "sellingPrice": 739.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda16c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 198",
        "parentItem": "6a85e33f277a43e1d0bd9bb2",
        "quantity": 743.5,
        "unitprice": 743.5,
        "sellingPrice": 743.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1100022.31,
    "totalRevenue": 1100022.31,
    "totalGrossProfit": 198004.02,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda16d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda16e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_197",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b2",
    "billNumber": "BILL-20260203-000198",
    "date": "2026-02-03T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda16f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 198",
        "parentItem": "6a85e33f277a43e1d0bd9bb2",
        "quantity": 743.5,
        "unitprice": 743.5,
        "sellingPrice": 743.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda170",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 199",
        "parentItem": "6a85e33f277a43e1d0bd9bb3",
        "quantity": 747.25,
        "unitprice": 747.25,
        "sellingPrice": 747.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda171",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 200",
        "parentItem": "6a85e33f277a43e1d0bd9bb4",
        "quantity": 751,
        "unitprice": 751,
        "sellingPrice": 751,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1675175.81,
    "totalRevenue": 1675175.81,
    "totalGrossProfit": 301531.65,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda172",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda173",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda174",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_198",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b3",
    "billNumber": "BILL-20260202-000199",
    "date": "2026-02-02T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda175",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 199",
        "parentItem": "6a85e33f277a43e1d0bd9bb3",
        "quantity": 747.25,
        "unitprice": 747.25,
        "sellingPrice": 747.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 558382.56,
    "totalRevenue": 558382.56,
    "totalGrossProfit": 100508.86,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda176",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_199",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b4",
    "billNumber": "BILL-20260201-000200",
    "date": "2026-02-01T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda177",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 200",
        "parentItem": "6a85e33f277a43e1d0bd9bb4",
        "quantity": 751,
        "unitprice": 751,
        "sellingPrice": 751,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda178",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 201",
        "parentItem": "6a85e33f277a43e1d0bd9bb5",
        "quantity": 4.75,
        "unitprice": 4.75,
        "sellingPrice": 4.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 564023.56,
    "totalRevenue": 564023.56,
    "totalGrossProfit": 101524.24,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda179",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda17a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_200",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b5",
    "billNumber": "BILL-20260131-000201",
    "date": "2026-01-31T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda17b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 201",
        "parentItem": "6a85e33f277a43e1d0bd9bb5",
        "quantity": 4.75,
        "unitprice": 4.75,
        "sellingPrice": 4.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda17c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 202",
        "parentItem": "6a85e33f277a43e1d0bd9bb6",
        "quantity": 8.5,
        "unitprice": 8.5,
        "sellingPrice": 8.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda17d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 203",
        "parentItem": "6a85e33f277a43e1d0bd9bb7",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 244.88,
    "totalRevenue": 244.88,
    "totalGrossProfit": 44.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda17e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda17f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda180",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_201",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b6",
    "billNumber": "BILL-20260130-000202",
    "date": "2026-01-30T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda181",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 202",
        "parentItem": "6a85e33f277a43e1d0bd9bb6",
        "quantity": 8.5,
        "unitprice": 8.5,
        "sellingPrice": 8.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 72.25,
    "totalRevenue": 72.25,
    "totalGrossProfit": 13,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda182",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_202",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b7",
    "billNumber": "BILL-20260129-000203",
    "date": "2026-01-29T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda183",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 203",
        "parentItem": "6a85e33f277a43e1d0bd9bb7",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda184",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 204",
        "parentItem": "6a85e33f277a43e1d0bd9bb8",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 406.06,
    "totalRevenue": 406.06,
    "totalGrossProfit": 73.09,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda185",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda186",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_203",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b8",
    "billNumber": "BILL-20260128-000204",
    "date": "2026-01-28T17:09:19.047Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda187",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 204",
        "parentItem": "6a85e33f277a43e1d0bd9bb8",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda188",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 205",
        "parentItem": "6a85e33f277a43e1d0bd9bb9",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda189",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 206",
        "parentItem": "6a85e33f277a43e1d0bd9bba",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1198.31,
    "totalRevenue": 1198.31,
    "totalGrossProfit": 215.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda18a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda18b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359047,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda18c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_204",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91b9",
    "billNumber": "BILL-20260127-000205",
    "date": "2026-01-27T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda18d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 205",
        "parentItem": "6a85e33f277a43e1d0bd9bb9",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 390.06,
    "totalRevenue": 390.06,
    "totalGrossProfit": 70.21,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda18e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_205",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ba",
    "billNumber": "BILL-20260126-000206",
    "date": "2026-01-26T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda18f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 206",
        "parentItem": "6a85e33f277a43e1d0bd9bba",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda190",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 207",
        "parentItem": "6a85e33f277a43e1d0bd9bbb",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1294.81,
    "totalRevenue": 1294.81,
    "totalGrossProfit": 233.07,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda191",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda192",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_206",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91bb",
    "billNumber": "BILL-20260125-000207",
    "date": "2026-01-25T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda193",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 207",
        "parentItem": "6a85e33f277a43e1d0bd9bbb",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda194",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 208",
        "parentItem": "6a85e33f277a43e1d0bd9bbc",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda195",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 209",
        "parentItem": "6a85e33f277a43e1d0bd9bbd",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 2911.13,
    "totalRevenue": 2911.13,
    "totalGrossProfit": 524,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda196",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda197",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda198",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_207",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91bc",
    "billNumber": "BILL-20260124-000208",
    "date": "2026-01-24T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda199",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 208",
        "parentItem": "6a85e33f277a43e1d0bd9bbc",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 961,
    "totalRevenue": 961,
    "totalGrossProfit": 172.98,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda19a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_208",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91bd",
    "billNumber": "BILL-20260123-000209",
    "date": "2026-01-23T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda19b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 209",
        "parentItem": "6a85e33f277a43e1d0bd9bbd",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda19c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 210",
        "parentItem": "6a85e33f277a43e1d0bd9bbe",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 2689.81,
    "totalRevenue": 2689.81,
    "totalGrossProfit": 484.17,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda19d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda19e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_209",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91be",
    "billNumber": "BILL-20260122-000210",
    "date": "2026-01-22T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda19f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 210",
        "parentItem": "6a85e33f277a43e1d0bd9bbe",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1a0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 211",
        "parentItem": "6a85e33f277a43e1d0bd9bbf",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1a1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 212",
        "parentItem": "6a85e33f277a43e1d0bd9bc0",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 5383.31,
    "totalRevenue": 5383.31,
    "totalGrossProfit": 969,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1a2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1a3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1a4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_210",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91bf",
    "billNumber": "BILL-20260121-000211",
    "date": "2026-01-21T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1a5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 211",
        "parentItem": "6a85e33f277a43e1d0bd9bbf",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1785.06,
    "totalRevenue": 1785.06,
    "totalGrossProfit": 321.31,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1a6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_211",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c0",
    "billNumber": "BILL-20260120-000212",
    "date": "2026-01-20T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1a7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 212",
        "parentItem": "6a85e33f277a43e1d0bd9bc0",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1a8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 213",
        "parentItem": "6a85e33f277a43e1d0bd9bc1",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 4591.06,
    "totalRevenue": 4591.06,
    "totalGrossProfit": 826.39,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1a9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1aa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_212",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c1",
    "billNumber": "BILL-20260119-000213",
    "date": "2026-01-19T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1ab",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 213",
        "parentItem": "6a85e33f277a43e1d0bd9bc1",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1ac",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 214",
        "parentItem": "6a85e33f277a43e1d0bd9bc2",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1ad",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 215",
        "parentItem": "6a85e33f277a43e1d0bd9bc3",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 8614.88,
    "totalRevenue": 8614.88,
    "totalGrossProfit": 1550.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1ae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1af",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1b0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_213",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c2",
    "billNumber": "BILL-20260118-000214",
    "date": "2026-01-18T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1b1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 214",
        "parentItem": "6a85e33f277a43e1d0bd9bc2",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 2862.25,
    "totalRevenue": 2862.25,
    "totalGrossProfit": 515.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1b2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_214",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c3",
    "billNumber": "BILL-20260117-000215",
    "date": "2026-01-17T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1b3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 215",
        "parentItem": "6a85e33f277a43e1d0bd9bc3",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1b4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 216",
        "parentItem": "6a85e33f277a43e1d0bd9bc4",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 6998.56,
    "totalRevenue": 6998.56,
    "totalGrossProfit": 1259.74,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1b5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1b6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_215",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c4",
    "billNumber": "BILL-20260116-000216",
    "date": "2026-01-16T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1b7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 216",
        "parentItem": "6a85e33f277a43e1d0bd9bc4",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1b8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 217",
        "parentItem": "6a85e33f277a43e1d0bd9bc5",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1b9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 218",
        "parentItem": "6a85e33f277a43e1d0bd9bc6",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 12605.81,
    "totalRevenue": 12605.81,
    "totalGrossProfit": 2269.05,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1ba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1bb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1bc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_216",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c5",
    "billNumber": "BILL-20260115-000217",
    "date": "2026-01-15T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1bd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 217",
        "parentItem": "6a85e33f277a43e1d0bd9bc5",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 4192.56,
    "totalRevenue": 4192.56,
    "totalGrossProfit": 754.66,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359048,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1be",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_217",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c6",
    "billNumber": "BILL-20260114-000218",
    "date": "2026-01-14T17:09:19.048Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1bf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 218",
        "parentItem": "6a85e33f277a43e1d0bd9bc6",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1c0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 219",
        "parentItem": "6a85e33f277a43e1d0bd9bc7",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 9912.31,
    "totalRevenue": 9912.31,
    "totalGrossProfit": 1784.22,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1c1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1c2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_218",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c7",
    "billNumber": "BILL-20260113-000219",
    "date": "2026-01-13T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1c3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 219",
        "parentItem": "6a85e33f277a43e1d0bd9bc7",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1c4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 220",
        "parentItem": "6a85e33f277a43e1d0bd9bc8",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1c5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 221",
        "parentItem": "6a85e33f277a43e1d0bd9bc9",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 17356.13,
    "totalRevenue": 17356.13,
    "totalGrossProfit": 3124.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1c6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1c7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1c8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_219",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c8",
    "billNumber": "BILL-20260112-000220",
    "date": "2026-01-12T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1c9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 220",
        "parentItem": "6a85e33f277a43e1d0bd9bc8",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 5776,
    "totalRevenue": 5776,
    "totalGrossProfit": 1039.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1ca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_220",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91c9",
    "billNumber": "BILL-20260111-000221",
    "date": "2026-01-11T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1cb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 221",
        "parentItem": "6a85e33f277a43e1d0bd9bc9",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1cc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 222",
        "parentItem": "6a85e33f277a43e1d0bd9bca",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 13332.31,
    "totalRevenue": 13332.31,
    "totalGrossProfit": 2399.82,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1cd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1ce",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_221",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ca",
    "billNumber": "BILL-20260110-000222",
    "date": "2026-01-10T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1cf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 222",
        "parentItem": "6a85e33f277a43e1d0bd9bca",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1d0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 223",
        "parentItem": "6a85e33f277a43e1d0bd9bcb",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1d1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 224",
        "parentItem": "6a85e33f277a43e1d0bd9bcc",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 22865.81,
    "totalRevenue": 22865.81,
    "totalGrossProfit": 4115.85,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1d2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1d3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1d4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_222",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91cb",
    "billNumber": "BILL-20260109-000223",
    "date": "2026-01-09T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1d5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 223",
        "parentItem": "6a85e33f277a43e1d0bd9bcb",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 7612.56,
    "totalRevenue": 7612.56,
    "totalGrossProfit": 1370.26,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1d6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_223",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91cc",
    "billNumber": "BILL-20260108-000224",
    "date": "2026-01-08T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1d7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 224",
        "parentItem": "6a85e33f277a43e1d0bd9bcc",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1d8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 225",
        "parentItem": "6a85e33f277a43e1d0bd9bcd",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 17258.56,
    "totalRevenue": 17258.56,
    "totalGrossProfit": 3106.54,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1d9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1da",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_224",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91cd",
    "billNumber": "BILL-20260107-000225",
    "date": "2026-01-07T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1db",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 225",
        "parentItem": "6a85e33f277a43e1d0bd9bcd",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1dc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 226",
        "parentItem": "6a85e33f277a43e1d0bd9bce",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1dd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 227",
        "parentItem": "6a85e33f277a43e1d0bd9bcf",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 29134.88,
    "totalRevenue": 29134.88,
    "totalGrossProfit": 5244.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1de",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1df",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1e0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_225",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ce",
    "billNumber": "BILL-20260106-000226",
    "date": "2026-01-06T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1e1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 226",
        "parentItem": "6a85e33f277a43e1d0bd9bce",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 9702.25,
    "totalRevenue": 9702.25,
    "totalGrossProfit": 1746.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1e2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_226",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91cf",
    "billNumber": "BILL-20260105-000227",
    "date": "2026-01-05T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1e3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 227",
        "parentItem": "6a85e33f277a43e1d0bd9bcf",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1e4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 228",
        "parentItem": "6a85e33f277a43e1d0bd9bd0",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 21691.06,
    "totalRevenue": 21691.06,
    "totalGrossProfit": 3904.39,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1e5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1e6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_227",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d0",
    "billNumber": "BILL-20260104-000228",
    "date": "2026-01-04T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1e7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 228",
        "parentItem": "6a85e33f277a43e1d0bd9bd0",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1e8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 229",
        "parentItem": "6a85e33f277a43e1d0bd9bd1",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1e9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 230",
        "parentItem": "6a85e33f277a43e1d0bd9bd2",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 36163.31,
    "totalRevenue": 36163.31,
    "totalGrossProfit": 6509.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1ea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1eb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1ec",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_228",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d1",
    "billNumber": "BILL-20260103-000229",
    "date": "2026-01-03T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1ed",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 229",
        "parentItem": "6a85e33f277a43e1d0bd9bd1",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 12045.06,
    "totalRevenue": 12045.06,
    "totalGrossProfit": 2168.11,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1ee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_229",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d2",
    "billNumber": "BILL-20260102-000230",
    "date": "2026-01-02T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1ef",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 230",
        "parentItem": "6a85e33f277a43e1d0bd9bd2",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1f0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 231",
        "parentItem": "6a85e33f277a43e1d0bd9bd3",
        "quantity": 117.25,
        "unitprice": 117.25,
        "sellingPrice": 117.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 26629.81,
    "totalRevenue": 26629.81,
    "totalGrossProfit": 4793.37,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1f1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359049,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1f2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_230",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d3",
    "billNumber": "BILL-20260101-000231",
    "date": "2026-01-01T17:09:19.049Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1f3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 231",
        "parentItem": "6a85e33f277a43e1d0bd9bd3",
        "quantity": 117.25,
        "unitprice": 117.25,
        "sellingPrice": 117.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1f4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 232",
        "parentItem": "6a85e33f277a43e1d0bd9bd4",
        "quantity": 121,
        "unitprice": 121,
        "sellingPrice": 121,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1f5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 233",
        "parentItem": "6a85e33f277a43e1d0bd9bd5",
        "quantity": 124.75,
        "unitprice": 124.75,
        "sellingPrice": 124.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 43951.13,
    "totalRevenue": 43951.13,
    "totalGrossProfit": 7911.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1f6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1f7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1f8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_231",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d4",
    "billNumber": "BILL-20251231-000232",
    "date": "2025-12-31T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1f9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 232",
        "parentItem": "6a85e33f277a43e1d0bd9bd4",
        "quantity": 121,
        "unitprice": 121,
        "sellingPrice": 121,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 14641,
    "totalRevenue": 14641,
    "totalGrossProfit": 2635.38,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1fa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_232",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d5",
    "billNumber": "BILL-20251230-000233",
    "date": "2025-12-30T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1fb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 233",
        "parentItem": "6a85e33f277a43e1d0bd9bd5",
        "quantity": 124.75,
        "unitprice": 124.75,
        "sellingPrice": 124.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda1fc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 234",
        "parentItem": "6a85e33f277a43e1d0bd9bd6",
        "quantity": 128.5,
        "unitprice": 128.5,
        "sellingPrice": 128.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 32074.81,
    "totalRevenue": 32074.81,
    "totalGrossProfit": 5773.47,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1fd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda1fe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_233",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d6",
    "billNumber": "BILL-20251229-000234",
    "date": "2025-12-29T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda1ff",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 234",
        "parentItem": "6a85e33f277a43e1d0bd9bd6",
        "quantity": 128.5,
        "unitprice": 128.5,
        "sellingPrice": 128.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda200",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 235",
        "parentItem": "6a85e33f277a43e1d0bd9bd7",
        "quantity": 132.25,
        "unitprice": 132.25,
        "sellingPrice": 132.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda201",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 236",
        "parentItem": "6a85e33f277a43e1d0bd9bd8",
        "quantity": 136,
        "unitprice": 136,
        "sellingPrice": 136,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 52498.31,
    "totalRevenue": 52498.31,
    "totalGrossProfit": 9449.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda202",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda203",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda204",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_234",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d7",
    "billNumber": "BILL-20251228-000235",
    "date": "2025-12-28T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda205",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 235",
        "parentItem": "6a85e33f277a43e1d0bd9bd7",
        "quantity": 132.25,
        "unitprice": 132.25,
        "sellingPrice": 132.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 17490.06,
    "totalRevenue": 17490.06,
    "totalGrossProfit": 3148.21,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda206",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_235",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d8",
    "billNumber": "BILL-20251227-000236",
    "date": "2025-12-27T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda207",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 236",
        "parentItem": "6a85e33f277a43e1d0bd9bd8",
        "quantity": 136,
        "unitprice": 136,
        "sellingPrice": 136,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda208",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 237",
        "parentItem": "6a85e33f277a43e1d0bd9bd9",
        "quantity": 139.75,
        "unitprice": 139.75,
        "sellingPrice": 139.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 38026.06,
    "totalRevenue": 38026.06,
    "totalGrossProfit": 6844.69,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda209",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda20a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_236",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91d9",
    "billNumber": "BILL-20251226-000237",
    "date": "2025-12-26T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda20b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 237",
        "parentItem": "6a85e33f277a43e1d0bd9bd9",
        "quantity": 139.75,
        "unitprice": 139.75,
        "sellingPrice": 139.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda20c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 238",
        "parentItem": "6a85e33f277a43e1d0bd9bda",
        "quantity": 143.5,
        "unitprice": 143.5,
        "sellingPrice": 143.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda20d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 239",
        "parentItem": "6a85e33f277a43e1d0bd9bdb",
        "quantity": 147.25,
        "unitprice": 147.25,
        "sellingPrice": 147.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 61804.88,
    "totalRevenue": 61804.88,
    "totalGrossProfit": 11124.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda20e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda20f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda210",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_237",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91da",
    "billNumber": "BILL-20251225-000238",
    "date": "2025-12-25T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda211",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 238",
        "parentItem": "6a85e33f277a43e1d0bd9bda",
        "quantity": 143.5,
        "unitprice": 143.5,
        "sellingPrice": 143.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 20592.25,
    "totalRevenue": 20592.25,
    "totalGrossProfit": 3706.61,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda212",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_238",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91db",
    "billNumber": "BILL-20251224-000239",
    "date": "2025-12-24T17:09:19.050Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda213",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 239",
        "parentItem": "6a85e33f277a43e1d0bd9bdb",
        "quantity": 147.25,
        "unitprice": 147.25,
        "sellingPrice": 147.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda214",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 240",
        "parentItem": "6a85e33f277a43e1d0bd9bdc",
        "quantity": 151,
        "unitprice": 151,
        "sellingPrice": 151,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 44483.56,
    "totalRevenue": 44483.56,
    "totalGrossProfit": 8007.04,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda215",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359050,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda216",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_239",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91dc",
    "billNumber": "BILL-20251223-000240",
    "date": "2025-12-23T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda217",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 240",
        "parentItem": "6a85e33f277a43e1d0bd9bdc",
        "quantity": 151,
        "unitprice": 151,
        "sellingPrice": 151,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda218",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 241",
        "parentItem": "6a85e33f277a43e1d0bd9bdd",
        "quantity": 154.75,
        "unitprice": 154.75,
        "sellingPrice": 154.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda219",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 242",
        "parentItem": "6a85e33f277a43e1d0bd9bde",
        "quantity": 158.5,
        "unitprice": 158.5,
        "sellingPrice": 158.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 71870.81,
    "totalRevenue": 71870.81,
    "totalGrossProfit": 12936.75,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda21a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda21b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda21c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_240",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91dd",
    "billNumber": "BILL-20251222-000241",
    "date": "2025-12-22T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda21d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 241",
        "parentItem": "6a85e33f277a43e1d0bd9bdd",
        "quantity": 154.75,
        "unitprice": 154.75,
        "sellingPrice": 154.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 23947.56,
    "totalRevenue": 23947.56,
    "totalGrossProfit": 4310.56,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda21e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_241",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91de",
    "billNumber": "BILL-20251221-000242",
    "date": "2025-12-21T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda21f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 242",
        "parentItem": "6a85e33f277a43e1d0bd9bde",
        "quantity": 158.5,
        "unitprice": 158.5,
        "sellingPrice": 158.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda220",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 243",
        "parentItem": "6a85e33f277a43e1d0bd9bdf",
        "quantity": 162.25,
        "unitprice": 162.25,
        "sellingPrice": 162.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 51447.31,
    "totalRevenue": 51447.31,
    "totalGrossProfit": 9260.52,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda221",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda222",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_242",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91df",
    "billNumber": "BILL-20251220-000243",
    "date": "2025-12-20T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda223",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 243",
        "parentItem": "6a85e33f277a43e1d0bd9bdf",
        "quantity": 162.25,
        "unitprice": 162.25,
        "sellingPrice": 162.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda224",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 244",
        "parentItem": "6a85e33f277a43e1d0bd9be0",
        "quantity": 166,
        "unitprice": 166,
        "sellingPrice": 166,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda225",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 245",
        "parentItem": "6a85e33f277a43e1d0bd9be1",
        "quantity": 169.75,
        "unitprice": 169.75,
        "sellingPrice": 169.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 82696.13,
    "totalRevenue": 82696.13,
    "totalGrossProfit": 14885.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda226",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda227",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda228",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_243",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e0",
    "billNumber": "BILL-20251219-000244",
    "date": "2025-12-19T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda229",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 244",
        "parentItem": "6a85e33f277a43e1d0bd9be0",
        "quantity": 166,
        "unitprice": 166,
        "sellingPrice": 166,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 27556,
    "totalRevenue": 27556,
    "totalGrossProfit": 4960.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda22a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_244",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e1",
    "billNumber": "BILL-20251218-000245",
    "date": "2025-12-18T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda22b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 245",
        "parentItem": "6a85e33f277a43e1d0bd9be1",
        "quantity": 169.75,
        "unitprice": 169.75,
        "sellingPrice": 169.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda22c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 246",
        "parentItem": "6a85e33f277a43e1d0bd9be2",
        "quantity": 173.5,
        "unitprice": 173.5,
        "sellingPrice": 173.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 58917.31,
    "totalRevenue": 58917.31,
    "totalGrossProfit": 10605.12,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda22d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda22e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_245",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e2",
    "billNumber": "BILL-20251217-000246",
    "date": "2025-12-17T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda22f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 246",
        "parentItem": "6a85e33f277a43e1d0bd9be2",
        "quantity": 173.5,
        "unitprice": 173.5,
        "sellingPrice": 173.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda230",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 247",
        "parentItem": "6a85e33f277a43e1d0bd9be3",
        "quantity": 177.25,
        "unitprice": 177.25,
        "sellingPrice": 177.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda231",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 248",
        "parentItem": "6a85e33f277a43e1d0bd9be4",
        "quantity": 181,
        "unitprice": 181,
        "sellingPrice": 181,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 94280.81,
    "totalRevenue": 94280.81,
    "totalGrossProfit": 16970.55,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda232",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda233",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda234",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_246",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e3",
    "billNumber": "BILL-20251216-000247",
    "date": "2025-12-16T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda235",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 247",
        "parentItem": "6a85e33f277a43e1d0bd9be3",
        "quantity": 177.25,
        "unitprice": 177.25,
        "sellingPrice": 177.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 31417.56,
    "totalRevenue": 31417.56,
    "totalGrossProfit": 5655.16,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359051,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda236",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_247",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e4",
    "billNumber": "BILL-20251215-000248",
    "date": "2025-12-15T17:09:19.051Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda237",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 248",
        "parentItem": "6a85e33f277a43e1d0bd9be4",
        "quantity": 181,
        "unitprice": 181,
        "sellingPrice": 181,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda238",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 249",
        "parentItem": "6a85e33f277a43e1d0bd9be5",
        "quantity": 184.75,
        "unitprice": 184.75,
        "sellingPrice": 184.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 66893.56,
    "totalRevenue": 66893.56,
    "totalGrossProfit": 12040.84,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda239",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda23a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_248",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e5",
    "billNumber": "BILL-20251214-000249",
    "date": "2025-12-14T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda23b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 249",
        "parentItem": "6a85e33f277a43e1d0bd9be5",
        "quantity": 184.75,
        "unitprice": 184.75,
        "sellingPrice": 184.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda23c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 250",
        "parentItem": "6a85e33f277a43e1d0bd9be6",
        "quantity": 188.5,
        "unitprice": 188.5,
        "sellingPrice": 188.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda23d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 251",
        "parentItem": "6a85e33f277a43e1d0bd9be7",
        "quantity": 192.25,
        "unitprice": 192.25,
        "sellingPrice": 192.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 106624.88,
    "totalRevenue": 106624.88,
    "totalGrossProfit": 19192.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda23e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda23f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda240",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_249",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e6",
    "billNumber": "BILL-20251213-000250",
    "date": "2025-12-13T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda241",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 250",
        "parentItem": "6a85e33f277a43e1d0bd9be6",
        "quantity": 188.5,
        "unitprice": 188.5,
        "sellingPrice": 188.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 35532.25,
    "totalRevenue": 35532.25,
    "totalGrossProfit": 6395.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda242",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_250",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e7",
    "billNumber": "BILL-20251212-000251",
    "date": "2025-12-12T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda243",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 251",
        "parentItem": "6a85e33f277a43e1d0bd9be7",
        "quantity": 192.25,
        "unitprice": 192.25,
        "sellingPrice": 192.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda244",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 252",
        "parentItem": "6a85e33f277a43e1d0bd9be8",
        "quantity": 196,
        "unitprice": 196,
        "sellingPrice": 196,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 75376.06,
    "totalRevenue": 75376.06,
    "totalGrossProfit": 13567.69,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda245",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda246",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_251",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e8",
    "billNumber": "BILL-20251211-000252",
    "date": "2025-12-11T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda247",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 252",
        "parentItem": "6a85e33f277a43e1d0bd9be8",
        "quantity": 196,
        "unitprice": 196,
        "sellingPrice": 196,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda248",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 253",
        "parentItem": "6a85e33f277a43e1d0bd9be9",
        "quantity": 199.75,
        "unitprice": 199.75,
        "sellingPrice": 199.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda249",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 254",
        "parentItem": "6a85e33f277a43e1d0bd9bea",
        "quantity": 203.5,
        "unitprice": 203.5,
        "sellingPrice": 203.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 119728.31,
    "totalRevenue": 119728.31,
    "totalGrossProfit": 21551.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda24a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda24b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda24c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_252",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91e9",
    "billNumber": "BILL-20251210-000253",
    "date": "2025-12-10T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda24d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 253",
        "parentItem": "6a85e33f277a43e1d0bd9be9",
        "quantity": 199.75,
        "unitprice": 199.75,
        "sellingPrice": 199.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 39900.06,
    "totalRevenue": 39900.06,
    "totalGrossProfit": 7182.01,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda24e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_253",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ea",
    "billNumber": "BILL-20251209-000254",
    "date": "2025-12-09T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda24f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 254",
        "parentItem": "6a85e33f277a43e1d0bd9bea",
        "quantity": 203.5,
        "unitprice": 203.5,
        "sellingPrice": 203.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda250",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 255",
        "parentItem": "6a85e33f277a43e1d0bd9beb",
        "quantity": 207.25,
        "unitprice": 207.25,
        "sellingPrice": 207.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 84364.81,
    "totalRevenue": 84364.81,
    "totalGrossProfit": 15185.67,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda251",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda252",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_254",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91eb",
    "billNumber": "BILL-20251208-000255",
    "date": "2025-12-08T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda253",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 255",
        "parentItem": "6a85e33f277a43e1d0bd9beb",
        "quantity": 207.25,
        "unitprice": 207.25,
        "sellingPrice": 207.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda254",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 256",
        "parentItem": "6a85e33f277a43e1d0bd9bec",
        "quantity": 211,
        "unitprice": 211,
        "sellingPrice": 211,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda255",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 257",
        "parentItem": "6a85e33f277a43e1d0bd9bed",
        "quantity": 214.75,
        "unitprice": 214.75,
        "sellingPrice": 214.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 133591.13,
    "totalRevenue": 133591.13,
    "totalGrossProfit": 24046.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda256",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda257",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda258",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_255",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ec",
    "billNumber": "BILL-20251207-000256",
    "date": "2025-12-07T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda259",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 256",
        "parentItem": "6a85e33f277a43e1d0bd9bec",
        "quantity": 211,
        "unitprice": 211,
        "sellingPrice": 211,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 44521,
    "totalRevenue": 44521,
    "totalGrossProfit": 8013.78,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359052,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda25a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_256",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ed",
    "billNumber": "BILL-20251206-000257",
    "date": "2025-12-06T17:09:19.052Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda25b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 257",
        "parentItem": "6a85e33f277a43e1d0bd9bed",
        "quantity": 214.75,
        "unitprice": 214.75,
        "sellingPrice": 214.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda25c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 258",
        "parentItem": "6a85e33f277a43e1d0bd9bee",
        "quantity": 218.5,
        "unitprice": 218.5,
        "sellingPrice": 218.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 93859.81,
    "totalRevenue": 93859.81,
    "totalGrossProfit": 16894.77,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda25d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda25e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_257",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ee",
    "billNumber": "BILL-20251205-000258",
    "date": "2025-12-05T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda25f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 258",
        "parentItem": "6a85e33f277a43e1d0bd9bee",
        "quantity": 218.5,
        "unitprice": 218.5,
        "sellingPrice": 218.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda260",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 259",
        "parentItem": "6a85e33f277a43e1d0bd9bef",
        "quantity": 222.25,
        "unitprice": 222.25,
        "sellingPrice": 222.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda261",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 260",
        "parentItem": "6a85e33f277a43e1d0bd9bf0",
        "quantity": 226,
        "unitprice": 226,
        "sellingPrice": 226,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 148213.31,
    "totalRevenue": 148213.31,
    "totalGrossProfit": 26678.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda262",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda263",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda264",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_258",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ef",
    "billNumber": "BILL-20251204-000259",
    "date": "2025-12-04T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda265",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 259",
        "parentItem": "6a85e33f277a43e1d0bd9bef",
        "quantity": 222.25,
        "unitprice": 222.25,
        "sellingPrice": 222.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 49395.06,
    "totalRevenue": 49395.06,
    "totalGrossProfit": 8891.11,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda266",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_259",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f0",
    "billNumber": "BILL-20251203-000260",
    "date": "2025-12-03T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda267",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 260",
        "parentItem": "6a85e33f277a43e1d0bd9bf0",
        "quantity": 226,
        "unitprice": 226,
        "sellingPrice": 226,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda268",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 261",
        "parentItem": "6a85e33f277a43e1d0bd9bf1",
        "quantity": 229.75,
        "unitprice": 229.75,
        "sellingPrice": 229.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 103861.06,
    "totalRevenue": 103861.06,
    "totalGrossProfit": 18694.99,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda269",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda26a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_260",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f1",
    "billNumber": "BILL-20251202-000261",
    "date": "2025-12-02T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda26b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 261",
        "parentItem": "6a85e33f277a43e1d0bd9bf1",
        "quantity": 229.75,
        "unitprice": 229.75,
        "sellingPrice": 229.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda26c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 262",
        "parentItem": "6a85e33f277a43e1d0bd9bf2",
        "quantity": 233.5,
        "unitprice": 233.5,
        "sellingPrice": 233.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda26d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 263",
        "parentItem": "6a85e33f277a43e1d0bd9bf3",
        "quantity": 237.25,
        "unitprice": 237.25,
        "sellingPrice": 237.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 163594.88,
    "totalRevenue": 163594.88,
    "totalGrossProfit": 29447.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda26e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda26f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda270",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_261",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f2",
    "billNumber": "BILL-20251201-000262",
    "date": "2025-12-01T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda271",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 262",
        "parentItem": "6a85e33f277a43e1d0bd9bf2",
        "quantity": 233.5,
        "unitprice": 233.5,
        "sellingPrice": 233.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 54522.25,
    "totalRevenue": 54522.25,
    "totalGrossProfit": 9814,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda272",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_262",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f3",
    "billNumber": "BILL-20251130-000263",
    "date": "2025-11-30T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda273",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 263",
        "parentItem": "6a85e33f277a43e1d0bd9bf3",
        "quantity": 237.25,
        "unitprice": 237.25,
        "sellingPrice": 237.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda274",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 264",
        "parentItem": "6a85e33f277a43e1d0bd9bf4",
        "quantity": 241,
        "unitprice": 241,
        "sellingPrice": 241,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 114368.56,
    "totalRevenue": 114368.56,
    "totalGrossProfit": 20586.34,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda275",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda276",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_263",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f4",
    "billNumber": "BILL-20251129-000264",
    "date": "2025-11-29T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda277",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 264",
        "parentItem": "6a85e33f277a43e1d0bd9bf4",
        "quantity": 241,
        "unitprice": 241,
        "sellingPrice": 241,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda278",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 265",
        "parentItem": "6a85e33f277a43e1d0bd9bf5",
        "quantity": 244.75,
        "unitprice": 244.75,
        "sellingPrice": 244.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda279",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 266",
        "parentItem": "6a85e33f277a43e1d0bd9bf6",
        "quantity": 248.5,
        "unitprice": 248.5,
        "sellingPrice": 248.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 179735.81,
    "totalRevenue": 179735.81,
    "totalGrossProfit": 32352.45,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda27a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda27b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda27c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_264",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f5",
    "billNumber": "BILL-20251128-000265",
    "date": "2025-11-28T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda27d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 265",
        "parentItem": "6a85e33f277a43e1d0bd9bf5",
        "quantity": 244.75,
        "unitprice": 244.75,
        "sellingPrice": 244.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 59902.56,
    "totalRevenue": 59902.56,
    "totalGrossProfit": 10782.46,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda27e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_265",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f6",
    "billNumber": "BILL-20251127-000266",
    "date": "2025-11-27T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda27f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 266",
        "parentItem": "6a85e33f277a43e1d0bd9bf6",
        "quantity": 248.5,
        "unitprice": 248.5,
        "sellingPrice": 248.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda280",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 267",
        "parentItem": "6a85e33f277a43e1d0bd9bf7",
        "quantity": 252.25,
        "unitprice": 252.25,
        "sellingPrice": 252.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 125382.31,
    "totalRevenue": 125382.31,
    "totalGrossProfit": 22568.82,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda281",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359053,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda282",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_266",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f7",
    "billNumber": "BILL-20251126-000267",
    "date": "2025-11-26T17:09:19.053Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda283",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 267",
        "parentItem": "6a85e33f277a43e1d0bd9bf7",
        "quantity": 252.25,
        "unitprice": 252.25,
        "sellingPrice": 252.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda284",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 268",
        "parentItem": "6a85e33f277a43e1d0bd9bf8",
        "quantity": 256,
        "unitprice": 256,
        "sellingPrice": 256,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda285",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 269",
        "parentItem": "6a85e33f277a43e1d0bd9bf9",
        "quantity": 259.75,
        "unitprice": 259.75,
        "sellingPrice": 259.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 196636.13,
    "totalRevenue": 196636.13,
    "totalGrossProfit": 35394.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda286",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda287",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda288",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_267",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f8",
    "billNumber": "BILL-20251125-000268",
    "date": "2025-11-25T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda289",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 268",
        "parentItem": "6a85e33f277a43e1d0bd9bf8",
        "quantity": 256,
        "unitprice": 256,
        "sellingPrice": 256,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 65536,
    "totalRevenue": 65536,
    "totalGrossProfit": 11796.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda28a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_268",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91f9",
    "billNumber": "BILL-20251124-000269",
    "date": "2025-11-24T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda28b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 269",
        "parentItem": "6a85e33f277a43e1d0bd9bf9",
        "quantity": 259.75,
        "unitprice": 259.75,
        "sellingPrice": 259.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda28c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 270",
        "parentItem": "6a85e33f277a43e1d0bd9bfa",
        "quantity": 263.5,
        "unitprice": 263.5,
        "sellingPrice": 263.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 136902.31,
    "totalRevenue": 136902.31,
    "totalGrossProfit": 24642.42,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda28d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda28e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_269",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91fa",
    "billNumber": "BILL-20251123-000270",
    "date": "2025-11-23T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda28f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 270",
        "parentItem": "6a85e33f277a43e1d0bd9bfa",
        "quantity": 263.5,
        "unitprice": 263.5,
        "sellingPrice": 263.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda290",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 271",
        "parentItem": "6a85e33f277a43e1d0bd9bfb",
        "quantity": 267.25,
        "unitprice": 267.25,
        "sellingPrice": 267.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda291",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 272",
        "parentItem": "6a85e33f277a43e1d0bd9bfc",
        "quantity": 271,
        "unitprice": 271,
        "sellingPrice": 271,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 214295.81,
    "totalRevenue": 214295.81,
    "totalGrossProfit": 38573.25,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda292",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda293",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda294",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_270",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91fb",
    "billNumber": "BILL-20251122-000271",
    "date": "2025-11-22T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda295",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 271",
        "parentItem": "6a85e33f277a43e1d0bd9bfb",
        "quantity": 267.25,
        "unitprice": 267.25,
        "sellingPrice": 267.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 71422.56,
    "totalRevenue": 71422.56,
    "totalGrossProfit": 12856.06,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda296",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_271",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91fc",
    "billNumber": "BILL-20251121-000272",
    "date": "2025-11-21T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda297",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 272",
        "parentItem": "6a85e33f277a43e1d0bd9bfc",
        "quantity": 271,
        "unitprice": 271,
        "sellingPrice": 271,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda298",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 273",
        "parentItem": "6a85e33f277a43e1d0bd9bfd",
        "quantity": 274.75,
        "unitprice": 274.75,
        "sellingPrice": 274.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 148928.56,
    "totalRevenue": 148928.56,
    "totalGrossProfit": 26807.14,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda299",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda29a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_272",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91fd",
    "billNumber": "BILL-20251120-000273",
    "date": "2025-11-20T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda29b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 273",
        "parentItem": "6a85e33f277a43e1d0bd9bfd",
        "quantity": 274.75,
        "unitprice": 274.75,
        "sellingPrice": 274.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda29c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 274",
        "parentItem": "6a85e33f277a43e1d0bd9bfe",
        "quantity": 278.5,
        "unitprice": 278.5,
        "sellingPrice": 278.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda29d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 275",
        "parentItem": "6a85e33f277a43e1d0bd9bff",
        "quantity": 282.25,
        "unitprice": 282.25,
        "sellingPrice": 282.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 232714.88,
    "totalRevenue": 232714.88,
    "totalGrossProfit": 41888.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda29e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda29f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2a0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_273",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91fe",
    "billNumber": "BILL-20251119-000274",
    "date": "2025-11-19T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2a1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 274",
        "parentItem": "6a85e33f277a43e1d0bd9bfe",
        "quantity": 278.5,
        "unitprice": 278.5,
        "sellingPrice": 278.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 77562.25,
    "totalRevenue": 77562.25,
    "totalGrossProfit": 13961.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2a2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_274",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd91ff",
    "billNumber": "BILL-20251118-000275",
    "date": "2025-11-18T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2a3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 275",
        "parentItem": "6a85e33f277a43e1d0bd9bff",
        "quantity": 282.25,
        "unitprice": 282.25,
        "sellingPrice": 282.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2a4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 276",
        "parentItem": "6a85e33f277a43e1d0bd9c00",
        "quantity": 286,
        "unitprice": 286,
        "sellingPrice": 286,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 161461.06,
    "totalRevenue": 161461.06,
    "totalGrossProfit": 29062.99,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2a5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2a6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_275",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9200",
    "billNumber": "BILL-20251117-000276",
    "date": "2025-11-17T17:09:19.054Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2a7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 276",
        "parentItem": "6a85e33f277a43e1d0bd9c00",
        "quantity": 286,
        "unitprice": 286,
        "sellingPrice": 286,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2a8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 277",
        "parentItem": "6a85e33f277a43e1d0bd9c01",
        "quantity": 289.75,
        "unitprice": 289.75,
        "sellingPrice": 289.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2a9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 278",
        "parentItem": "6a85e33f277a43e1d0bd9c02",
        "quantity": 293.5,
        "unitprice": 293.5,
        "sellingPrice": 293.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 251893.31,
    "totalRevenue": 251893.31,
    "totalGrossProfit": 45340.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2aa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ab",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359054,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ac",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_276",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9201",
    "billNumber": "BILL-20251116-000277",
    "date": "2025-11-16T17:09:19.055Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2ad",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 277",
        "parentItem": "6a85e33f277a43e1d0bd9c01",
        "quantity": 289.75,
        "unitprice": 289.75,
        "sellingPrice": 289.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 83955.06,
    "totalRevenue": 83955.06,
    "totalGrossProfit": 15111.91,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_277",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9202",
    "billNumber": "BILL-20251115-000278",
    "date": "2025-11-15T17:09:19.055Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2af",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 278",
        "parentItem": "6a85e33f277a43e1d0bd9c02",
        "quantity": 293.5,
        "unitprice": 293.5,
        "sellingPrice": 293.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2b0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 279",
        "parentItem": "6a85e33f277a43e1d0bd9c03",
        "quantity": 297.25,
        "unitprice": 297.25,
        "sellingPrice": 297.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 174499.81,
    "totalRevenue": 174499.81,
    "totalGrossProfit": 31409.97,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2b1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2b2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_278",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9203",
    "billNumber": "BILL-20251114-000279",
    "date": "2025-11-14T17:09:19.055Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2b3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 279",
        "parentItem": "6a85e33f277a43e1d0bd9c03",
        "quantity": 297.25,
        "unitprice": 297.25,
        "sellingPrice": 297.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2b4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 280",
        "parentItem": "6a85e33f277a43e1d0bd9c04",
        "quantity": 301,
        "unitprice": 301,
        "sellingPrice": 301,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2b5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 281",
        "parentItem": "6a85e33f277a43e1d0bd9c05",
        "quantity": 304.75,
        "unitprice": 304.75,
        "sellingPrice": 304.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 271831.13,
    "totalRevenue": 271831.13,
    "totalGrossProfit": 48929.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2b6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2b7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2b8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_279",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9204",
    "billNumber": "BILL-20251113-000280",
    "date": "2025-11-13T17:09:19.055Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2b9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 280",
        "parentItem": "6a85e33f277a43e1d0bd9c04",
        "quantity": 301,
        "unitprice": 301,
        "sellingPrice": 301,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 90601,
    "totalRevenue": 90601,
    "totalGrossProfit": 16308.18,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_280",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9205",
    "billNumber": "BILL-20251112-000281",
    "date": "2025-11-12T17:09:19.055Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2bb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 281",
        "parentItem": "6a85e33f277a43e1d0bd9c05",
        "quantity": 304.75,
        "unitprice": 304.75,
        "sellingPrice": 304.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2bc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 282",
        "parentItem": "6a85e33f277a43e1d0bd9c06",
        "quantity": 308.5,
        "unitprice": 308.5,
        "sellingPrice": 308.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 188044.81,
    "totalRevenue": 188044.81,
    "totalGrossProfit": 33848.07,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2bd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2be",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_281",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9206",
    "billNumber": "BILL-20251111-000282",
    "date": "2025-11-11T17:09:19.055Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2bf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 282",
        "parentItem": "6a85e33f277a43e1d0bd9c06",
        "quantity": 308.5,
        "unitprice": 308.5,
        "sellingPrice": 308.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2c0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 283",
        "parentItem": "6a85e33f277a43e1d0bd9c07",
        "quantity": 312.25,
        "unitprice": 312.25,
        "sellingPrice": 312.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2c1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 284",
        "parentItem": "6a85e33f277a43e1d0bd9c08",
        "quantity": 316,
        "unitprice": 316,
        "sellingPrice": 316,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 292528.31,
    "totalRevenue": 292528.31,
    "totalGrossProfit": 52655.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2c2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2c3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2c4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_282",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9207",
    "billNumber": "BILL-20251110-000283",
    "date": "2025-11-10T17:09:19.055Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2c5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 283",
        "parentItem": "6a85e33f277a43e1d0bd9c07",
        "quantity": 312.25,
        "unitprice": 312.25,
        "sellingPrice": 312.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 97500.06,
    "totalRevenue": 97500.06,
    "totalGrossProfit": 17550.01,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359055,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2c6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_283",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9208",
    "billNumber": "BILL-20251109-000284",
    "date": "2025-11-09T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2c7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 284",
        "parentItem": "6a85e33f277a43e1d0bd9c08",
        "quantity": 316,
        "unitprice": 316,
        "sellingPrice": 316,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2c8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 285",
        "parentItem": "6a85e33f277a43e1d0bd9c09",
        "quantity": 319.75,
        "unitprice": 319.75,
        "sellingPrice": 319.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 202096.06,
    "totalRevenue": 202096.06,
    "totalGrossProfit": 36377.29,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2c9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_284",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9209",
    "billNumber": "BILL-20251108-000285",
    "date": "2025-11-08T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2cb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 285",
        "parentItem": "6a85e33f277a43e1d0bd9c09",
        "quantity": 319.75,
        "unitprice": 319.75,
        "sellingPrice": 319.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2cc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 286",
        "parentItem": "6a85e33f277a43e1d0bd9c0a",
        "quantity": 323.5,
        "unitprice": 323.5,
        "sellingPrice": 323.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2cd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 287",
        "parentItem": "6a85e33f277a43e1d0bd9c0b",
        "quantity": 327.25,
        "unitprice": 327.25,
        "sellingPrice": 327.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 313984.88,
    "totalRevenue": 313984.88,
    "totalGrossProfit": 56517.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ce",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2cf",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2d0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_285",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd920a",
    "billNumber": "BILL-20251107-000286",
    "date": "2025-11-07T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2d1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 286",
        "parentItem": "6a85e33f277a43e1d0bd9c0a",
        "quantity": 323.5,
        "unitprice": 323.5,
        "sellingPrice": 323.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 104652.25,
    "totalRevenue": 104652.25,
    "totalGrossProfit": 18837.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2d2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_286",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd920b",
    "billNumber": "BILL-20251106-000287",
    "date": "2025-11-06T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2d3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 287",
        "parentItem": "6a85e33f277a43e1d0bd9c0b",
        "quantity": 327.25,
        "unitprice": 327.25,
        "sellingPrice": 327.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2d4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 288",
        "parentItem": "6a85e33f277a43e1d0bd9c0c",
        "quantity": 331,
        "unitprice": 331,
        "sellingPrice": 331,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 216653.56,
    "totalRevenue": 216653.56,
    "totalGrossProfit": 38997.64,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2d5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2d6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_287",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd920c",
    "billNumber": "BILL-20251105-000288",
    "date": "2025-11-05T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2d7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 288",
        "parentItem": "6a85e33f277a43e1d0bd9c0c",
        "quantity": 331,
        "unitprice": 331,
        "sellingPrice": 331,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2d8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 289",
        "parentItem": "6a85e33f277a43e1d0bd9c0d",
        "quantity": 334.75,
        "unitprice": 334.75,
        "sellingPrice": 334.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2d9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 290",
        "parentItem": "6a85e33f277a43e1d0bd9c0e",
        "quantity": 338.5,
        "unitprice": 338.5,
        "sellingPrice": 338.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 336200.81,
    "totalRevenue": 336200.81,
    "totalGrossProfit": 60516.15,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2da",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2db",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2dc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_288",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd920d",
    "billNumber": "BILL-20251104-000289",
    "date": "2025-11-04T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2dd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 289",
        "parentItem": "6a85e33f277a43e1d0bd9c0d",
        "quantity": 334.75,
        "unitprice": 334.75,
        "sellingPrice": 334.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 112057.56,
    "totalRevenue": 112057.56,
    "totalGrossProfit": 20170.36,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2de",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_289",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd920e",
    "billNumber": "BILL-20251103-000290",
    "date": "2025-11-03T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2df",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 290",
        "parentItem": "6a85e33f277a43e1d0bd9c0e",
        "quantity": 338.5,
        "unitprice": 338.5,
        "sellingPrice": 338.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2e0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 291",
        "parentItem": "6a85e33f277a43e1d0bd9c0f",
        "quantity": 342.25,
        "unitprice": 342.25,
        "sellingPrice": 342.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 231717.31,
    "totalRevenue": 231717.31,
    "totalGrossProfit": 41709.12,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2e1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359056,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2e2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_290",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd920f",
    "billNumber": "BILL-20251102-000291",
    "date": "2025-11-02T17:09:19.056Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2e3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 291",
        "parentItem": "6a85e33f277a43e1d0bd9c0f",
        "quantity": 342.25,
        "unitprice": 342.25,
        "sellingPrice": 342.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2e4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 292",
        "parentItem": "6a85e33f277a43e1d0bd9c10",
        "quantity": 346,
        "unitprice": 346,
        "sellingPrice": 346,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2e5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 293",
        "parentItem": "6a85e33f277a43e1d0bd9c11",
        "quantity": 349.75,
        "unitprice": 349.75,
        "sellingPrice": 349.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 359176.13,
    "totalRevenue": 359176.13,
    "totalGrossProfit": 64651.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2e6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2e7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2e8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_291",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9210",
    "billNumber": "BILL-20251101-000292",
    "date": "2025-11-01T17:09:19.057Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2e9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 292",
        "parentItem": "6a85e33f277a43e1d0bd9c10",
        "quantity": 346,
        "unitprice": 346,
        "sellingPrice": 346,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 119716,
    "totalRevenue": 119716,
    "totalGrossProfit": 21548.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_292",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9211",
    "billNumber": "BILL-20251031-000293",
    "date": "2025-10-31T17:09:19.057Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2eb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 293",
        "parentItem": "6a85e33f277a43e1d0bd9c11",
        "quantity": 349.75,
        "unitprice": 349.75,
        "sellingPrice": 349.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2ec",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 294",
        "parentItem": "6a85e33f277a43e1d0bd9c12",
        "quantity": 353.5,
        "unitprice": 353.5,
        "sellingPrice": 353.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 247287.31,
    "totalRevenue": 247287.31,
    "totalGrossProfit": 44511.72,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ed",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_293",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9212",
    "billNumber": "BILL-20251030-000294",
    "date": "2025-10-30T17:09:19.057Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2ef",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 294",
        "parentItem": "6a85e33f277a43e1d0bd9c12",
        "quantity": 353.5,
        "unitprice": 353.5,
        "sellingPrice": 353.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2f0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 295",
        "parentItem": "6a85e33f277a43e1d0bd9c13",
        "quantity": 357.25,
        "unitprice": 357.25,
        "sellingPrice": 357.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2f1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 296",
        "parentItem": "6a85e33f277a43e1d0bd9c14",
        "quantity": 361,
        "unitprice": 361,
        "sellingPrice": 361,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 382910.81,
    "totalRevenue": 382910.81,
    "totalGrossProfit": 68923.95,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2f2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2f3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2f4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_294",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9213",
    "billNumber": "BILL-20251029-000295",
    "date": "2025-10-29T17:09:19.057Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2f5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 295",
        "parentItem": "6a85e33f277a43e1d0bd9c13",
        "quantity": 357.25,
        "unitprice": 357.25,
        "sellingPrice": 357.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 127627.56,
    "totalRevenue": 127627.56,
    "totalGrossProfit": 22972.96,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2f6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_295",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9214",
    "billNumber": "BILL-20251028-000296",
    "date": "2025-10-28T17:09:19.057Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2f7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 296",
        "parentItem": "6a85e33f277a43e1d0bd9c14",
        "quantity": 361,
        "unitprice": 361,
        "sellingPrice": 361,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2f8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 297",
        "parentItem": "6a85e33f277a43e1d0bd9c15",
        "quantity": 364.75,
        "unitprice": 364.75,
        "sellingPrice": 364.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 263363.56,
    "totalRevenue": 263363.56,
    "totalGrossProfit": 47405.44,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2f9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2fa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_296",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9215",
    "billNumber": "BILL-20251027-000297",
    "date": "2025-10-27T17:09:19.057Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda2fb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 297",
        "parentItem": "6a85e33f277a43e1d0bd9c15",
        "quantity": 364.75,
        "unitprice": 364.75,
        "sellingPrice": 364.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2fc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 298",
        "parentItem": "6a85e33f277a43e1d0bd9c16",
        "quantity": 368.5,
        "unitprice": 368.5,
        "sellingPrice": 368.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda2fd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 299",
        "parentItem": "6a85e33f277a43e1d0bd9c17",
        "quantity": 372.25,
        "unitprice": 372.25,
        "sellingPrice": 372.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 407404.88,
    "totalRevenue": 407404.88,
    "totalGrossProfit": 73332.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2fe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda2ff",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda300",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_297",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9216",
    "billNumber": "BILL-20251026-000298",
    "date": "2025-10-26T17:09:19.057Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda301",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 298",
        "parentItem": "6a85e33f277a43e1d0bd9c16",
        "quantity": 368.5,
        "unitprice": 368.5,
        "sellingPrice": 368.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 135792.25,
    "totalRevenue": 135792.25,
    "totalGrossProfit": 24442.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359057,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda302",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_298",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9217",
    "billNumber": "BILL-20251025-000299",
    "date": "2025-10-25T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda303",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 299",
        "parentItem": "6a85e33f277a43e1d0bd9c17",
        "quantity": 372.25,
        "unitprice": 372.25,
        "sellingPrice": 372.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda304",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 300",
        "parentItem": "6a85e33f277a43e1d0bd9c18",
        "quantity": 376,
        "unitprice": 376,
        "sellingPrice": 376,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 279946.06,
    "totalRevenue": 279946.06,
    "totalGrossProfit": 50390.29,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda305",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda306",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_299",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9218",
    "billNumber": "BILL-20251024-000300",
    "date": "2025-10-24T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda307",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 300",
        "parentItem": "6a85e33f277a43e1d0bd9c18",
        "quantity": 376,
        "unitprice": 376,
        "sellingPrice": 376,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda308",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 301",
        "parentItem": "6a85e33f277a43e1d0bd9c19",
        "quantity": 379.75,
        "unitprice": 379.75,
        "sellingPrice": 379.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda309",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 302",
        "parentItem": "6a85e33f277a43e1d0bd9c1a",
        "quantity": 383.5,
        "unitprice": 383.5,
        "sellingPrice": 383.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 432658.31,
    "totalRevenue": 432658.31,
    "totalGrossProfit": 77878.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda30a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda30b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda30c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_300",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9219",
    "billNumber": "BILL-20251023-000301",
    "date": "2025-10-23T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda30d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 301",
        "parentItem": "6a85e33f277a43e1d0bd9c19",
        "quantity": 379.75,
        "unitprice": 379.75,
        "sellingPrice": 379.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 144210.06,
    "totalRevenue": 144210.06,
    "totalGrossProfit": 25957.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda30e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_301",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd921a",
    "billNumber": "BILL-20251022-000302",
    "date": "2025-10-22T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda30f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 302",
        "parentItem": "6a85e33f277a43e1d0bd9c1a",
        "quantity": 383.5,
        "unitprice": 383.5,
        "sellingPrice": 383.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda310",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 303",
        "parentItem": "6a85e33f277a43e1d0bd9c1b",
        "quantity": 387.25,
        "unitprice": 387.25,
        "sellingPrice": 387.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 297034.81,
    "totalRevenue": 297034.81,
    "totalGrossProfit": 53466.27,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda311",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda312",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_302",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd921b",
    "billNumber": "BILL-20251021-000303",
    "date": "2025-10-21T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda313",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 303",
        "parentItem": "6a85e33f277a43e1d0bd9c1b",
        "quantity": 387.25,
        "unitprice": 387.25,
        "sellingPrice": 387.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda314",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 304",
        "parentItem": "6a85e33f277a43e1d0bd9c1c",
        "quantity": 391,
        "unitprice": 391,
        "sellingPrice": 391,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda315",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 305",
        "parentItem": "6a85e33f277a43e1d0bd9c1d",
        "quantity": 394.75,
        "unitprice": 394.75,
        "sellingPrice": 394.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 458671.13,
    "totalRevenue": 458671.13,
    "totalGrossProfit": 82560.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda316",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda317",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda318",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_303",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd921c",
    "billNumber": "BILL-20251020-000304",
    "date": "2025-10-20T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda319",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 304",
        "parentItem": "6a85e33f277a43e1d0bd9c1c",
        "quantity": 391,
        "unitprice": 391,
        "sellingPrice": 391,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 152881,
    "totalRevenue": 152881,
    "totalGrossProfit": 27518.58,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda31a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_304",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd921d",
    "billNumber": "BILL-20251019-000305",
    "date": "2025-10-19T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda31b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 305",
        "parentItem": "6a85e33f277a43e1d0bd9c1d",
        "quantity": 394.75,
        "unitprice": 394.75,
        "sellingPrice": 394.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda31c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 306",
        "parentItem": "6a85e33f277a43e1d0bd9c1e",
        "quantity": 398.5,
        "unitprice": 398.5,
        "sellingPrice": 398.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 314629.81,
    "totalRevenue": 314629.81,
    "totalGrossProfit": 56633.37,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda31d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359058,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda31e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_305",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd921e",
    "billNumber": "BILL-20251018-000306",
    "date": "2025-10-18T17:09:19.058Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda31f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 306",
        "parentItem": "6a85e33f277a43e1d0bd9c1e",
        "quantity": 398.5,
        "unitprice": 398.5,
        "sellingPrice": 398.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda320",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 307",
        "parentItem": "6a85e33f277a43e1d0bd9c1f",
        "quantity": 402.25,
        "unitprice": 402.25,
        "sellingPrice": 402.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda321",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 308",
        "parentItem": "6a85e33f277a43e1d0bd9c20",
        "quantity": 406,
        "unitprice": 406,
        "sellingPrice": 406,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 485443.31,
    "totalRevenue": 485443.31,
    "totalGrossProfit": 87379.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda322",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda323",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda324",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_306",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd921f",
    "billNumber": "BILL-20251017-000307",
    "date": "2025-10-17T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda325",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 307",
        "parentItem": "6a85e33f277a43e1d0bd9c1f",
        "quantity": 402.25,
        "unitprice": 402.25,
        "sellingPrice": 402.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 161805.06,
    "totalRevenue": 161805.06,
    "totalGrossProfit": 29124.91,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda326",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_307",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9220",
    "billNumber": "BILL-20251016-000308",
    "date": "2025-10-16T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda327",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 308",
        "parentItem": "6a85e33f277a43e1d0bd9c20",
        "quantity": 406,
        "unitprice": 406,
        "sellingPrice": 406,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda328",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 309",
        "parentItem": "6a85e33f277a43e1d0bd9c21",
        "quantity": 409.75,
        "unitprice": 409.75,
        "sellingPrice": 409.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 332731.06,
    "totalRevenue": 332731.06,
    "totalGrossProfit": 59891.59,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda329",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda32a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_308",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9221",
    "billNumber": "BILL-20251015-000309",
    "date": "2025-10-15T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda32b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 309",
        "parentItem": "6a85e33f277a43e1d0bd9c21",
        "quantity": 409.75,
        "unitprice": 409.75,
        "sellingPrice": 409.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda32c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 310",
        "parentItem": "6a85e33f277a43e1d0bd9c22",
        "quantity": 413.5,
        "unitprice": 413.5,
        "sellingPrice": 413.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda32d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 311",
        "parentItem": "6a85e33f277a43e1d0bd9c23",
        "quantity": 417.25,
        "unitprice": 417.25,
        "sellingPrice": 417.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 512974.88,
    "totalRevenue": 512974.88,
    "totalGrossProfit": 92335.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda32e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda32f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda330",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_309",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9222",
    "billNumber": "BILL-20251014-000310",
    "date": "2025-10-14T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda331",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 310",
        "parentItem": "6a85e33f277a43e1d0bd9c22",
        "quantity": 413.5,
        "unitprice": 413.5,
        "sellingPrice": 413.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 170982.25,
    "totalRevenue": 170982.25,
    "totalGrossProfit": 30776.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda332",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_310",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9223",
    "billNumber": "BILL-20251013-000311",
    "date": "2025-10-13T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda333",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 311",
        "parentItem": "6a85e33f277a43e1d0bd9c23",
        "quantity": 417.25,
        "unitprice": 417.25,
        "sellingPrice": 417.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda334",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 312",
        "parentItem": "6a85e33f277a43e1d0bd9c24",
        "quantity": 421,
        "unitprice": 421,
        "sellingPrice": 421,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 351338.56,
    "totalRevenue": 351338.56,
    "totalGrossProfit": 63240.94,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda335",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda336",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_311",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9224",
    "billNumber": "BILL-20251012-000312",
    "date": "2025-10-12T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda337",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 312",
        "parentItem": "6a85e33f277a43e1d0bd9c24",
        "quantity": 421,
        "unitprice": 421,
        "sellingPrice": 421,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda338",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 313",
        "parentItem": "6a85e33f277a43e1d0bd9c25",
        "quantity": 424.75,
        "unitprice": 424.75,
        "sellingPrice": 424.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda339",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 314",
        "parentItem": "6a85e33f277a43e1d0bd9c26",
        "quantity": 428.5,
        "unitprice": 428.5,
        "sellingPrice": 428.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 541265.81,
    "totalRevenue": 541265.81,
    "totalGrossProfit": 97427.85,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda33a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda33b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda33c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_312",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9225",
    "billNumber": "BILL-20251011-000313",
    "date": "2025-10-11T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda33d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 313",
        "parentItem": "6a85e33f277a43e1d0bd9c25",
        "quantity": 424.75,
        "unitprice": 424.75,
        "sellingPrice": 424.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 180412.56,
    "totalRevenue": 180412.56,
    "totalGrossProfit": 32474.26,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda33e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_313",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9226",
    "billNumber": "BILL-20251010-000314",
    "date": "2025-10-10T17:09:19.059Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda33f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 314",
        "parentItem": "6a85e33f277a43e1d0bd9c26",
        "quantity": 428.5,
        "unitprice": 428.5,
        "sellingPrice": 428.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda340",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 315",
        "parentItem": "6a85e33f277a43e1d0bd9c27",
        "quantity": 432.25,
        "unitprice": 432.25,
        "sellingPrice": 432.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 370452.31,
    "totalRevenue": 370452.31,
    "totalGrossProfit": 66681.42,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda341",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359059,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda342",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_314",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9227",
    "billNumber": "BILL-20251009-000315",
    "date": "2025-10-09T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda343",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 315",
        "parentItem": "6a85e33f277a43e1d0bd9c27",
        "quantity": 432.25,
        "unitprice": 432.25,
        "sellingPrice": 432.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda344",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 316",
        "parentItem": "6a85e33f277a43e1d0bd9c28",
        "quantity": 436,
        "unitprice": 436,
        "sellingPrice": 436,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda345",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 317",
        "parentItem": "6a85e33f277a43e1d0bd9c29",
        "quantity": 439.75,
        "unitprice": 439.75,
        "sellingPrice": 439.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 570316.13,
    "totalRevenue": 570316.13,
    "totalGrossProfit": 102656.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda346",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda347",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda348",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_315",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9228",
    "billNumber": "BILL-20251008-000316",
    "date": "2025-10-08T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda349",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 316",
        "parentItem": "6a85e33f277a43e1d0bd9c28",
        "quantity": 436,
        "unitprice": 436,
        "sellingPrice": 436,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 190096,
    "totalRevenue": 190096,
    "totalGrossProfit": 34217.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda34a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_316",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9229",
    "billNumber": "BILL-20251007-000317",
    "date": "2025-10-07T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda34b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 317",
        "parentItem": "6a85e33f277a43e1d0bd9c29",
        "quantity": 439.75,
        "unitprice": 439.75,
        "sellingPrice": 439.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda34c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 318",
        "parentItem": "6a85e33f277a43e1d0bd9c2a",
        "quantity": 443.5,
        "unitprice": 443.5,
        "sellingPrice": 443.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 390072.31,
    "totalRevenue": 390072.31,
    "totalGrossProfit": 70213.02,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda34d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda34e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_317",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd922a",
    "billNumber": "BILL-20251006-000318",
    "date": "2025-10-06T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda34f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 318",
        "parentItem": "6a85e33f277a43e1d0bd9c2a",
        "quantity": 443.5,
        "unitprice": 443.5,
        "sellingPrice": 443.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda350",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 319",
        "parentItem": "6a85e33f277a43e1d0bd9c2b",
        "quantity": 447.25,
        "unitprice": 447.25,
        "sellingPrice": 447.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda351",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 320",
        "parentItem": "6a85e33f277a43e1d0bd9c2c",
        "quantity": 451,
        "unitprice": 451,
        "sellingPrice": 451,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 600125.81,
    "totalRevenue": 600125.81,
    "totalGrossProfit": 108022.65,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda352",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda353",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda354",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_318",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd922b",
    "billNumber": "BILL-20251005-000319",
    "date": "2025-10-05T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda355",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 319",
        "parentItem": "6a85e33f277a43e1d0bd9c2b",
        "quantity": 447.25,
        "unitprice": 447.25,
        "sellingPrice": 447.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 200032.56,
    "totalRevenue": 200032.56,
    "totalGrossProfit": 36005.86,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda356",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_319",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd922c",
    "billNumber": "BILL-20251004-000320",
    "date": "2025-10-04T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda357",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 320",
        "parentItem": "6a85e33f277a43e1d0bd9c2c",
        "quantity": 451,
        "unitprice": 451,
        "sellingPrice": 451,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda358",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 321",
        "parentItem": "6a85e33f277a43e1d0bd9c2d",
        "quantity": 454.75,
        "unitprice": 454.75,
        "sellingPrice": 454.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 410198.56,
    "totalRevenue": 410198.56,
    "totalGrossProfit": 73835.74,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda359",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda35a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_320",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd922d",
    "billNumber": "BILL-20251003-000321",
    "date": "2025-10-03T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda35b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 321",
        "parentItem": "6a85e33f277a43e1d0bd9c2d",
        "quantity": 454.75,
        "unitprice": 454.75,
        "sellingPrice": 454.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda35c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 322",
        "parentItem": "6a85e33f277a43e1d0bd9c2e",
        "quantity": 458.5,
        "unitprice": 458.5,
        "sellingPrice": 458.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda35d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 323",
        "parentItem": "6a85e33f277a43e1d0bd9c2f",
        "quantity": 462.25,
        "unitprice": 462.25,
        "sellingPrice": 462.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 630694.88,
    "totalRevenue": 630694.88,
    "totalGrossProfit": 113525.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda35e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda35f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda360",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_321",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd922e",
    "billNumber": "BILL-20251002-000322",
    "date": "2025-10-02T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda361",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 322",
        "parentItem": "6a85e33f277a43e1d0bd9c2e",
        "quantity": 458.5,
        "unitprice": 458.5,
        "sellingPrice": 458.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 210222.25,
    "totalRevenue": 210222.25,
    "totalGrossProfit": 37840,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda362",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_322",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd922f",
    "billNumber": "BILL-20251001-000323",
    "date": "2025-10-01T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda363",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 323",
        "parentItem": "6a85e33f277a43e1d0bd9c2f",
        "quantity": 462.25,
        "unitprice": 462.25,
        "sellingPrice": 462.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda364",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 324",
        "parentItem": "6a85e33f277a43e1d0bd9c30",
        "quantity": 466,
        "unitprice": 466,
        "sellingPrice": 466,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 430831.06,
    "totalRevenue": 430831.06,
    "totalGrossProfit": 77549.59,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda365",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359060,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda366",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_323",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9230",
    "billNumber": "BILL-20250930-000324",
    "date": "2025-09-30T17:09:19.060Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda367",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 324",
        "parentItem": "6a85e33f277a43e1d0bd9c30",
        "quantity": 466,
        "unitprice": 466,
        "sellingPrice": 466,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda368",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 325",
        "parentItem": "6a85e33f277a43e1d0bd9c31",
        "quantity": 469.75,
        "unitprice": 469.75,
        "sellingPrice": 469.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda369",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 326",
        "parentItem": "6a85e33f277a43e1d0bd9c32",
        "quantity": 473.5,
        "unitprice": 473.5,
        "sellingPrice": 473.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 662023.31,
    "totalRevenue": 662023.31,
    "totalGrossProfit": 119164.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda36a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda36b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda36c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_324",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9231",
    "billNumber": "BILL-20250929-000325",
    "date": "2025-09-29T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda36d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 325",
        "parentItem": "6a85e33f277a43e1d0bd9c31",
        "quantity": 469.75,
        "unitprice": 469.75,
        "sellingPrice": 469.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 220665.06,
    "totalRevenue": 220665.06,
    "totalGrossProfit": 39719.71,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda36e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_325",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9232",
    "billNumber": "BILL-20250928-000326",
    "date": "2025-09-28T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda36f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 326",
        "parentItem": "6a85e33f277a43e1d0bd9c32",
        "quantity": 473.5,
        "unitprice": 473.5,
        "sellingPrice": 473.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda370",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 327",
        "parentItem": "6a85e33f277a43e1d0bd9c33",
        "quantity": 477.25,
        "unitprice": 477.25,
        "sellingPrice": 477.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 451969.81,
    "totalRevenue": 451969.81,
    "totalGrossProfit": 81354.57,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda371",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda372",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_326",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9233",
    "billNumber": "BILL-20250927-000327",
    "date": "2025-09-27T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda373",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 327",
        "parentItem": "6a85e33f277a43e1d0bd9c33",
        "quantity": 477.25,
        "unitprice": 477.25,
        "sellingPrice": 477.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda374",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 328",
        "parentItem": "6a85e33f277a43e1d0bd9c34",
        "quantity": 481,
        "unitprice": 481,
        "sellingPrice": 481,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda375",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 329",
        "parentItem": "6a85e33f277a43e1d0bd9c35",
        "quantity": 484.75,
        "unitprice": 484.75,
        "sellingPrice": 484.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 694111.13,
    "totalRevenue": 694111.13,
    "totalGrossProfit": 124940,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda376",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda377",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda378",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_327",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9234",
    "billNumber": "BILL-20250926-000328",
    "date": "2025-09-26T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda379",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 328",
        "parentItem": "6a85e33f277a43e1d0bd9c34",
        "quantity": 481,
        "unitprice": 481,
        "sellingPrice": 481,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 231361,
    "totalRevenue": 231361,
    "totalGrossProfit": 41644.98,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda37a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_328",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9235",
    "billNumber": "BILL-20250925-000329",
    "date": "2025-09-25T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda37b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 329",
        "parentItem": "6a85e33f277a43e1d0bd9c35",
        "quantity": 484.75,
        "unitprice": 484.75,
        "sellingPrice": 484.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda37c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 330",
        "parentItem": "6a85e33f277a43e1d0bd9c36",
        "quantity": 488.5,
        "unitprice": 488.5,
        "sellingPrice": 488.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 473614.81,
    "totalRevenue": 473614.81,
    "totalGrossProfit": 85250.67,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda37d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda37e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_329",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9236",
    "billNumber": "BILL-20250924-000330",
    "date": "2025-09-24T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda37f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 330",
        "parentItem": "6a85e33f277a43e1d0bd9c36",
        "quantity": 488.5,
        "unitprice": 488.5,
        "sellingPrice": 488.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda380",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 331",
        "parentItem": "6a85e33f277a43e1d0bd9c37",
        "quantity": 492.25,
        "unitprice": 492.25,
        "sellingPrice": 492.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda381",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 332",
        "parentItem": "6a85e33f277a43e1d0bd9c38",
        "quantity": 496,
        "unitprice": 496,
        "sellingPrice": 496,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 726958.31,
    "totalRevenue": 726958.31,
    "totalGrossProfit": 130852.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda382",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda383",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda384",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_330",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9237",
    "billNumber": "BILL-20250923-000331",
    "date": "2025-09-23T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda385",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 331",
        "parentItem": "6a85e33f277a43e1d0bd9c37",
        "quantity": 492.25,
        "unitprice": 492.25,
        "sellingPrice": 492.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 242310.06,
    "totalRevenue": 242310.06,
    "totalGrossProfit": 43615.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda386",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_331",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9238",
    "billNumber": "BILL-20250922-000332",
    "date": "2025-09-22T17:09:19.061Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda387",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 332",
        "parentItem": "6a85e33f277a43e1d0bd9c38",
        "quantity": 496,
        "unitprice": 496,
        "sellingPrice": 496,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda388",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 333",
        "parentItem": "6a85e33f277a43e1d0bd9c39",
        "quantity": 499.75,
        "unitprice": 499.75,
        "sellingPrice": 499.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 495766.06,
    "totalRevenue": 495766.06,
    "totalGrossProfit": 89237.89,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda389",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359061,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda38a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_332",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9239",
    "billNumber": "BILL-20250921-000333",
    "date": "2025-09-21T17:09:19.062Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda38b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 333",
        "parentItem": "6a85e33f277a43e1d0bd9c39",
        "quantity": 499.75,
        "unitprice": 499.75,
        "sellingPrice": 499.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda38c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 334",
        "parentItem": "6a85e33f277a43e1d0bd9c3a",
        "quantity": 503.5,
        "unitprice": 503.5,
        "sellingPrice": 503.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda38d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 335",
        "parentItem": "6a85e33f277a43e1d0bd9c3b",
        "quantity": 507.25,
        "unitprice": 507.25,
        "sellingPrice": 507.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 760564.88,
    "totalRevenue": 760564.88,
    "totalGrossProfit": 136901.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359062,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda38e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359062,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda38f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359062,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda390",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_333",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd923a",
    "billNumber": "BILL-20250920-000334",
    "date": "2025-09-20T17:09:19.062Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda391",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 334",
        "parentItem": "6a85e33f277a43e1d0bd9c3a",
        "quantity": 503.5,
        "unitprice": 503.5,
        "sellingPrice": 503.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 253512.25,
    "totalRevenue": 253512.25,
    "totalGrossProfit": 45632.21,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359062,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda392",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_334",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd923b",
    "billNumber": "BILL-20250919-000335",
    "date": "2025-09-19T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda393",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 335",
        "parentItem": "6a85e33f277a43e1d0bd9c3b",
        "quantity": 507.25,
        "unitprice": 507.25,
        "sellingPrice": 507.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda394",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 336",
        "parentItem": "6a85e33f277a43e1d0bd9c3c",
        "quantity": 511,
        "unitprice": 511,
        "sellingPrice": 511,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 518423.56,
    "totalRevenue": 518423.56,
    "totalGrossProfit": 93316.24,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda395",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda396",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_335",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd923c",
    "billNumber": "BILL-20250918-000336",
    "date": "2025-09-18T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda397",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 336",
        "parentItem": "6a85e33f277a43e1d0bd9c3c",
        "quantity": 511,
        "unitprice": 511,
        "sellingPrice": 511,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda398",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 337",
        "parentItem": "6a85e33f277a43e1d0bd9c3d",
        "quantity": 514.75,
        "unitprice": 514.75,
        "sellingPrice": 514.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda399",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 338",
        "parentItem": "6a85e33f277a43e1d0bd9c3e",
        "quantity": 518.5,
        "unitprice": 518.5,
        "sellingPrice": 518.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 794930.81,
    "totalRevenue": 794930.81,
    "totalGrossProfit": 143087.55,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda39a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda39b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda39c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_336",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd923d",
    "billNumber": "BILL-20250917-000337",
    "date": "2025-09-17T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda39d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 337",
        "parentItem": "6a85e33f277a43e1d0bd9c3d",
        "quantity": 514.75,
        "unitprice": 514.75,
        "sellingPrice": 514.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 264967.56,
    "totalRevenue": 264967.56,
    "totalGrossProfit": 47694.16,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda39e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_337",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd923e",
    "billNumber": "BILL-20250916-000338",
    "date": "2025-09-16T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda39f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 338",
        "parentItem": "6a85e33f277a43e1d0bd9c3e",
        "quantity": 518.5,
        "unitprice": 518.5,
        "sellingPrice": 518.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3a0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 339",
        "parentItem": "6a85e33f277a43e1d0bd9c3f",
        "quantity": 522.25,
        "unitprice": 522.25,
        "sellingPrice": 522.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 541587.31,
    "totalRevenue": 541587.31,
    "totalGrossProfit": 97485.72,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3a1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3a2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_338",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd923f",
    "billNumber": "BILL-20250915-000339",
    "date": "2025-09-15T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3a3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 339",
        "parentItem": "6a85e33f277a43e1d0bd9c3f",
        "quantity": 522.25,
        "unitprice": 522.25,
        "sellingPrice": 522.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3a4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 340",
        "parentItem": "6a85e33f277a43e1d0bd9c40",
        "quantity": 526,
        "unitprice": 526,
        "sellingPrice": 526,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3a5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 341",
        "parentItem": "6a85e33f277a43e1d0bd9c41",
        "quantity": 529.75,
        "unitprice": 529.75,
        "sellingPrice": 529.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 830056.13,
    "totalRevenue": 830056.13,
    "totalGrossProfit": 149410.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3a6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3a7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3a8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_339",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9240",
    "billNumber": "BILL-20250914-000340",
    "date": "2025-09-14T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3a9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 340",
        "parentItem": "6a85e33f277a43e1d0bd9c40",
        "quantity": 526,
        "unitprice": 526,
        "sellingPrice": 526,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 276676,
    "totalRevenue": 276676,
    "totalGrossProfit": 49801.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3aa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_340",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9241",
    "billNumber": "BILL-20250913-000341",
    "date": "2025-09-13T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3ab",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 341",
        "parentItem": "6a85e33f277a43e1d0bd9c41",
        "quantity": 529.75,
        "unitprice": 529.75,
        "sellingPrice": 529.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3ac",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 342",
        "parentItem": "6a85e33f277a43e1d0bd9c42",
        "quantity": 533.5,
        "unitprice": 533.5,
        "sellingPrice": 533.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 565257.31,
    "totalRevenue": 565257.31,
    "totalGrossProfit": 101746.32,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ad",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_341",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9242",
    "billNumber": "BILL-20250912-000342",
    "date": "2025-09-12T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3af",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 342",
        "parentItem": "6a85e33f277a43e1d0bd9c42",
        "quantity": 533.5,
        "unitprice": 533.5,
        "sellingPrice": 533.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3b0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 343",
        "parentItem": "6a85e33f277a43e1d0bd9c43",
        "quantity": 537.25,
        "unitprice": 537.25,
        "sellingPrice": 537.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3b1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 344",
        "parentItem": "6a85e33f277a43e1d0bd9c44",
        "quantity": 541,
        "unitprice": 541,
        "sellingPrice": 541,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 865940.81,
    "totalRevenue": 865940.81,
    "totalGrossProfit": 155869.35,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3b2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3b3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3b4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_342",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9243",
    "billNumber": "BILL-20250911-000343",
    "date": "2025-09-11T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3b5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 343",
        "parentItem": "6a85e33f277a43e1d0bd9c43",
        "quantity": 537.25,
        "unitprice": 537.25,
        "sellingPrice": 537.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 288637.56,
    "totalRevenue": 288637.56,
    "totalGrossProfit": 51954.76,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3b6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_343",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9244",
    "billNumber": "BILL-20250910-000344",
    "date": "2025-09-10T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3b7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 344",
        "parentItem": "6a85e33f277a43e1d0bd9c44",
        "quantity": 541,
        "unitprice": 541,
        "sellingPrice": 541,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3b8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 345",
        "parentItem": "6a85e33f277a43e1d0bd9c45",
        "quantity": 544.75,
        "unitprice": 544.75,
        "sellingPrice": 544.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 589433.56,
    "totalRevenue": 589433.56,
    "totalGrossProfit": 106098.04,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3b9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_344",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9245",
    "billNumber": "BILL-20250909-000345",
    "date": "2025-09-09T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3bb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 345",
        "parentItem": "6a85e33f277a43e1d0bd9c45",
        "quantity": 544.75,
        "unitprice": 544.75,
        "sellingPrice": 544.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3bc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 346",
        "parentItem": "6a85e33f277a43e1d0bd9c46",
        "quantity": 548.5,
        "unitprice": 548.5,
        "sellingPrice": 548.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3bd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 347",
        "parentItem": "6a85e33f277a43e1d0bd9c47",
        "quantity": 552.25,
        "unitprice": 552.25,
        "sellingPrice": 552.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 902584.88,
    "totalRevenue": 902584.88,
    "totalGrossProfit": 162465.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3be",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3bf",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3c0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_345",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9246",
    "billNumber": "BILL-20250908-000346",
    "date": "2025-09-08T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3c1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 346",
        "parentItem": "6a85e33f277a43e1d0bd9c46",
        "quantity": 548.5,
        "unitprice": 548.5,
        "sellingPrice": 548.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 300852.25,
    "totalRevenue": 300852.25,
    "totalGrossProfit": 54153.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3c2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_346",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9247",
    "billNumber": "BILL-20250907-000347",
    "date": "2025-09-07T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3c3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 347",
        "parentItem": "6a85e33f277a43e1d0bd9c47",
        "quantity": 552.25,
        "unitprice": 552.25,
        "sellingPrice": 552.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3c4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 348",
        "parentItem": "6a85e33f277a43e1d0bd9c48",
        "quantity": 556,
        "unitprice": 556,
        "sellingPrice": 556,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 614116.06,
    "totalRevenue": 614116.06,
    "totalGrossProfit": 110540.89,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3c5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3c6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_347",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9248",
    "billNumber": "BILL-20250906-000348",
    "date": "2025-09-06T17:09:19.063Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3c7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 348",
        "parentItem": "6a85e33f277a43e1d0bd9c48",
        "quantity": 556,
        "unitprice": 556,
        "sellingPrice": 556,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3c8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 349",
        "parentItem": "6a85e33f277a43e1d0bd9c49",
        "quantity": 559.75,
        "unitprice": 559.75,
        "sellingPrice": 559.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3c9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 350",
        "parentItem": "6a85e33f277a43e1d0bd9c4a",
        "quantity": 563.5,
        "unitprice": 563.5,
        "sellingPrice": 563.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 939988.31,
    "totalRevenue": 939988.31,
    "totalGrossProfit": 169197.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3cb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359063,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3cc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_348",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9249",
    "billNumber": "BILL-20250905-000349",
    "date": "2025-09-05T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3cd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 349",
        "parentItem": "6a85e33f277a43e1d0bd9c49",
        "quantity": 559.75,
        "unitprice": 559.75,
        "sellingPrice": 559.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 313320.06,
    "totalRevenue": 313320.06,
    "totalGrossProfit": 56397.61,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ce",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_349",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd924a",
    "billNumber": "BILL-20250904-000350",
    "date": "2025-09-04T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3cf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 350",
        "parentItem": "6a85e33f277a43e1d0bd9c4a",
        "quantity": 563.5,
        "unitprice": 563.5,
        "sellingPrice": 563.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3d0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 351",
        "parentItem": "6a85e33f277a43e1d0bd9c4b",
        "quantity": 567.25,
        "unitprice": 567.25,
        "sellingPrice": 567.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 639304.81,
    "totalRevenue": 639304.81,
    "totalGrossProfit": 115074.87,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3d1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3d2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_350",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd924b",
    "billNumber": "BILL-20250903-000351",
    "date": "2025-09-03T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3d3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 351",
        "parentItem": "6a85e33f277a43e1d0bd9c4b",
        "quantity": 567.25,
        "unitprice": 567.25,
        "sellingPrice": 567.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3d4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 352",
        "parentItem": "6a85e33f277a43e1d0bd9c4c",
        "quantity": 571,
        "unitprice": 571,
        "sellingPrice": 571,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3d5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 353",
        "parentItem": "6a85e33f277a43e1d0bd9c4d",
        "quantity": 574.75,
        "unitprice": 574.75,
        "sellingPrice": 574.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 978151.13,
    "totalRevenue": 978151.13,
    "totalGrossProfit": 176067.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3d6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3d7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3d8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_351",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd924c",
    "billNumber": "BILL-20250902-000352",
    "date": "2025-09-02T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3d9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 352",
        "parentItem": "6a85e33f277a43e1d0bd9c4c",
        "quantity": 571,
        "unitprice": 571,
        "sellingPrice": 571,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 326041,
    "totalRevenue": 326041,
    "totalGrossProfit": 58687.38,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3da",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_352",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd924d",
    "billNumber": "BILL-20250901-000353",
    "date": "2025-09-01T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3db",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 353",
        "parentItem": "6a85e33f277a43e1d0bd9c4d",
        "quantity": 574.75,
        "unitprice": 574.75,
        "sellingPrice": 574.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3dc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 354",
        "parentItem": "6a85e33f277a43e1d0bd9c4e",
        "quantity": 578.5,
        "unitprice": 578.5,
        "sellingPrice": 578.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 664999.81,
    "totalRevenue": 664999.81,
    "totalGrossProfit": 119699.97,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3dd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3de",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_353",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd924e",
    "billNumber": "BILL-20250831-000354",
    "date": "2025-08-31T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3df",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 354",
        "parentItem": "6a85e33f277a43e1d0bd9c4e",
        "quantity": 578.5,
        "unitprice": 578.5,
        "sellingPrice": 578.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3e0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 355",
        "parentItem": "6a85e33f277a43e1d0bd9c4f",
        "quantity": 582.25,
        "unitprice": 582.25,
        "sellingPrice": 582.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3e1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 356",
        "parentItem": "6a85e33f277a43e1d0bd9c50",
        "quantity": 586,
        "unitprice": 586,
        "sellingPrice": 586,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1017073.31,
    "totalRevenue": 1017073.31,
    "totalGrossProfit": 183073.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3e2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3e3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3e4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_354",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd924f",
    "billNumber": "BILL-20250830-000355",
    "date": "2025-08-30T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3e5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 355",
        "parentItem": "6a85e33f277a43e1d0bd9c4f",
        "quantity": 582.25,
        "unitprice": 582.25,
        "sellingPrice": 582.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 339015.06,
    "totalRevenue": 339015.06,
    "totalGrossProfit": 61022.71,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3e6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_355",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9250",
    "billNumber": "BILL-20250829-000356",
    "date": "2025-08-29T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3e7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 356",
        "parentItem": "6a85e33f277a43e1d0bd9c50",
        "quantity": 586,
        "unitprice": 586,
        "sellingPrice": 586,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3e8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 357",
        "parentItem": "6a85e33f277a43e1d0bd9c51",
        "quantity": 589.75,
        "unitprice": 589.75,
        "sellingPrice": 589.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 691201.06,
    "totalRevenue": 691201.06,
    "totalGrossProfit": 124416.19,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3e9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_356",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9251",
    "billNumber": "BILL-20250828-000357",
    "date": "2025-08-28T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3eb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 357",
        "parentItem": "6a85e33f277a43e1d0bd9c51",
        "quantity": 589.75,
        "unitprice": 589.75,
        "sellingPrice": 589.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3ec",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 358",
        "parentItem": "6a85e33f277a43e1d0bd9c52",
        "quantity": 593.5,
        "unitprice": 593.5,
        "sellingPrice": 593.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3ed",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 359",
        "parentItem": "6a85e33f277a43e1d0bd9c53",
        "quantity": 597.25,
        "unitprice": 597.25,
        "sellingPrice": 597.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1056754.88,
    "totalRevenue": 1056754.88,
    "totalGrossProfit": 190215.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3ef",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3f0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_357",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9252",
    "billNumber": "BILL-20250827-000358",
    "date": "2025-08-27T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3f1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 358",
        "parentItem": "6a85e33f277a43e1d0bd9c52",
        "quantity": 593.5,
        "unitprice": 593.5,
        "sellingPrice": 593.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 352242.25,
    "totalRevenue": 352242.25,
    "totalGrossProfit": 63403.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3f2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_358",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9253",
    "billNumber": "BILL-20250826-000359",
    "date": "2025-08-26T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3f3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 359",
        "parentItem": "6a85e33f277a43e1d0bd9c53",
        "quantity": 597.25,
        "unitprice": 597.25,
        "sellingPrice": 597.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3f4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 360",
        "parentItem": "6a85e33f277a43e1d0bd9c54",
        "quantity": 601,
        "unitprice": 601,
        "sellingPrice": 601,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 717908.56,
    "totalRevenue": 717908.56,
    "totalGrossProfit": 129223.54,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3f5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3f6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_359",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9254",
    "billNumber": "BILL-20250825-000360",
    "date": "2025-08-25T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3f7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 360",
        "parentItem": "6a85e33f277a43e1d0bd9c54",
        "quantity": 601,
        "unitprice": 601,
        "sellingPrice": 601,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3f8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 361",
        "parentItem": "6a85e33f277a43e1d0bd9c55",
        "quantity": 604.75,
        "unitprice": 604.75,
        "sellingPrice": 604.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda3f9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 362",
        "parentItem": "6a85e33f277a43e1d0bd9c56",
        "quantity": 608.5,
        "unitprice": 608.5,
        "sellingPrice": 608.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1097195.81,
    "totalRevenue": 1097195.81,
    "totalGrossProfit": 197495.25,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3fa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3fb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3fc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_360",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9255",
    "billNumber": "BILL-20250824-000361",
    "date": "2025-08-24T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3fd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 361",
        "parentItem": "6a85e33f277a43e1d0bd9c55",
        "quantity": 604.75,
        "unitprice": 604.75,
        "sellingPrice": 604.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 365722.56,
    "totalRevenue": 365722.56,
    "totalGrossProfit": 65830.06,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda3fe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_361",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9256",
    "billNumber": "BILL-20250823-000362",
    "date": "2025-08-23T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda3ff",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 362",
        "parentItem": "6a85e33f277a43e1d0bd9c56",
        "quantity": 608.5,
        "unitprice": 608.5,
        "sellingPrice": 608.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda400",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 363",
        "parentItem": "6a85e33f277a43e1d0bd9c57",
        "quantity": 612.25,
        "unitprice": 612.25,
        "sellingPrice": 612.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 745122.31,
    "totalRevenue": 745122.31,
    "totalGrossProfit": 134122.02,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda401",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359064,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda402",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_362",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9257",
    "billNumber": "BILL-20250822-000363",
    "date": "2025-08-22T17:09:19.064Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda403",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 363",
        "parentItem": "6a85e33f277a43e1d0bd9c57",
        "quantity": 612.25,
        "unitprice": 612.25,
        "sellingPrice": 612.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda404",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 364",
        "parentItem": "6a85e33f277a43e1d0bd9c58",
        "quantity": 616,
        "unitprice": 616,
        "sellingPrice": 616,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda405",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 365",
        "parentItem": "6a85e33f277a43e1d0bd9c59",
        "quantity": 619.75,
        "unitprice": 619.75,
        "sellingPrice": 619.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1138396.13,
    "totalRevenue": 1138396.13,
    "totalGrossProfit": 204911.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda406",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda407",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda408",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_363",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9258",
    "billNumber": "BILL-20250821-000364",
    "date": "2025-08-21T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda409",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 364",
        "parentItem": "6a85e33f277a43e1d0bd9c58",
        "quantity": 616,
        "unitprice": 616,
        "sellingPrice": 616,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 379456,
    "totalRevenue": 379456,
    "totalGrossProfit": 68302.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda40a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_364",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9259",
    "billNumber": "BILL-20250820-000365",
    "date": "2025-08-20T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda40b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 365",
        "parentItem": "6a85e33f277a43e1d0bd9c59",
        "quantity": 619.75,
        "unitprice": 619.75,
        "sellingPrice": 619.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda40c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 366",
        "parentItem": "6a85e33f277a43e1d0bd9c5a",
        "quantity": 623.5,
        "unitprice": 623.5,
        "sellingPrice": 623.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 772842.31,
    "totalRevenue": 772842.31,
    "totalGrossProfit": 139111.62,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda40d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda40e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_365",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd925a",
    "billNumber": "BILL-20250819-000366",
    "date": "2025-08-19T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda40f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 366",
        "parentItem": "6a85e33f277a43e1d0bd9c5a",
        "quantity": 623.5,
        "unitprice": 623.5,
        "sellingPrice": 623.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda410",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 367",
        "parentItem": "6a85e33f277a43e1d0bd9c5b",
        "quantity": 627.25,
        "unitprice": 627.25,
        "sellingPrice": 627.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda411",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 368",
        "parentItem": "6a85e33f277a43e1d0bd9c5c",
        "quantity": 631,
        "unitprice": 631,
        "sellingPrice": 631,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1180355.81,
    "totalRevenue": 1180355.81,
    "totalGrossProfit": 212464.05,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda412",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda413",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda414",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_366",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd925b",
    "billNumber": "BILL-20250818-000367",
    "date": "2025-08-18T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda415",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 367",
        "parentItem": "6a85e33f277a43e1d0bd9c5b",
        "quantity": 627.25,
        "unitprice": 627.25,
        "sellingPrice": 627.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 393442.56,
    "totalRevenue": 393442.56,
    "totalGrossProfit": 70819.66,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda416",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_367",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd925c",
    "billNumber": "BILL-20250817-000368",
    "date": "2025-08-17T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda417",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 368",
        "parentItem": "6a85e33f277a43e1d0bd9c5c",
        "quantity": 631,
        "unitprice": 631,
        "sellingPrice": 631,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda418",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 369",
        "parentItem": "6a85e33f277a43e1d0bd9c5d",
        "quantity": 634.75,
        "unitprice": 634.75,
        "sellingPrice": 634.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 801068.56,
    "totalRevenue": 801068.56,
    "totalGrossProfit": 144192.34,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda419",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda41a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_368",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd925d",
    "billNumber": "BILL-20250816-000369",
    "date": "2025-08-16T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda41b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 369",
        "parentItem": "6a85e33f277a43e1d0bd9c5d",
        "quantity": 634.75,
        "unitprice": 634.75,
        "sellingPrice": 634.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda41c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 370",
        "parentItem": "6a85e33f277a43e1d0bd9c5e",
        "quantity": 638.5,
        "unitprice": 638.5,
        "sellingPrice": 638.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda41d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 371",
        "parentItem": "6a85e33f277a43e1d0bd9c5f",
        "quantity": 642.25,
        "unitprice": 642.25,
        "sellingPrice": 642.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1223074.88,
    "totalRevenue": 1223074.88,
    "totalGrossProfit": 220153.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda41e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda41f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda420",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_369",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd925e",
    "billNumber": "BILL-20250815-000370",
    "date": "2025-08-15T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda421",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 370",
        "parentItem": "6a85e33f277a43e1d0bd9c5e",
        "quantity": 638.5,
        "unitprice": 638.5,
        "sellingPrice": 638.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 407682.25,
    "totalRevenue": 407682.25,
    "totalGrossProfit": 73382.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda422",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_370",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd925f",
    "billNumber": "BILL-20250814-000371",
    "date": "2025-08-14T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda423",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 371",
        "parentItem": "6a85e33f277a43e1d0bd9c5f",
        "quantity": 642.25,
        "unitprice": 642.25,
        "sellingPrice": 642.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda424",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 372",
        "parentItem": "6a85e33f277a43e1d0bd9c60",
        "quantity": 646,
        "unitprice": 646,
        "sellingPrice": 646,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 829801.06,
    "totalRevenue": 829801.06,
    "totalGrossProfit": 149364.19,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda425",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda426",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_371",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9260",
    "billNumber": "BILL-20250813-000372",
    "date": "2025-08-13T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda427",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 372",
        "parentItem": "6a85e33f277a43e1d0bd9c60",
        "quantity": 646,
        "unitprice": 646,
        "sellingPrice": 646,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda428",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 373",
        "parentItem": "6a85e33f277a43e1d0bd9c61",
        "quantity": 649.75,
        "unitprice": 649.75,
        "sellingPrice": 649.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda429",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 374",
        "parentItem": "6a85e33f277a43e1d0bd9c62",
        "quantity": 653.5,
        "unitprice": 653.5,
        "sellingPrice": 653.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1266553.31,
    "totalRevenue": 1266553.31,
    "totalGrossProfit": 227979.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda42a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda42b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda42c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_372",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9261",
    "billNumber": "BILL-20250812-000373",
    "date": "2025-08-12T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda42d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 373",
        "parentItem": "6a85e33f277a43e1d0bd9c61",
        "quantity": 649.75,
        "unitprice": 649.75,
        "sellingPrice": 649.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 422175.06,
    "totalRevenue": 422175.06,
    "totalGrossProfit": 75991.51,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda42e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_373",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9262",
    "billNumber": "BILL-20250811-000374",
    "date": "2025-08-11T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda42f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 374",
        "parentItem": "6a85e33f277a43e1d0bd9c62",
        "quantity": 653.5,
        "unitprice": 653.5,
        "sellingPrice": 653.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda430",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 375",
        "parentItem": "6a85e33f277a43e1d0bd9c63",
        "quantity": 657.25,
        "unitprice": 657.25,
        "sellingPrice": 657.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 859039.81,
    "totalRevenue": 859039.81,
    "totalGrossProfit": 154627.17,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda431",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda432",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_374",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9263",
    "billNumber": "BILL-20250810-000375",
    "date": "2025-08-10T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda433",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 375",
        "parentItem": "6a85e33f277a43e1d0bd9c63",
        "quantity": 657.25,
        "unitprice": 657.25,
        "sellingPrice": 657.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda434",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 376",
        "parentItem": "6a85e33f277a43e1d0bd9c64",
        "quantity": 661,
        "unitprice": 661,
        "sellingPrice": 661,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda435",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 377",
        "parentItem": "6a85e33f277a43e1d0bd9c65",
        "quantity": 664.75,
        "unitprice": 664.75,
        "sellingPrice": 664.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1310791.13,
    "totalRevenue": 1310791.13,
    "totalGrossProfit": 235942.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda436",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda437",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda438",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_375",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9264",
    "billNumber": "BILL-20250809-000376",
    "date": "2025-08-09T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda439",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 376",
        "parentItem": "6a85e33f277a43e1d0bd9c64",
        "quantity": 661,
        "unitprice": 661,
        "sellingPrice": 661,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 436921,
    "totalRevenue": 436921,
    "totalGrossProfit": 78645.78,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359065,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda43a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_376",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9265",
    "billNumber": "BILL-20250808-000377",
    "date": "2025-08-08T17:09:19.065Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda43b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 377",
        "parentItem": "6a85e33f277a43e1d0bd9c65",
        "quantity": 664.75,
        "unitprice": 664.75,
        "sellingPrice": 664.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda43c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 378",
        "parentItem": "6a85e33f277a43e1d0bd9c66",
        "quantity": 668.5,
        "unitprice": 668.5,
        "sellingPrice": 668.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 888784.81,
    "totalRevenue": 888784.81,
    "totalGrossProfit": 159981.27,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda43d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda43e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_377",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9266",
    "billNumber": "BILL-20250807-000378",
    "date": "2025-08-07T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda43f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 378",
        "parentItem": "6a85e33f277a43e1d0bd9c66",
        "quantity": 668.5,
        "unitprice": 668.5,
        "sellingPrice": 668.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda440",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 379",
        "parentItem": "6a85e33f277a43e1d0bd9c67",
        "quantity": 672.25,
        "unitprice": 672.25,
        "sellingPrice": 672.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda441",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 380",
        "parentItem": "6a85e33f277a43e1d0bd9c68",
        "quantity": 676,
        "unitprice": 676,
        "sellingPrice": 676,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1355788.31,
    "totalRevenue": 1355788.31,
    "totalGrossProfit": 244041.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda442",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda443",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda444",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_378",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9267",
    "billNumber": "BILL-20250806-000379",
    "date": "2025-08-06T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda445",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 379",
        "parentItem": "6a85e33f277a43e1d0bd9c67",
        "quantity": 672.25,
        "unitprice": 672.25,
        "sellingPrice": 672.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 451920.06,
    "totalRevenue": 451920.06,
    "totalGrossProfit": 81345.61,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda446",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_379",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9268",
    "billNumber": "BILL-20250805-000380",
    "date": "2025-08-05T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda447",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 380",
        "parentItem": "6a85e33f277a43e1d0bd9c68",
        "quantity": 676,
        "unitprice": 676,
        "sellingPrice": 676,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda448",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 381",
        "parentItem": "6a85e33f277a43e1d0bd9c69",
        "quantity": 679.75,
        "unitprice": 679.75,
        "sellingPrice": 679.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 919036.06,
    "totalRevenue": 919036.06,
    "totalGrossProfit": 165426.49,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda449",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda44a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_380",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9269",
    "billNumber": "BILL-20250804-000381",
    "date": "2025-08-04T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda44b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 381",
        "parentItem": "6a85e33f277a43e1d0bd9c69",
        "quantity": 679.75,
        "unitprice": 679.75,
        "sellingPrice": 679.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda44c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 382",
        "parentItem": "6a85e33f277a43e1d0bd9c6a",
        "quantity": 683.5,
        "unitprice": 683.5,
        "sellingPrice": 683.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda44d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 383",
        "parentItem": "6a85e33f277a43e1d0bd9c6b",
        "quantity": 687.25,
        "unitprice": 687.25,
        "sellingPrice": 687.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1401544.88,
    "totalRevenue": 1401544.88,
    "totalGrossProfit": 252278.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda44e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda44f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda450",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_381",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd926a",
    "billNumber": "BILL-20250803-000382",
    "date": "2025-08-03T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda451",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 382",
        "parentItem": "6a85e33f277a43e1d0bd9c6a",
        "quantity": 683.5,
        "unitprice": 683.5,
        "sellingPrice": 683.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 467172.25,
    "totalRevenue": 467172.25,
    "totalGrossProfit": 84091,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda452",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_382",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd926b",
    "billNumber": "BILL-20250802-000383",
    "date": "2025-08-02T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda453",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 383",
        "parentItem": "6a85e33f277a43e1d0bd9c6b",
        "quantity": 687.25,
        "unitprice": 687.25,
        "sellingPrice": 687.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda454",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 384",
        "parentItem": "6a85e33f277a43e1d0bd9c6c",
        "quantity": 691,
        "unitprice": 691,
        "sellingPrice": 691,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 949793.56,
    "totalRevenue": 949793.56,
    "totalGrossProfit": 170962.84,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda455",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda456",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_383",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd926c",
    "billNumber": "BILL-20250801-000384",
    "date": "2025-08-01T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda457",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 384",
        "parentItem": "6a85e33f277a43e1d0bd9c6c",
        "quantity": 691,
        "unitprice": 691,
        "sellingPrice": 691,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda458",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 385",
        "parentItem": "6a85e33f277a43e1d0bd9c6d",
        "quantity": 694.75,
        "unitprice": 694.75,
        "sellingPrice": 694.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda459",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 386",
        "parentItem": "6a85e33f277a43e1d0bd9c6e",
        "quantity": 698.5,
        "unitprice": 698.5,
        "sellingPrice": 698.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1448060.81,
    "totalRevenue": 1448060.81,
    "totalGrossProfit": 260650.95,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda45a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda45b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda45c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_384",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd926d",
    "billNumber": "BILL-20250731-000385",
    "date": "2025-07-31T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda45d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 385",
        "parentItem": "6a85e33f277a43e1d0bd9c6d",
        "quantity": 694.75,
        "unitprice": 694.75,
        "sellingPrice": 694.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 482677.56,
    "totalRevenue": 482677.56,
    "totalGrossProfit": 86881.96,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda45e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_385",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd926e",
    "billNumber": "BILL-20250730-000386",
    "date": "2025-07-30T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda45f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 386",
        "parentItem": "6a85e33f277a43e1d0bd9c6e",
        "quantity": 698.5,
        "unitprice": 698.5,
        "sellingPrice": 698.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda460",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 387",
        "parentItem": "6a85e33f277a43e1d0bd9c6f",
        "quantity": 702.25,
        "unitprice": 702.25,
        "sellingPrice": 702.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 981057.31,
    "totalRevenue": 981057.31,
    "totalGrossProfit": 176590.32,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda461",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda462",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_386",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd926f",
    "billNumber": "BILL-20250729-000387",
    "date": "2025-07-29T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda463",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 387",
        "parentItem": "6a85e33f277a43e1d0bd9c6f",
        "quantity": 702.25,
        "unitprice": 702.25,
        "sellingPrice": 702.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda464",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 388",
        "parentItem": "6a85e33f277a43e1d0bd9c70",
        "quantity": 706,
        "unitprice": 706,
        "sellingPrice": 706,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda465",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 389",
        "parentItem": "6a85e33f277a43e1d0bd9c71",
        "quantity": 709.75,
        "unitprice": 709.75,
        "sellingPrice": 709.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1495336.13,
    "totalRevenue": 1495336.13,
    "totalGrossProfit": 269160.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda466",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda467",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda468",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_387",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9270",
    "billNumber": "BILL-20250728-000388",
    "date": "2025-07-28T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda469",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 388",
        "parentItem": "6a85e33f277a43e1d0bd9c70",
        "quantity": 706,
        "unitprice": 706,
        "sellingPrice": 706,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 498436,
    "totalRevenue": 498436,
    "totalGrossProfit": 89718.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda46a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_388",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9271",
    "billNumber": "BILL-20250727-000389",
    "date": "2025-07-27T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda46b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 389",
        "parentItem": "6a85e33f277a43e1d0bd9c71",
        "quantity": 709.75,
        "unitprice": 709.75,
        "sellingPrice": 709.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda46c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 390",
        "parentItem": "6a85e33f277a43e1d0bd9c72",
        "quantity": 713.5,
        "unitprice": 713.5,
        "sellingPrice": 713.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1012827.31,
    "totalRevenue": 1012827.31,
    "totalGrossProfit": 182308.92,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda46d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda46e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_389",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9272",
    "billNumber": "BILL-20250726-000390",
    "date": "2025-07-26T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda46f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 390",
        "parentItem": "6a85e33f277a43e1d0bd9c72",
        "quantity": 713.5,
        "unitprice": 713.5,
        "sellingPrice": 713.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda470",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 391",
        "parentItem": "6a85e33f277a43e1d0bd9c73",
        "quantity": 717.25,
        "unitprice": 717.25,
        "sellingPrice": 717.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda471",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 392",
        "parentItem": "6a85e33f277a43e1d0bd9c74",
        "quantity": 721,
        "unitprice": 721,
        "sellingPrice": 721,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1543370.81,
    "totalRevenue": 1543370.81,
    "totalGrossProfit": 277806.75,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda472",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda473",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359066,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda474",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_390",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9273",
    "billNumber": "BILL-20250725-000391",
    "date": "2025-07-25T17:09:19.066Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda475",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 391",
        "parentItem": "6a85e33f277a43e1d0bd9c73",
        "quantity": 717.25,
        "unitprice": 717.25,
        "sellingPrice": 717.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 514447.56,
    "totalRevenue": 514447.56,
    "totalGrossProfit": 92600.56,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda476",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_391",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9274",
    "billNumber": "BILL-20250724-000392",
    "date": "2025-07-24T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda477",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 392",
        "parentItem": "6a85e33f277a43e1d0bd9c74",
        "quantity": 721,
        "unitprice": 721,
        "sellingPrice": 721,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda478",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 393",
        "parentItem": "6a85e33f277a43e1d0bd9c75",
        "quantity": 724.75,
        "unitprice": 724.75,
        "sellingPrice": 724.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1045103.56,
    "totalRevenue": 1045103.56,
    "totalGrossProfit": 188118.64,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda479",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda47a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_392",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9275",
    "billNumber": "BILL-20250723-000393",
    "date": "2025-07-23T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda47b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 393",
        "parentItem": "6a85e33f277a43e1d0bd9c75",
        "quantity": 724.75,
        "unitprice": 724.75,
        "sellingPrice": 724.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda47c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 394",
        "parentItem": "6a85e33f277a43e1d0bd9c76",
        "quantity": 728.5,
        "unitprice": 728.5,
        "sellingPrice": 728.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda47d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 395",
        "parentItem": "6a85e33f277a43e1d0bd9c77",
        "quantity": 732.25,
        "unitprice": 732.25,
        "sellingPrice": 732.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1592164.88,
    "totalRevenue": 1592164.88,
    "totalGrossProfit": 286589.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda47e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda47f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda480",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_393",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9276",
    "billNumber": "BILL-20250722-000394",
    "date": "2025-07-22T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda481",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 394",
        "parentItem": "6a85e33f277a43e1d0bd9c76",
        "quantity": 728.5,
        "unitprice": 728.5,
        "sellingPrice": 728.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 530712.25,
    "totalRevenue": 530712.25,
    "totalGrossProfit": 95528.21,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda482",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_394",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9277",
    "billNumber": "BILL-20250721-000395",
    "date": "2025-07-21T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda483",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 395",
        "parentItem": "6a85e33f277a43e1d0bd9c77",
        "quantity": 732.25,
        "unitprice": 732.25,
        "sellingPrice": 732.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda484",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 396",
        "parentItem": "6a85e33f277a43e1d0bd9c78",
        "quantity": 736,
        "unitprice": 736,
        "sellingPrice": 736,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1077886.06,
    "totalRevenue": 1077886.06,
    "totalGrossProfit": 194019.49,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda485",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda486",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_395",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9278",
    "billNumber": "BILL-20250720-000396",
    "date": "2025-07-20T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda487",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 396",
        "parentItem": "6a85e33f277a43e1d0bd9c78",
        "quantity": 736,
        "unitprice": 736,
        "sellingPrice": 736,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda488",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 397",
        "parentItem": "6a85e33f277a43e1d0bd9c79",
        "quantity": 739.75,
        "unitprice": 739.75,
        "sellingPrice": 739.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda489",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 398",
        "parentItem": "6a85e33f277a43e1d0bd9c7a",
        "quantity": 743.5,
        "unitprice": 743.5,
        "sellingPrice": 743.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1641718.31,
    "totalRevenue": 1641718.31,
    "totalGrossProfit": 295509.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda48a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda48b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda48c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_396",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9279",
    "billNumber": "BILL-20250719-000397",
    "date": "2025-07-19T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda48d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 397",
        "parentItem": "6a85e33f277a43e1d0bd9c79",
        "quantity": 739.75,
        "unitprice": 739.75,
        "sellingPrice": 739.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 547230.06,
    "totalRevenue": 547230.06,
    "totalGrossProfit": 98501.41,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda48e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_397",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd927a",
    "billNumber": "BILL-20250718-000398",
    "date": "2025-07-18T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda48f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 398",
        "parentItem": "6a85e33f277a43e1d0bd9c7a",
        "quantity": 743.5,
        "unitprice": 743.5,
        "sellingPrice": 743.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda490",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 399",
        "parentItem": "6a85e33f277a43e1d0bd9c7b",
        "quantity": 747.25,
        "unitprice": 747.25,
        "sellingPrice": 747.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1111174.81,
    "totalRevenue": 1111174.81,
    "totalGrossProfit": 200011.47,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda491",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda492",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_398",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd927b",
    "billNumber": "BILL-20250717-000399",
    "date": "2025-07-17T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda493",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 399",
        "parentItem": "6a85e33f277a43e1d0bd9c7b",
        "quantity": 747.25,
        "unitprice": 747.25,
        "sellingPrice": 747.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda494",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 400",
        "parentItem": "6a85e33f277a43e1d0bd9c7c",
        "quantity": 751,
        "unitprice": 751,
        "sellingPrice": 751,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda495",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 401",
        "parentItem": "6a85e33f277a43e1d0bd9c7d",
        "quantity": 4.75,
        "unitprice": 4.75,
        "sellingPrice": 4.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1122406.13,
    "totalRevenue": 1122406.13,
    "totalGrossProfit": 202033.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda496",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda497",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda498",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_399",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd927c",
    "billNumber": "BILL-20250716-000400",
    "date": "2025-07-16T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda499",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 400",
        "parentItem": "6a85e33f277a43e1d0bd9c7c",
        "quantity": 751,
        "unitprice": 751,
        "sellingPrice": 751,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 564001,
    "totalRevenue": 564001,
    "totalGrossProfit": 101520.18,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda49a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_400",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd927d",
    "billNumber": "BILL-20250715-000401",
    "date": "2025-07-15T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda49b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 401",
        "parentItem": "6a85e33f277a43e1d0bd9c7d",
        "quantity": 4.75,
        "unitprice": 4.75,
        "sellingPrice": 4.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda49c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 402",
        "parentItem": "6a85e33f277a43e1d0bd9c7e",
        "quantity": 8.5,
        "unitprice": 8.5,
        "sellingPrice": 8.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 94.81,
    "totalRevenue": 94.81,
    "totalGrossProfit": 17.07,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda49d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda49e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_401",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd927e",
    "billNumber": "BILL-20250714-000402",
    "date": "2025-07-14T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda49f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 402",
        "parentItem": "6a85e33f277a43e1d0bd9c7e",
        "quantity": 8.5,
        "unitprice": 8.5,
        "sellingPrice": 8.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4a0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 403",
        "parentItem": "6a85e33f277a43e1d0bd9c7f",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4a1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 404",
        "parentItem": "6a85e33f277a43e1d0bd9c80",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 478.31,
    "totalRevenue": 478.31,
    "totalGrossProfit": 86.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4a2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4a3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4a4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_402",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd927f",
    "billNumber": "BILL-20250713-000403",
    "date": "2025-07-13T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4a5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 403",
        "parentItem": "6a85e33f277a43e1d0bd9c7f",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 150.06,
    "totalRevenue": 150.06,
    "totalGrossProfit": 27.01,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4a6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_403",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9280",
    "billNumber": "BILL-20250712-000404",
    "date": "2025-07-12T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4a7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 404",
        "parentItem": "6a85e33f277a43e1d0bd9c80",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4a8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 405",
        "parentItem": "6a85e33f277a43e1d0bd9c81",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 646.06,
    "totalRevenue": 646.06,
    "totalGrossProfit": 116.29,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4a9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4aa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_404",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9281",
    "billNumber": "BILL-20250711-000405",
    "date": "2025-07-11T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4ab",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 405",
        "parentItem": "6a85e33f277a43e1d0bd9c81",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4ac",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 406",
        "parentItem": "6a85e33f277a43e1d0bd9c82",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4ad",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 407",
        "parentItem": "6a85e33f277a43e1d0bd9c83",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1684.88,
    "totalRevenue": 1684.88,
    "totalGrossProfit": 303.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4ae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4af",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359067,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4b0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_405",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9282",
    "billNumber": "BILL-20250710-000406",
    "date": "2025-07-10T17:09:19.067Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4b1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 406",
        "parentItem": "6a85e33f277a43e1d0bd9c82",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 552.25,
    "totalRevenue": 552.25,
    "totalGrossProfit": 99.41,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4b2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_406",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9283",
    "billNumber": "BILL-20250709-000407",
    "date": "2025-07-09T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4b3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 407",
        "parentItem": "6a85e33f277a43e1d0bd9c83",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4b4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 408",
        "parentItem": "6a85e33f277a43e1d0bd9c84",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1703.56,
    "totalRevenue": 1703.56,
    "totalGrossProfit": 306.64,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4b5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4b6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_407",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9284",
    "billNumber": "BILL-20250708-000408",
    "date": "2025-07-08T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4b7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 408",
        "parentItem": "6a85e33f277a43e1d0bd9c84",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4b8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 409",
        "parentItem": "6a85e33f277a43e1d0bd9c85",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4b9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 410",
        "parentItem": "6a85e33f277a43e1d0bd9c86",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 3650.81,
    "totalRevenue": 3650.81,
    "totalGrossProfit": 657.15,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4ba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4bb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4bc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_408",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9285",
    "billNumber": "BILL-20250707-000409",
    "date": "2025-07-07T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4bd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 409",
        "parentItem": "6a85e33f277a43e1d0bd9c85",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 1207.56,
    "totalRevenue": 1207.56,
    "totalGrossProfit": 217.36,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4be",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_409",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9286",
    "billNumber": "BILL-20250706-000410",
    "date": "2025-07-06T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4bf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 410",
        "parentItem": "6a85e33f277a43e1d0bd9c86",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4c0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 411",
        "parentItem": "6a85e33f277a43e1d0bd9c87",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 3267.31,
    "totalRevenue": 3267.31,
    "totalGrossProfit": 588.12,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4c1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4c2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_410",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9287",
    "billNumber": "BILL-20250705-000411",
    "date": "2025-07-05T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4c3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 411",
        "parentItem": "6a85e33f277a43e1d0bd9c87",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4c4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 412",
        "parentItem": "6a85e33f277a43e1d0bd9c88",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4c5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 413",
        "parentItem": "6a85e33f277a43e1d0bd9c89",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 6376.13,
    "totalRevenue": 6376.13,
    "totalGrossProfit": 1147.7,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4c6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4c7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4c8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_411",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9288",
    "billNumber": "BILL-20250704-000412",
    "date": "2025-07-04T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4c9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 412",
        "parentItem": "6a85e33f277a43e1d0bd9c88",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 2116,
    "totalRevenue": 2116,
    "totalGrossProfit": 380.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4ca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_412",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9289",
    "billNumber": "BILL-20250703-000413",
    "date": "2025-07-03T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4cb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 413",
        "parentItem": "6a85e33f277a43e1d0bd9c89",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4cc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 414",
        "parentItem": "6a85e33f277a43e1d0bd9c8a",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 5337.31,
    "totalRevenue": 5337.31,
    "totalGrossProfit": 960.72,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4cd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4ce",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_413",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd928a",
    "billNumber": "BILL-20250702-000414",
    "date": "2025-07-02T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4cf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 414",
        "parentItem": "6a85e33f277a43e1d0bd9c8a",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4d0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 415",
        "parentItem": "6a85e33f277a43e1d0bd9c8b",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4d1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 416",
        "parentItem": "6a85e33f277a43e1d0bd9c8c",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 9860.81,
    "totalRevenue": 9860.81,
    "totalGrossProfit": 1774.95,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4d2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4d3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4d4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_414",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd928b",
    "billNumber": "BILL-20250701-000415",
    "date": "2025-07-01T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4d5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 415",
        "parentItem": "6a85e33f277a43e1d0bd9c8b",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 3277.56,
    "totalRevenue": 3277.56,
    "totalGrossProfit": 589.96,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4d6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_415",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd928c",
    "billNumber": "BILL-20250630-000416",
    "date": "2025-06-30T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4d7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 416",
        "parentItem": "6a85e33f277a43e1d0bd9c8c",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4d8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 417",
        "parentItem": "6a85e33f277a43e1d0bd9c8d",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 7913.56,
    "totalRevenue": 7913.56,
    "totalGrossProfit": 1424.44,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4d9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4da",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_416",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd928d",
    "billNumber": "BILL-20250629-000417",
    "date": "2025-06-29T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4db",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 417",
        "parentItem": "6a85e33f277a43e1d0bd9c8d",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4dc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 418",
        "parentItem": "6a85e33f277a43e1d0bd9c8e",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4dd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 419",
        "parentItem": "6a85e33f277a43e1d0bd9c8f",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 14104.88,
    "totalRevenue": 14104.88,
    "totalGrossProfit": 2538.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4de",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4df",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4e0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_417",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd928e",
    "billNumber": "BILL-20250628-000418",
    "date": "2025-06-28T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4e1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 418",
        "parentItem": "6a85e33f277a43e1d0bd9c8e",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 4692.25,
    "totalRevenue": 4692.25,
    "totalGrossProfit": 844.61,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4e2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_418",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd928f",
    "billNumber": "BILL-20250627-000419",
    "date": "2025-06-27T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4e3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 419",
        "parentItem": "6a85e33f277a43e1d0bd9c8f",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4e4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 420",
        "parentItem": "6a85e33f277a43e1d0bd9c90",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 10996.06,
    "totalRevenue": 10996.06,
    "totalGrossProfit": 1979.29,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4e5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359068,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4e6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_419",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9290",
    "billNumber": "BILL-20250626-000420",
    "date": "2025-06-26T17:09:19.068Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4e7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 420",
        "parentItem": "6a85e33f277a43e1d0bd9c90",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4e8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 421",
        "parentItem": "6a85e33f277a43e1d0bd9c91",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4e9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 422",
        "parentItem": "6a85e33f277a43e1d0bd9c92",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 19108.31,
    "totalRevenue": 19108.31,
    "totalGrossProfit": 3439.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4ea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4eb",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4ec",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_420",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9291",
    "billNumber": "BILL-20250625-000421",
    "date": "2025-06-25T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4ed",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 421",
        "parentItem": "6a85e33f277a43e1d0bd9c91",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 6360.06,
    "totalRevenue": 6360.06,
    "totalGrossProfit": 1144.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4ee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_421",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9292",
    "billNumber": "BILL-20250624-000422",
    "date": "2025-06-24T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4ef",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 422",
        "parentItem": "6a85e33f277a43e1d0bd9c92",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4f0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 423",
        "parentItem": "6a85e33f277a43e1d0bd9c93",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 14584.81,
    "totalRevenue": 14584.81,
    "totalGrossProfit": 2625.27,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4f1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4f2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_422",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9293",
    "billNumber": "BILL-20250623-000423",
    "date": "2025-06-23T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4f3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 423",
        "parentItem": "6a85e33f277a43e1d0bd9c93",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4f4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 424",
        "parentItem": "6a85e33f277a43e1d0bd9c94",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4f5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 425",
        "parentItem": "6a85e33f277a43e1d0bd9c95",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 24871.13,
    "totalRevenue": 24871.13,
    "totalGrossProfit": 4476.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4f6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4f7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4f8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_423",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9294",
    "billNumber": "BILL-20250622-000424",
    "date": "2025-06-22T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4f9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 424",
        "parentItem": "6a85e33f277a43e1d0bd9c94",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 8281,
    "totalRevenue": 8281,
    "totalGrossProfit": 1490.58,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4fa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_424",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9295",
    "billNumber": "BILL-20250621-000425",
    "date": "2025-06-21T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4fb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 425",
        "parentItem": "6a85e33f277a43e1d0bd9c95",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda4fc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 426",
        "parentItem": "6a85e33f277a43e1d0bd9c96",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 18679.81,
    "totalRevenue": 18679.81,
    "totalGrossProfit": 3362.37,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4fd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda4fe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_425",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9296",
    "billNumber": "BILL-20250620-000426",
    "date": "2025-06-20T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda4ff",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 426",
        "parentItem": "6a85e33f277a43e1d0bd9c96",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda500",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 427",
        "parentItem": "6a85e33f277a43e1d0bd9c97",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda501",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 428",
        "parentItem": "6a85e33f277a43e1d0bd9c98",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 31393.31,
    "totalRevenue": 31393.31,
    "totalGrossProfit": 5650.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda502",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda503",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda504",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_426",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9297",
    "billNumber": "BILL-20250619-000427",
    "date": "2025-06-19T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda505",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 427",
        "parentItem": "6a85e33f277a43e1d0bd9c97",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 10455.06,
    "totalRevenue": 10455.06,
    "totalGrossProfit": 1881.91,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda506",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_427",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9298",
    "billNumber": "BILL-20250618-000428",
    "date": "2025-06-18T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda507",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 428",
        "parentItem": "6a85e33f277a43e1d0bd9c98",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda508",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 429",
        "parentItem": "6a85e33f277a43e1d0bd9c99",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 23281.06,
    "totalRevenue": 23281.06,
    "totalGrossProfit": 4190.59,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda509",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda50a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_428",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd9299",
    "billNumber": "BILL-20250617-000429",
    "date": "2025-06-17T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda50b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 429",
        "parentItem": "6a85e33f277a43e1d0bd9c99",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda50c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 430",
        "parentItem": "6a85e33f277a43e1d0bd9c9a",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda50d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 431",
        "parentItem": "6a85e33f277a43e1d0bd9c9b",
        "quantity": 117.25,
        "unitprice": 117.25,
        "sellingPrice": 117.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 38674.88,
    "totalRevenue": 38674.88,
    "totalGrossProfit": 6961.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda50e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda50f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda510",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_429",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd929a",
    "billNumber": "BILL-20250616-000430",
    "date": "2025-06-16T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda511",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 430",
        "parentItem": "6a85e33f277a43e1d0bd9c9a",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 12882.25,
    "totalRevenue": 12882.25,
    "totalGrossProfit": 2318.8,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda512",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_430",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd929b",
    "billNumber": "BILL-20250615-000431",
    "date": "2025-06-15T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda513",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 431",
        "parentItem": "6a85e33f277a43e1d0bd9c9b",
        "quantity": 117.25,
        "unitprice": 117.25,
        "sellingPrice": 117.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda514",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 432",
        "parentItem": "6a85e33f277a43e1d0bd9c9c",
        "quantity": 121,
        "unitprice": 121,
        "sellingPrice": 121,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 28388.56,
    "totalRevenue": 28388.56,
    "totalGrossProfit": 5109.94,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda515",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda516",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_431",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd929c",
    "billNumber": "BILL-20250614-000432",
    "date": "2025-06-14T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda517",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 432",
        "parentItem": "6a85e33f277a43e1d0bd9c9c",
        "quantity": 121,
        "unitprice": 121,
        "sellingPrice": 121,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda518",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 433",
        "parentItem": "6a85e33f277a43e1d0bd9c9d",
        "quantity": 124.75,
        "unitprice": 124.75,
        "sellingPrice": 124.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda519",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 434",
        "parentItem": "6a85e33f277a43e1d0bd9c9e",
        "quantity": 128.5,
        "unitprice": 128.5,
        "sellingPrice": 128.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 46715.81,
    "totalRevenue": 46715.81,
    "totalGrossProfit": 8408.85,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda51a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda51b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda51c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_432",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd929d",
    "billNumber": "BILL-20250613-000433",
    "date": "2025-06-13T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda51d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 433",
        "parentItem": "6a85e33f277a43e1d0bd9c9d",
        "quantity": 124.75,
        "unitprice": 124.75,
        "sellingPrice": 124.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 15562.56,
    "totalRevenue": 15562.56,
    "totalGrossProfit": 2801.26,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359069,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda51e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_433",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd929e",
    "billNumber": "BILL-20250612-000434",
    "date": "2025-06-12T17:09:19.069Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda51f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 434",
        "parentItem": "6a85e33f277a43e1d0bd9c9e",
        "quantity": 128.5,
        "unitprice": 128.5,
        "sellingPrice": 128.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda520",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 435",
        "parentItem": "6a85e33f277a43e1d0bd9c9f",
        "quantity": 132.25,
        "unitprice": 132.25,
        "sellingPrice": 132.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 34002.31,
    "totalRevenue": 34002.31,
    "totalGrossProfit": 6120.42,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda521",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda522",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_434",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd929f",
    "billNumber": "BILL-20250611-000435",
    "date": "2025-06-11T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda523",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 435",
        "parentItem": "6a85e33f277a43e1d0bd9c9f",
        "quantity": 132.25,
        "unitprice": 132.25,
        "sellingPrice": 132.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda524",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 436",
        "parentItem": "6a85e33f277a43e1d0bd9ca0",
        "quantity": 136,
        "unitprice": 136,
        "sellingPrice": 136,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda525",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 437",
        "parentItem": "6a85e33f277a43e1d0bd9ca1",
        "quantity": 139.75,
        "unitprice": 139.75,
        "sellingPrice": 139.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 55516.13,
    "totalRevenue": 55516.13,
    "totalGrossProfit": 9992.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda526",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda527",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda528",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_435",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a0",
    "billNumber": "BILL-20250610-000436",
    "date": "2025-06-10T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda529",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 436",
        "parentItem": "6a85e33f277a43e1d0bd9ca0",
        "quantity": 136,
        "unitprice": 136,
        "sellingPrice": 136,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 18496,
    "totalRevenue": 18496,
    "totalGrossProfit": 3329.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda52a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_436",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a1",
    "billNumber": "BILL-20250609-000437",
    "date": "2025-06-09T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda52b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 437",
        "parentItem": "6a85e33f277a43e1d0bd9ca1",
        "quantity": 139.75,
        "unitprice": 139.75,
        "sellingPrice": 139.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda52c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 438",
        "parentItem": "6a85e33f277a43e1d0bd9ca2",
        "quantity": 143.5,
        "unitprice": 143.5,
        "sellingPrice": 143.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 40122.31,
    "totalRevenue": 40122.31,
    "totalGrossProfit": 7222.02,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda52d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda52e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_437",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a2",
    "billNumber": "BILL-20250608-000438",
    "date": "2025-06-08T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda52f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 438",
        "parentItem": "6a85e33f277a43e1d0bd9ca2",
        "quantity": 143.5,
        "unitprice": 143.5,
        "sellingPrice": 143.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda530",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 439",
        "parentItem": "6a85e33f277a43e1d0bd9ca3",
        "quantity": 147.25,
        "unitprice": 147.25,
        "sellingPrice": 147.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda531",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 440",
        "parentItem": "6a85e33f277a43e1d0bd9ca4",
        "quantity": 151,
        "unitprice": 151,
        "sellingPrice": 151,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 65075.81,
    "totalRevenue": 65075.81,
    "totalGrossProfit": 11713.65,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda532",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda533",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda534",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_438",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a3",
    "billNumber": "BILL-20250607-000439",
    "date": "2025-06-07T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda535",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 439",
        "parentItem": "6a85e33f277a43e1d0bd9ca3",
        "quantity": 147.25,
        "unitprice": 147.25,
        "sellingPrice": 147.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 21682.56,
    "totalRevenue": 21682.56,
    "totalGrossProfit": 3902.86,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda536",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_439",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a4",
    "billNumber": "BILL-20250606-000440",
    "date": "2025-06-06T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda537",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 440",
        "parentItem": "6a85e33f277a43e1d0bd9ca4",
        "quantity": 151,
        "unitprice": 151,
        "sellingPrice": 151,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda538",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 441",
        "parentItem": "6a85e33f277a43e1d0bd9ca5",
        "quantity": 154.75,
        "unitprice": 154.75,
        "sellingPrice": 154.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 46748.56,
    "totalRevenue": 46748.56,
    "totalGrossProfit": 8414.74,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda539",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda53a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_440",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a5",
    "billNumber": "BILL-20250605-000441",
    "date": "2025-06-05T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda53b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 441",
        "parentItem": "6a85e33f277a43e1d0bd9ca5",
        "quantity": 154.75,
        "unitprice": 154.75,
        "sellingPrice": 154.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda53c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 442",
        "parentItem": "6a85e33f277a43e1d0bd9ca6",
        "quantity": 158.5,
        "unitprice": 158.5,
        "sellingPrice": 158.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda53d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 443",
        "parentItem": "6a85e33f277a43e1d0bd9ca7",
        "quantity": 162.25,
        "unitprice": 162.25,
        "sellingPrice": 162.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 75394.88,
    "totalRevenue": 75394.88,
    "totalGrossProfit": 13571.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda53e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda53f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda540",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_441",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a6",
    "billNumber": "BILL-20250604-000442",
    "date": "2025-06-04T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda541",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 442",
        "parentItem": "6a85e33f277a43e1d0bd9ca6",
        "quantity": 158.5,
        "unitprice": 158.5,
        "sellingPrice": 158.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 25122.25,
    "totalRevenue": 25122.25,
    "totalGrossProfit": 4522.01,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda542",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_442",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a7",
    "billNumber": "BILL-20250603-000443",
    "date": "2025-06-03T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda543",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 443",
        "parentItem": "6a85e33f277a43e1d0bd9ca7",
        "quantity": 162.25,
        "unitprice": 162.25,
        "sellingPrice": 162.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda544",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 444",
        "parentItem": "6a85e33f277a43e1d0bd9ca8",
        "quantity": 166,
        "unitprice": 166,
        "sellingPrice": 166,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 53881.06,
    "totalRevenue": 53881.06,
    "totalGrossProfit": 9698.59,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda545",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda546",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_443",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a8",
    "billNumber": "BILL-20250602-000444",
    "date": "2025-06-02T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda547",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 444",
        "parentItem": "6a85e33f277a43e1d0bd9ca8",
        "quantity": 166,
        "unitprice": 166,
        "sellingPrice": 166,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda548",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 445",
        "parentItem": "6a85e33f277a43e1d0bd9ca9",
        "quantity": 169.75,
        "unitprice": 169.75,
        "sellingPrice": 169.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda549",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 446",
        "parentItem": "6a85e33f277a43e1d0bd9caa",
        "quantity": 173.5,
        "unitprice": 173.5,
        "sellingPrice": 173.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 86473.31,
    "totalRevenue": 86473.31,
    "totalGrossProfit": 15565.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda54a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda54b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda54c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_444",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92a9",
    "billNumber": "BILL-20250601-000445",
    "date": "2025-06-01T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda54d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 445",
        "parentItem": "6a85e33f277a43e1d0bd9ca9",
        "quantity": 169.75,
        "unitprice": 169.75,
        "sellingPrice": 169.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 28815.06,
    "totalRevenue": 28815.06,
    "totalGrossProfit": 5186.71,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda54e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_445",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92aa",
    "billNumber": "BILL-20250531-000446",
    "date": "2025-05-31T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda54f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 446",
        "parentItem": "6a85e33f277a43e1d0bd9caa",
        "quantity": 173.5,
        "unitprice": 173.5,
        "sellingPrice": 173.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda550",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 447",
        "parentItem": "6a85e33f277a43e1d0bd9cab",
        "quantity": 177.25,
        "unitprice": 177.25,
        "sellingPrice": 177.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 61519.81,
    "totalRevenue": 61519.81,
    "totalGrossProfit": 11073.57,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda551",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda552",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_446",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92ab",
    "billNumber": "BILL-20250530-000447",
    "date": "2025-05-30T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda553",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 447",
        "parentItem": "6a85e33f277a43e1d0bd9cab",
        "quantity": 177.25,
        "unitprice": 177.25,
        "sellingPrice": 177.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda554",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 448",
        "parentItem": "6a85e33f277a43e1d0bd9cac",
        "quantity": 181,
        "unitprice": 181,
        "sellingPrice": 181,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda555",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 449",
        "parentItem": "6a85e33f277a43e1d0bd9cad",
        "quantity": 184.75,
        "unitprice": 184.75,
        "sellingPrice": 184.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 98311.13,
    "totalRevenue": 98311.13,
    "totalGrossProfit": 17696,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda556",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda557",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda558",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_447",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92ac",
    "billNumber": "BILL-20250529-000448",
    "date": "2025-05-29T17:09:19.070Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda559",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 448",
        "parentItem": "6a85e33f277a43e1d0bd9cac",
        "quantity": 181,
        "unitprice": 181,
        "sellingPrice": 181,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 32761,
    "totalRevenue": 32761,
    "totalGrossProfit": 5896.98,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359070,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda55a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_448",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92ad",
    "billNumber": "BILL-20250528-000449",
    "date": "2025-05-28T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda55b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 449",
        "parentItem": "6a85e33f277a43e1d0bd9cad",
        "quantity": 184.75,
        "unitprice": 184.75,
        "sellingPrice": 184.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda55c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 450",
        "parentItem": "6a85e33f277a43e1d0bd9cae",
        "quantity": 188.5,
        "unitprice": 188.5,
        "sellingPrice": 188.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 69664.81,
    "totalRevenue": 69664.81,
    "totalGrossProfit": 12539.67,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda55d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda55e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_449",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92ae",
    "billNumber": "BILL-20250527-000450",
    "date": "2025-05-27T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda55f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 450",
        "parentItem": "6a85e33f277a43e1d0bd9cae",
        "quantity": 188.5,
        "unitprice": 188.5,
        "sellingPrice": 188.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda560",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 451",
        "parentItem": "6a85e33f277a43e1d0bd9caf",
        "quantity": 192.25,
        "unitprice": 192.25,
        "sellingPrice": 192.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda561",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 452",
        "parentItem": "6a85e33f277a43e1d0bd9cb0",
        "quantity": 196,
        "unitprice": 196,
        "sellingPrice": 196,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 110908.31,
    "totalRevenue": 110908.31,
    "totalGrossProfit": 19963.5,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda562",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda563",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda564",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_450",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92af",
    "billNumber": "BILL-20250526-000451",
    "date": "2025-05-26T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda565",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 451",
        "parentItem": "6a85e33f277a43e1d0bd9caf",
        "quantity": 192.25,
        "unitprice": 192.25,
        "sellingPrice": 192.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 36960.06,
    "totalRevenue": 36960.06,
    "totalGrossProfit": 6652.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda566",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_451",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b0",
    "billNumber": "BILL-20250525-000452",
    "date": "2025-05-25T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda567",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 452",
        "parentItem": "6a85e33f277a43e1d0bd9cb0",
        "quantity": 196,
        "unitprice": 196,
        "sellingPrice": 196,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda568",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 453",
        "parentItem": "6a85e33f277a43e1d0bd9cb1",
        "quantity": 199.75,
        "unitprice": 199.75,
        "sellingPrice": 199.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 78316.06,
    "totalRevenue": 78316.06,
    "totalGrossProfit": 14096.89,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda569",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda56a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_452",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b1",
    "billNumber": "BILL-20250524-000453",
    "date": "2025-05-24T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda56b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 453",
        "parentItem": "6a85e33f277a43e1d0bd9cb1",
        "quantity": 199.75,
        "unitprice": 199.75,
        "sellingPrice": 199.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda56c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 454",
        "parentItem": "6a85e33f277a43e1d0bd9cb2",
        "quantity": 203.5,
        "unitprice": 203.5,
        "sellingPrice": 203.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda56d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 455",
        "parentItem": "6a85e33f277a43e1d0bd9cb3",
        "quantity": 207.25,
        "unitprice": 207.25,
        "sellingPrice": 207.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 124264.88,
    "totalRevenue": 124264.88,
    "totalGrossProfit": 22367.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda56e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda56f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda570",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_453",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b2",
    "billNumber": "BILL-20250523-000454",
    "date": "2025-05-23T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda571",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 454",
        "parentItem": "6a85e33f277a43e1d0bd9cb2",
        "quantity": 203.5,
        "unitprice": 203.5,
        "sellingPrice": 203.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 41412.25,
    "totalRevenue": 41412.25,
    "totalGrossProfit": 7454.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda572",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_454",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b3",
    "billNumber": "BILL-20250522-000455",
    "date": "2025-05-22T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda573",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 455",
        "parentItem": "6a85e33f277a43e1d0bd9cb3",
        "quantity": 207.25,
        "unitprice": 207.25,
        "sellingPrice": 207.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda574",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 456",
        "parentItem": "6a85e33f277a43e1d0bd9cb4",
        "quantity": 211,
        "unitprice": 211,
        "sellingPrice": 211,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 87473.56,
    "totalRevenue": 87473.56,
    "totalGrossProfit": 15745.24,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda575",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda576",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_455",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b4",
    "billNumber": "BILL-20250521-000456",
    "date": "2025-05-21T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda577",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 456",
        "parentItem": "6a85e33f277a43e1d0bd9cb4",
        "quantity": 211,
        "unitprice": 211,
        "sellingPrice": 211,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda578",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 457",
        "parentItem": "6a85e33f277a43e1d0bd9cb5",
        "quantity": 214.75,
        "unitprice": 214.75,
        "sellingPrice": 214.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda579",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 458",
        "parentItem": "6a85e33f277a43e1d0bd9cb6",
        "quantity": 218.5,
        "unitprice": 218.5,
        "sellingPrice": 218.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 138380.81,
    "totalRevenue": 138380.81,
    "totalGrossProfit": 24908.55,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda57a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda57b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda57c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_456",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b5",
    "billNumber": "BILL-20250520-000457",
    "date": "2025-05-20T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda57d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 457",
        "parentItem": "6a85e33f277a43e1d0bd9cb5",
        "quantity": 214.75,
        "unitprice": 214.75,
        "sellingPrice": 214.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 46117.56,
    "totalRevenue": 46117.56,
    "totalGrossProfit": 8301.16,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda57e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_457",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b6",
    "billNumber": "BILL-20250519-000458",
    "date": "2025-05-19T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda57f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 458",
        "parentItem": "6a85e33f277a43e1d0bd9cb6",
        "quantity": 218.5,
        "unitprice": 218.5,
        "sellingPrice": 218.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda580",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 459",
        "parentItem": "6a85e33f277a43e1d0bd9cb7",
        "quantity": 222.25,
        "unitprice": 222.25,
        "sellingPrice": 222.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 97137.31,
    "totalRevenue": 97137.31,
    "totalGrossProfit": 17484.72,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda581",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda582",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_458",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b7",
    "billNumber": "BILL-20250518-000459",
    "date": "2025-05-18T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda583",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 459",
        "parentItem": "6a85e33f277a43e1d0bd9cb7",
        "quantity": 222.25,
        "unitprice": 222.25,
        "sellingPrice": 222.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda584",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 460",
        "parentItem": "6a85e33f277a43e1d0bd9cb8",
        "quantity": 226,
        "unitprice": 226,
        "sellingPrice": 226,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda585",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 461",
        "parentItem": "6a85e33f277a43e1d0bd9cb9",
        "quantity": 229.75,
        "unitprice": 229.75,
        "sellingPrice": 229.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 153256.13,
    "totalRevenue": 153256.13,
    "totalGrossProfit": 27586.1,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda586",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda587",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda588",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_459",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b8",
    "billNumber": "BILL-20250517-000460",
    "date": "2025-05-17T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda589",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 460",
        "parentItem": "6a85e33f277a43e1d0bd9cb8",
        "quantity": 226,
        "unitprice": 226,
        "sellingPrice": 226,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 51076,
    "totalRevenue": 51076,
    "totalGrossProfit": 9193.68,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda58a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_460",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92b9",
    "billNumber": "BILL-20250516-000461",
    "date": "2025-05-16T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda58b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 461",
        "parentItem": "6a85e33f277a43e1d0bd9cb9",
        "quantity": 229.75,
        "unitprice": 229.75,
        "sellingPrice": 229.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda58c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 462",
        "parentItem": "6a85e33f277a43e1d0bd9cba",
        "quantity": 233.5,
        "unitprice": 233.5,
        "sellingPrice": 233.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 107307.31,
    "totalRevenue": 107307.31,
    "totalGrossProfit": 19315.32,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda58d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda58e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_461",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92ba",
    "billNumber": "BILL-20250515-000462",
    "date": "2025-05-15T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda58f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 462",
        "parentItem": "6a85e33f277a43e1d0bd9cba",
        "quantity": 233.5,
        "unitprice": 233.5,
        "sellingPrice": 233.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda590",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 463",
        "parentItem": "6a85e33f277a43e1d0bd9cbb",
        "quantity": 237.25,
        "unitprice": 237.25,
        "sellingPrice": 237.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda591",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 464",
        "parentItem": "6a85e33f277a43e1d0bd9cbc",
        "quantity": 241,
        "unitprice": 241,
        "sellingPrice": 241,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 168890.81,
    "totalRevenue": 168890.81,
    "totalGrossProfit": 30400.35,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda592",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda593",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda594",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_462",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92bb",
    "billNumber": "BILL-20250514-000463",
    "date": "2025-05-14T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda595",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 463",
        "parentItem": "6a85e33f277a43e1d0bd9cbb",
        "quantity": 237.25,
        "unitprice": 237.25,
        "sellingPrice": 237.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 56287.56,
    "totalRevenue": 56287.56,
    "totalGrossProfit": 10131.76,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359071,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda596",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_463",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92bc",
    "billNumber": "BILL-20250513-000464",
    "date": "2025-05-13T17:09:19.071Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda597",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 464",
        "parentItem": "6a85e33f277a43e1d0bd9cbc",
        "quantity": 241,
        "unitprice": 241,
        "sellingPrice": 241,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda598",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 465",
        "parentItem": "6a85e33f277a43e1d0bd9cbd",
        "quantity": 244.75,
        "unitprice": 244.75,
        "sellingPrice": 244.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 117983.56,
    "totalRevenue": 117983.56,
    "totalGrossProfit": 21237.04,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda599",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda59a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_464",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92bd",
    "billNumber": "BILL-20250512-000465",
    "date": "2025-05-12T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda59b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 465",
        "parentItem": "6a85e33f277a43e1d0bd9cbd",
        "quantity": 244.75,
        "unitprice": 244.75,
        "sellingPrice": 244.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda59c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 466",
        "parentItem": "6a85e33f277a43e1d0bd9cbe",
        "quantity": 248.5,
        "unitprice": 248.5,
        "sellingPrice": 248.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda59d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 467",
        "parentItem": "6a85e33f277a43e1d0bd9cbf",
        "quantity": 252.25,
        "unitprice": 252.25,
        "sellingPrice": 252.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 185284.88,
    "totalRevenue": 185284.88,
    "totalGrossProfit": 33351.28,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda59e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda59f",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5a0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_465",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92be",
    "billNumber": "BILL-20250511-000466",
    "date": "2025-05-11T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5a1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 466",
        "parentItem": "6a85e33f277a43e1d0bd9cbe",
        "quantity": 248.5,
        "unitprice": 248.5,
        "sellingPrice": 248.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 61752.25,
    "totalRevenue": 61752.25,
    "totalGrossProfit": 11115.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5a2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_466",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92bf",
    "billNumber": "BILL-20250510-000467",
    "date": "2025-05-10T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5a3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 467",
        "parentItem": "6a85e33f277a43e1d0bd9cbf",
        "quantity": 252.25,
        "unitprice": 252.25,
        "sellingPrice": 252.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5a4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 468",
        "parentItem": "6a85e33f277a43e1d0bd9cc0",
        "quantity": 256,
        "unitprice": 256,
        "sellingPrice": 256,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 129166.06,
    "totalRevenue": 129166.06,
    "totalGrossProfit": 23249.89,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5a5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5a6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_467",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c0",
    "billNumber": "BILL-20250509-000468",
    "date": "2025-05-09T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5a7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 468",
        "parentItem": "6a85e33f277a43e1d0bd9cc0",
        "quantity": 256,
        "unitprice": 256,
        "sellingPrice": 256,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5a8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 469",
        "parentItem": "6a85e33f277a43e1d0bd9cc1",
        "quantity": 259.75,
        "unitprice": 259.75,
        "sellingPrice": 259.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5a9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 470",
        "parentItem": "6a85e33f277a43e1d0bd9cc2",
        "quantity": 263.5,
        "unitprice": 263.5,
        "sellingPrice": 263.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 202438.31,
    "totalRevenue": 202438.31,
    "totalGrossProfit": 36438.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5aa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ab",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ac",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_468",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c1",
    "billNumber": "BILL-20250508-000469",
    "date": "2025-05-08T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5ad",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 469",
        "parentItem": "6a85e33f277a43e1d0bd9cc1",
        "quantity": 259.75,
        "unitprice": 259.75,
        "sellingPrice": 259.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 67470.06,
    "totalRevenue": 67470.06,
    "totalGrossProfit": 12144.61,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ae",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_469",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c2",
    "billNumber": "BILL-20250507-000470",
    "date": "2025-05-07T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5af",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 470",
        "parentItem": "6a85e33f277a43e1d0bd9cc2",
        "quantity": 263.5,
        "unitprice": 263.5,
        "sellingPrice": 263.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5b0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 471",
        "parentItem": "6a85e33f277a43e1d0bd9cc3",
        "quantity": 267.25,
        "unitprice": 267.25,
        "sellingPrice": 267.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 140854.81,
    "totalRevenue": 140854.81,
    "totalGrossProfit": 25353.87,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5b1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5b2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_470",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c3",
    "billNumber": "BILL-20250506-000471",
    "date": "2025-05-06T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5b3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 471",
        "parentItem": "6a85e33f277a43e1d0bd9cc3",
        "quantity": 267.25,
        "unitprice": 267.25,
        "sellingPrice": 267.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5b4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 472",
        "parentItem": "6a85e33f277a43e1d0bd9cc4",
        "quantity": 271,
        "unitprice": 271,
        "sellingPrice": 271,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5b5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 473",
        "parentItem": "6a85e33f277a43e1d0bd9cc5",
        "quantity": 274.75,
        "unitprice": 274.75,
        "sellingPrice": 274.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 220351.13,
    "totalRevenue": 220351.13,
    "totalGrossProfit": 39663.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5b6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5b7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5b8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_471",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c4",
    "billNumber": "BILL-20250505-000472",
    "date": "2025-05-05T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5b9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 472",
        "parentItem": "6a85e33f277a43e1d0bd9cc4",
        "quantity": 271,
        "unitprice": 271,
        "sellingPrice": 271,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 73441,
    "totalRevenue": 73441,
    "totalGrossProfit": 13219.38,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ba",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_472",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c5",
    "billNumber": "BILL-20250504-000473",
    "date": "2025-05-04T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5bb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 473",
        "parentItem": "6a85e33f277a43e1d0bd9cc5",
        "quantity": 274.75,
        "unitprice": 274.75,
        "sellingPrice": 274.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5bc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 474",
        "parentItem": "6a85e33f277a43e1d0bd9cc6",
        "quantity": 278.5,
        "unitprice": 278.5,
        "sellingPrice": 278.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 153049.81,
    "totalRevenue": 153049.81,
    "totalGrossProfit": 27548.97,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5bd",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5be",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_473",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c6",
    "billNumber": "BILL-20250503-000474",
    "date": "2025-05-03T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5bf",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 474",
        "parentItem": "6a85e33f277a43e1d0bd9cc6",
        "quantity": 278.5,
        "unitprice": 278.5,
        "sellingPrice": 278.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5c0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 475",
        "parentItem": "6a85e33f277a43e1d0bd9cc7",
        "quantity": 282.25,
        "unitprice": 282.25,
        "sellingPrice": 282.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5c1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 476",
        "parentItem": "6a85e33f277a43e1d0bd9cc8",
        "quantity": 286,
        "unitprice": 286,
        "sellingPrice": 286,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 239023.31,
    "totalRevenue": 239023.31,
    "totalGrossProfit": 43024.2,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5c2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5c3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5c4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_474",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c7",
    "billNumber": "BILL-20250502-000475",
    "date": "2025-05-02T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5c5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 475",
        "parentItem": "6a85e33f277a43e1d0bd9cc7",
        "quantity": 282.25,
        "unitprice": 282.25,
        "sellingPrice": 282.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 79665.06,
    "totalRevenue": 79665.06,
    "totalGrossProfit": 14339.71,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5c6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_475",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c8",
    "billNumber": "BILL-20250501-000476",
    "date": "2025-05-01T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5c7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 476",
        "parentItem": "6a85e33f277a43e1d0bd9cc8",
        "quantity": 286,
        "unitprice": 286,
        "sellingPrice": 286,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5c8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 477",
        "parentItem": "6a85e33f277a43e1d0bd9cc9",
        "quantity": 289.75,
        "unitprice": 289.75,
        "sellingPrice": 289.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 165751.06,
    "totalRevenue": 165751.06,
    "totalGrossProfit": 29835.19,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5c9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359072,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ca",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_476",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92c9",
    "billNumber": "BILL-20250430-000477",
    "date": "2025-04-30T17:09:19.072Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5cb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 477",
        "parentItem": "6a85e33f277a43e1d0bd9cc9",
        "quantity": 289.75,
        "unitprice": 289.75,
        "sellingPrice": 289.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5cc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 478",
        "parentItem": "6a85e33f277a43e1d0bd9cca",
        "quantity": 293.5,
        "unitprice": 293.5,
        "sellingPrice": 293.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5cd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 479",
        "parentItem": "6a85e33f277a43e1d0bd9ccb",
        "quantity": 297.25,
        "unitprice": 297.25,
        "sellingPrice": 297.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 258454.88,
    "totalRevenue": 258454.88,
    "totalGrossProfit": 46521.88,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ce",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5cf",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5d0",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_477",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92ca",
    "billNumber": "BILL-20250429-000478",
    "date": "2025-04-29T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5d1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 478",
        "parentItem": "6a85e33f277a43e1d0bd9cca",
        "quantity": 293.5,
        "unitprice": 293.5,
        "sellingPrice": 293.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 86142.25,
    "totalRevenue": 86142.25,
    "totalGrossProfit": 15505.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5d2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_478",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92cb",
    "billNumber": "BILL-20250428-000479",
    "date": "2025-04-28T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5d3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 479",
        "parentItem": "6a85e33f277a43e1d0bd9ccb",
        "quantity": 297.25,
        "unitprice": 297.25,
        "sellingPrice": 297.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5d4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 480",
        "parentItem": "6a85e33f277a43e1d0bd9ccc",
        "quantity": 301,
        "unitprice": 301,
        "sellingPrice": 301,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 178958.56,
    "totalRevenue": 178958.56,
    "totalGrossProfit": 32212.54,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5d5",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5d6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_479",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92cc",
    "billNumber": "BILL-20250427-000480",
    "date": "2025-04-27T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5d7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 480",
        "parentItem": "6a85e33f277a43e1d0bd9ccc",
        "quantity": 301,
        "unitprice": 301,
        "sellingPrice": 301,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5d8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 481",
        "parentItem": "6a85e33f277a43e1d0bd9ccd",
        "quantity": 304.75,
        "unitprice": 304.75,
        "sellingPrice": 304.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5d9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 482",
        "parentItem": "6a85e33f277a43e1d0bd9cce",
        "quantity": 308.5,
        "unitprice": 308.5,
        "sellingPrice": 308.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 278645.81,
    "totalRevenue": 278645.81,
    "totalGrossProfit": 50156.25,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5da",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5db",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5dc",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_480",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92cd",
    "billNumber": "BILL-20250426-000481",
    "date": "2025-04-26T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5dd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 481",
        "parentItem": "6a85e33f277a43e1d0bd9ccd",
        "quantity": 304.75,
        "unitprice": 304.75,
        "sellingPrice": 304.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 92872.56,
    "totalRevenue": 92872.56,
    "totalGrossProfit": 16717.06,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5de",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_481",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92ce",
    "billNumber": "BILL-20250425-000482",
    "date": "2025-04-25T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5df",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 482",
        "parentItem": "6a85e33f277a43e1d0bd9cce",
        "quantity": 308.5,
        "unitprice": 308.5,
        "sellingPrice": 308.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5e0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 483",
        "parentItem": "6a85e33f277a43e1d0bd9ccf",
        "quantity": 312.25,
        "unitprice": 312.25,
        "sellingPrice": 312.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 192672.31,
    "totalRevenue": 192672.31,
    "totalGrossProfit": 34681.02,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5e1",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5e2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_482",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92cf",
    "billNumber": "BILL-20250424-000483",
    "date": "2025-04-24T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5e3",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 483",
        "parentItem": "6a85e33f277a43e1d0bd9ccf",
        "quantity": 312.25,
        "unitprice": 312.25,
        "sellingPrice": 312.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5e4",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 484",
        "parentItem": "6a85e33f277a43e1d0bd9cd0",
        "quantity": 316,
        "unitprice": 316,
        "sellingPrice": 316,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5e5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 485",
        "parentItem": "6a85e33f277a43e1d0bd9cd1",
        "quantity": 319.75,
        "unitprice": 319.75,
        "sellingPrice": 319.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 299596.13,
    "totalRevenue": 299596.13,
    "totalGrossProfit": 53927.3,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5e6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5e7",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5e8",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_483",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d0",
    "billNumber": "BILL-20250423-000484",
    "date": "2025-04-23T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5e9",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 484",
        "parentItem": "6a85e33f277a43e1d0bd9cd0",
        "quantity": 316,
        "unitprice": 316,
        "sellingPrice": 316,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 99856,
    "totalRevenue": 99856,
    "totalGrossProfit": 17974.08,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ea",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_484",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d1",
    "billNumber": "BILL-20250422-000485",
    "date": "2025-04-22T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5eb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 485",
        "parentItem": "6a85e33f277a43e1d0bd9cd1",
        "quantity": 319.75,
        "unitprice": 319.75,
        "sellingPrice": 319.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5ec",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 486",
        "parentItem": "6a85e33f277a43e1d0bd9cd2",
        "quantity": 323.5,
        "unitprice": 323.5,
        "sellingPrice": 323.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 206892.31,
    "totalRevenue": 206892.31,
    "totalGrossProfit": 37240.62,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ed",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ee",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_485",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d2",
    "billNumber": "BILL-20250421-000486",
    "date": "2025-04-21T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5ef",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 486",
        "parentItem": "6a85e33f277a43e1d0bd9cd2",
        "quantity": 323.5,
        "unitprice": 323.5,
        "sellingPrice": 323.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5f0",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 487",
        "parentItem": "6a85e33f277a43e1d0bd9cd3",
        "quantity": 327.25,
        "unitprice": 327.25,
        "sellingPrice": 327.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5f1",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 488",
        "parentItem": "6a85e33f277a43e1d0bd9cd4",
        "quantity": 331,
        "unitprice": 331,
        "sellingPrice": 331,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 321305.81,
    "totalRevenue": 321305.81,
    "totalGrossProfit": 57835.05,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5f2",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5f3",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5f4",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_486",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d3",
    "billNumber": "BILL-20250420-000487",
    "date": "2025-04-20T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5f5",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 487",
        "parentItem": "6a85e33f277a43e1d0bd9cd3",
        "quantity": 327.25,
        "unitprice": 327.25,
        "sellingPrice": 327.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 107092.56,
    "totalRevenue": 107092.56,
    "totalGrossProfit": 19276.66,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5f6",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_487",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d4",
    "billNumber": "BILL-20250419-000488",
    "date": "2025-04-19T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5f7",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 488",
        "parentItem": "6a85e33f277a43e1d0bd9cd4",
        "quantity": 331,
        "unitprice": 331,
        "sellingPrice": 331,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5f8",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 489",
        "parentItem": "6a85e33f277a43e1d0bd9cd5",
        "quantity": 334.75,
        "unitprice": 334.75,
        "sellingPrice": 334.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 221618.56,
    "totalRevenue": 221618.56,
    "totalGrossProfit": 39891.34,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5f9",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5fa",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_488",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d5",
    "billNumber": "BILL-20250418-000489",
    "date": "2025-04-18T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda5fb",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 489",
        "parentItem": "6a85e33f277a43e1d0bd9cd5",
        "quantity": 334.75,
        "unitprice": 334.75,
        "sellingPrice": 334.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5fc",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 490",
        "parentItem": "6a85e33f277a43e1d0bd9cd6",
        "quantity": 338.5,
        "unitprice": 338.5,
        "sellingPrice": 338.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda5fd",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 491",
        "parentItem": "6a85e33f277a43e1d0bd9cd7",
        "quantity": 342.25,
        "unitprice": 342.25,
        "sellingPrice": 342.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 343774.88,
    "totalRevenue": 343774.88,
    "totalGrossProfit": 61879.48,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5fe",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda5ff",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359073,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda600",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_489",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d6",
    "billNumber": "BILL-20250417-000490",
    "date": "2025-04-17T17:09:19.073Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda601",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 490",
        "parentItem": "6a85e33f277a43e1d0bd9cd6",
        "quantity": 338.5,
        "unitprice": 338.5,
        "sellingPrice": 338.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 114582.25,
    "totalRevenue": 114582.25,
    "totalGrossProfit": 20624.81,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda602",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_490",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d7",
    "billNumber": "BILL-20250416-000491",
    "date": "2025-04-16T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda603",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 491",
        "parentItem": "6a85e33f277a43e1d0bd9cd7",
        "quantity": 342.25,
        "unitprice": 342.25,
        "sellingPrice": 342.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda604",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 492",
        "parentItem": "6a85e33f277a43e1d0bd9cd8",
        "quantity": 346,
        "unitprice": 346,
        "sellingPrice": 346,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 236851.06,
    "totalRevenue": 236851.06,
    "totalGrossProfit": 42633.19,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda605",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda606",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_491",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d8",
    "billNumber": "BILL-20250415-000492",
    "date": "2025-04-15T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda607",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 492",
        "parentItem": "6a85e33f277a43e1d0bd9cd8",
        "quantity": 346,
        "unitprice": 346,
        "sellingPrice": 346,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda608",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 493",
        "parentItem": "6a85e33f277a43e1d0bd9cd9",
        "quantity": 349.75,
        "unitprice": 349.75,
        "sellingPrice": 349.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda609",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 494",
        "parentItem": "6a85e33f277a43e1d0bd9cda",
        "quantity": 353.5,
        "unitprice": 353.5,
        "sellingPrice": 353.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 367003.31,
    "totalRevenue": 367003.31,
    "totalGrossProfit": 66060.6,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda60a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda60b",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda60c",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_492",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92d9",
    "billNumber": "BILL-20250414-000493",
    "date": "2025-04-14T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda60d",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 493",
        "parentItem": "6a85e33f277a43e1d0bd9cd9",
        "quantity": 349.75,
        "unitprice": 349.75,
        "sellingPrice": 349.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 122325.06,
    "totalRevenue": 122325.06,
    "totalGrossProfit": 22018.51,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda60e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_493",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92da",
    "billNumber": "BILL-20250413-000494",
    "date": "2025-04-13T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda60f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 494",
        "parentItem": "6a85e33f277a43e1d0bd9cda",
        "quantity": 353.5,
        "unitprice": 353.5,
        "sellingPrice": 353.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda610",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 495",
        "parentItem": "6a85e33f277a43e1d0bd9cdb",
        "quantity": 357.25,
        "unitprice": 357.25,
        "sellingPrice": 357.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 252589.81,
    "totalRevenue": 252589.81,
    "totalGrossProfit": 45466.17,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda611",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda612",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_494",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92db",
    "billNumber": "BILL-20250412-000495",
    "date": "2025-04-12T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda613",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 495",
        "parentItem": "6a85e33f277a43e1d0bd9cdb",
        "quantity": 357.25,
        "unitprice": 357.25,
        "sellingPrice": 357.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda614",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 496",
        "parentItem": "6a85e33f277a43e1d0bd9cdc",
        "quantity": 361,
        "unitprice": 361,
        "sellingPrice": 361,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda615",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 497",
        "parentItem": "6a85e33f277a43e1d0bd9cdd",
        "quantity": 364.75,
        "unitprice": 364.75,
        "sellingPrice": 364.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 390991.13,
    "totalRevenue": 390991.13,
    "totalGrossProfit": 70378.4,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda616",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda617",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda618",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_495",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92dc",
    "billNumber": "BILL-20250411-000496",
    "date": "2025-04-11T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda619",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 496",
        "parentItem": "6a85e33f277a43e1d0bd9cdc",
        "quantity": 361,
        "unitprice": 361,
        "sellingPrice": 361,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 130321,
    "totalRevenue": 130321,
    "totalGrossProfit": 23457.78,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda61a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_496",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92dd",
    "billNumber": "BILL-20250410-000497",
    "date": "2025-04-10T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda61b",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 497",
        "parentItem": "6a85e33f277a43e1d0bd9cdd",
        "quantity": 364.75,
        "unitprice": 364.75,
        "sellingPrice": 364.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda61c",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 498",
        "parentItem": "6a85e33f277a43e1d0bd9cde",
        "quantity": 368.5,
        "unitprice": 368.5,
        "sellingPrice": 368.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 268834.81,
    "totalRevenue": 268834.81,
    "totalGrossProfit": 48390.27,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Cash",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda61d",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda61e",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_497",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92de",
    "billNumber": "BILL-20250409-000498",
    "date": "2025-04-09T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda61f",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 498",
        "parentItem": "6a85e33f277a43e1d0bd9cde",
        "quantity": 368.5,
        "unitprice": 368.5,
        "sellingPrice": 368.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda620",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 499",
        "parentItem": "6a85e33f277a43e1d0bd9cdf",
        "quantity": 372.25,
        "unitprice": 372.25,
        "sellingPrice": 372.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda621",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 500",
        "parentItem": "6a85e33f277a43e1d0bd9ce0",
        "quantity": 376,
        "unitprice": 376,
        "sellingPrice": 376,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 415738.31,
    "totalRevenue": 415738.31,
    "totalGrossProfit": 74832.9,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Bank Transfer",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda622",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda623",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda624",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_498",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92df",
    "billNumber": "BILL-20250408-000499",
    "date": "2025-04-08T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda625",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 499",
        "parentItem": "6a85e33f277a43e1d0bd9cdf",
        "quantity": 372.25,
        "unitprice": 372.25,
        "sellingPrice": 372.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 138570.06,
    "totalRevenue": 138570.06,
    "totalGrossProfit": 24942.61,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Check",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda626",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_499",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  },
  {
    "_id": "6a85e33f277a43e1d0bd92e0",
    "billNumber": "BILL-20250407-000500",
    "date": "2025-04-07T17:09:19.074Z",
    "items": [
      {
        "item": "6a85e33f277a43e1d0bda627",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 500",
        "parentItem": "6a85e33f277a43e1d0bd9ce0",
        "quantity": 376,
        "unitprice": 376,
        "sellingPrice": 376,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {}
        ]
      },
      {
        "item": "6a85e33f277a43e1d0bda628",
        "itemModel": "Product",
        "itemType": "product",
        "additionalMedicine": false,
        "itemName": "Bill Name 501",
        "parentItem": "6a85e33f277a43e1d0bd9aed",
        "quantity": 379.75,
        "unitprice": 379.75,
        "sellingPrice": 379.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "substitutedMedicines": [],
        "replacements": [],
        "batchAllocations": [
          {},
          {},
          {}
        ]
      }
    ],
    "discount": 0,
    "total": 285586.06,
    "totalRevenue": 285586.06,
    "totalGrossProfit": 51405.49,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "status": "paid",
    "paymentMethod": "Other",
    "paymentStatus": "paid",
    "totalRefunded": 0,
    "refundHistory": [
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda629",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      },
      {
        "date": 1787159359074,
        "type": "item",
        "productId": "6a85e33f277a43e1d0bda62a",
        "itemName": "",
        "quantity": 0,
        "amount": 0,
        "cashier": ""
      }
    ],
    "cashier": "Bill_cashier_500",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "customerAccountId": "6a85e33f277a43e1d0bd90b0",
    "accountName": "",
    "customer": {
      "accountId": "6a85e33f277a43e1d0bd90b0",
      "name": "",
      "phone": "",
      "email": "",
      "address": "",
      "company": "",
      "accountCode": ""
    }
  }
]
