[
  {
    "_id": "6a85e33f277a43e1d0bd98db",
    "invoiceNumber": "Invoice_invoiceNumber_1",
    "invoiceDate": "2026-08-19T17:09:19.131Z",
    "dueDate": "2026-08-19T17:09:19.131Z",
    "deliveryDate": "2026-08-19T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdadfb",
        "itemName": "Invoice Name 1",
        "parentItem": "6a85e33f277a43e1d0bd9aed",
        "quantity": 4.75,
        "unitprice": 4.75,
        "sellingPrice": 4.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 4.75,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 4.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 4.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_1",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_1",
    "salesPerson": "Invoice_salesPerson_1",
    "loanId": "6a85e33f277a43e1d0bd9d45",
    "loanNumber": "Invoice_loanNumber_1",
    "terms": "Invoice_terms_1",
    "notes": "Invoice description 1",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98dc",
    "invoiceNumber": "Invoice_invoiceNumber_2",
    "invoiceDate": "2026-08-18T17:09:19.131Z",
    "dueDate": "2026-08-18T17:09:19.131Z",
    "deliveryDate": "2026-08-18T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdadfc",
        "itemName": "Invoice Name 2",
        "parentItem": "6a85e33f277a43e1d0bd9aee",
        "quantity": 8.5,
        "unitprice": 8.5,
        "sellingPrice": 8.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 8.5,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdadfd",
        "itemName": "Invoice Name 3",
        "parentItem": "6a85e33f277a43e1d0bd9aef",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 12.25,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 8.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 8.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_2",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_2",
    "salesPerson": "Invoice_salesPerson_2",
    "loanId": "6a85e33f277a43e1d0bd9d46",
    "loanNumber": "Invoice_loanNumber_2",
    "terms": "Invoice_terms_2",
    "notes": "Invoice description 2",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98dd",
    "invoiceNumber": "Invoice_invoiceNumber_3",
    "invoiceDate": "2026-08-17T17:09:19.131Z",
    "dueDate": "2026-08-17T17:09:19.131Z",
    "deliveryDate": "2026-08-17T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdadfe",
        "itemName": "Invoice Name 3",
        "parentItem": "6a85e33f277a43e1d0bd9aef",
        "quantity": 12.25,
        "unitprice": 12.25,
        "sellingPrice": 12.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 12.25,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdadff",
        "itemName": "Invoice Name 4",
        "parentItem": "6a85e33f277a43e1d0bd9af0",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 16,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae00",
        "itemName": "Invoice Name 5",
        "parentItem": "6a85e33f277a43e1d0bd9af1",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 19.75,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 12.25,
    "discount": 0,
    "tax": 0,
    "totalAmount": 12.25,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_3",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_3",
    "salesPerson": "Invoice_salesPerson_3",
    "loanId": "6a85e33f277a43e1d0bd9d47",
    "loanNumber": "Invoice_loanNumber_3",
    "terms": "Invoice_terms_3",
    "notes": "Invoice description 3",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98de",
    "invoiceNumber": "Invoice_invoiceNumber_4",
    "invoiceDate": "2026-08-16T17:09:19.131Z",
    "dueDate": "2026-08-16T17:09:19.131Z",
    "deliveryDate": "2026-08-16T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae01",
        "itemName": "Invoice Name 4",
        "parentItem": "6a85e33f277a43e1d0bd9af0",
        "quantity": 16,
        "unitprice": 16,
        "sellingPrice": 16,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 16,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 16,
    "discount": 0,
    "tax": 0,
    "totalAmount": 16,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_4",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_4",
    "salesPerson": "Invoice_salesPerson_4",
    "loanId": "6a85e33f277a43e1d0bd9d48",
    "loanNumber": "Invoice_loanNumber_4",
    "terms": "Invoice_terms_4",
    "notes": "Invoice description 4",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98df",
    "invoiceNumber": "Invoice_invoiceNumber_5",
    "invoiceDate": "2026-08-15T17:09:19.131Z",
    "dueDate": "2026-08-15T17:09:19.131Z",
    "deliveryDate": "2026-08-15T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae02",
        "itemName": "Invoice Name 5",
        "parentItem": "6a85e33f277a43e1d0bd9af1",
        "quantity": 19.75,
        "unitprice": 19.75,
        "sellingPrice": 19.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 19.75,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae03",
        "itemName": "Invoice Name 6",
        "parentItem": "6a85e33f277a43e1d0bd9af2",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 23.5,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 19.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 19.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_5",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_5",
    "salesPerson": "Invoice_salesPerson_5",
    "loanId": "6a85e33f277a43e1d0bd9d49",
    "loanNumber": "Invoice_loanNumber_5",
    "terms": "Invoice_terms_5",
    "notes": "Invoice description 5",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e0",
    "invoiceNumber": "Invoice_invoiceNumber_6",
    "invoiceDate": "2026-08-14T17:09:19.131Z",
    "dueDate": "2026-08-14T17:09:19.131Z",
    "deliveryDate": "2026-08-14T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae04",
        "itemName": "Invoice Name 6",
        "parentItem": "6a85e33f277a43e1d0bd9af2",
        "quantity": 23.5,
        "unitprice": 23.5,
        "sellingPrice": 23.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 23.5,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae05",
        "itemName": "Invoice Name 7",
        "parentItem": "6a85e33f277a43e1d0bd9af3",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 27.25,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae06",
        "itemName": "Invoice Name 8",
        "parentItem": "6a85e33f277a43e1d0bd9af4",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 31,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 23.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 23.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_6",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_6",
    "salesPerson": "Invoice_salesPerson_6",
    "loanId": "6a85e33f277a43e1d0bd9d4a",
    "loanNumber": "Invoice_loanNumber_6",
    "terms": "Invoice_terms_6",
    "notes": "Invoice description 6",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e1",
    "invoiceNumber": "Invoice_invoiceNumber_7",
    "invoiceDate": "2026-08-13T17:09:19.131Z",
    "dueDate": "2026-08-13T17:09:19.131Z",
    "deliveryDate": "2026-08-13T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae07",
        "itemName": "Invoice Name 7",
        "parentItem": "6a85e33f277a43e1d0bd9af3",
        "quantity": 27.25,
        "unitprice": 27.25,
        "sellingPrice": 27.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 27.25,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 27.25,
    "discount": 0,
    "tax": 0,
    "totalAmount": 27.25,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_7",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_7",
    "salesPerson": "Invoice_salesPerson_7",
    "loanId": "6a85e33f277a43e1d0bd9d4b",
    "loanNumber": "Invoice_loanNumber_7",
    "terms": "Invoice_terms_7",
    "notes": "Invoice description 7",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e2",
    "invoiceNumber": "Invoice_invoiceNumber_8",
    "invoiceDate": "2026-08-12T17:09:19.131Z",
    "dueDate": "2026-08-12T17:09:19.131Z",
    "deliveryDate": "2026-08-12T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae08",
        "itemName": "Invoice Name 8",
        "parentItem": "6a85e33f277a43e1d0bd9af4",
        "quantity": 31,
        "unitprice": 31,
        "sellingPrice": 31,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 31,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae09",
        "itemName": "Invoice Name 9",
        "parentItem": "6a85e33f277a43e1d0bd9af5",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 34.75,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 31,
    "discount": 0,
    "tax": 0,
    "totalAmount": 31,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_8",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_8",
    "salesPerson": "Invoice_salesPerson_8",
    "loanId": "6a85e33f277a43e1d0bd9d4c",
    "loanNumber": "Invoice_loanNumber_8",
    "terms": "Invoice_terms_8",
    "notes": "Invoice description 8",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e3",
    "invoiceNumber": "Invoice_invoiceNumber_9",
    "invoiceDate": "2026-08-11T17:09:19.131Z",
    "dueDate": "2026-08-11T17:09:19.131Z",
    "deliveryDate": "2026-08-11T17:09:19.131Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae0a",
        "itemName": "Invoice Name 9",
        "parentItem": "6a85e33f277a43e1d0bd9af5",
        "quantity": 34.75,
        "unitprice": 34.75,
        "sellingPrice": 34.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 34.75,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae0b",
        "itemName": "Invoice Name 10",
        "parentItem": "6a85e33f277a43e1d0bd9af6",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 38.5,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae0c",
        "itemName": "Invoice Name 11",
        "parentItem": "6a85e33f277a43e1d0bd9af7",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 42.25,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 34.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 34.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_9",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_9",
    "salesPerson": "Invoice_salesPerson_9",
    "loanId": "6a85e33f277a43e1d0bd9d4d",
    "loanNumber": "Invoice_loanNumber_9",
    "terms": "Invoice_terms_9",
    "notes": "Invoice description 9",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e4",
    "invoiceNumber": "Invoice_invoiceNumber_10",
    "invoiceDate": "2026-08-10T17:09:19.132Z",
    "dueDate": "2026-08-10T17:09:19.132Z",
    "deliveryDate": "2026-08-10T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae0d",
        "itemName": "Invoice Name 10",
        "parentItem": "6a85e33f277a43e1d0bd9af6",
        "quantity": 38.5,
        "unitprice": 38.5,
        "sellingPrice": 38.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 38.5,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 38.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 38.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_10",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_10",
    "salesPerson": "Invoice_salesPerson_10",
    "loanId": "6a85e33f277a43e1d0bd9d4e",
    "loanNumber": "Invoice_loanNumber_10",
    "terms": "Invoice_terms_10",
    "notes": "Invoice description 10",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e5",
    "invoiceNumber": "Invoice_invoiceNumber_11",
    "invoiceDate": "2026-08-09T17:09:19.132Z",
    "dueDate": "2026-08-09T17:09:19.132Z",
    "deliveryDate": "2026-08-09T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae0e",
        "itemName": "Invoice Name 11",
        "parentItem": "6a85e33f277a43e1d0bd9af7",
        "quantity": 42.25,
        "unitprice": 42.25,
        "sellingPrice": 42.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 42.25,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae0f",
        "itemName": "Invoice Name 12",
        "parentItem": "6a85e33f277a43e1d0bd9af8",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 46,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 42.25,
    "discount": 0,
    "tax": 0,
    "totalAmount": 42.25,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_11",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_11",
    "salesPerson": "Invoice_salesPerson_11",
    "loanId": "6a85e33f277a43e1d0bd9d4f",
    "loanNumber": "Invoice_loanNumber_11",
    "terms": "Invoice_terms_11",
    "notes": "Invoice description 11",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e6",
    "invoiceNumber": "Invoice_invoiceNumber_12",
    "invoiceDate": "2026-08-08T17:09:19.132Z",
    "dueDate": "2026-08-08T17:09:19.132Z",
    "deliveryDate": "2026-08-08T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae10",
        "itemName": "Invoice Name 12",
        "parentItem": "6a85e33f277a43e1d0bd9af8",
        "quantity": 46,
        "unitprice": 46,
        "sellingPrice": 46,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 46,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae11",
        "itemName": "Invoice Name 13",
        "parentItem": "6a85e33f277a43e1d0bd9af9",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 49.75,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae12",
        "itemName": "Invoice Name 14",
        "parentItem": "6a85e33f277a43e1d0bd9afa",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 53.5,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 46,
    "discount": 0,
    "tax": 0,
    "totalAmount": 46,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_12",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_12",
    "salesPerson": "Invoice_salesPerson_12",
    "loanId": "6a85e33f277a43e1d0bd9d50",
    "loanNumber": "Invoice_loanNumber_12",
    "terms": "Invoice_terms_12",
    "notes": "Invoice description 12",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e7",
    "invoiceNumber": "Invoice_invoiceNumber_13",
    "invoiceDate": "2026-08-07T17:09:19.132Z",
    "dueDate": "2026-08-07T17:09:19.132Z",
    "deliveryDate": "2026-08-07T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae13",
        "itemName": "Invoice Name 13",
        "parentItem": "6a85e33f277a43e1d0bd9af9",
        "quantity": 49.75,
        "unitprice": 49.75,
        "sellingPrice": 49.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 49.75,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 49.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 49.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_13",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_13",
    "salesPerson": "Invoice_salesPerson_13",
    "loanId": "6a85e33f277a43e1d0bd9d51",
    "loanNumber": "Invoice_loanNumber_13",
    "terms": "Invoice_terms_13",
    "notes": "Invoice description 13",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e8",
    "invoiceNumber": "Invoice_invoiceNumber_14",
    "invoiceDate": "2026-08-06T17:09:19.132Z",
    "dueDate": "2026-08-06T17:09:19.132Z",
    "deliveryDate": "2026-08-06T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae14",
        "itemName": "Invoice Name 14",
        "parentItem": "6a85e33f277a43e1d0bd9afa",
        "quantity": 53.5,
        "unitprice": 53.5,
        "sellingPrice": 53.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 53.5,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae15",
        "itemName": "Invoice Name 15",
        "parentItem": "6a85e33f277a43e1d0bd9afb",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 57.25,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 53.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 53.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_14",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_14",
    "salesPerson": "Invoice_salesPerson_14",
    "loanId": "6a85e33f277a43e1d0bd9d52",
    "loanNumber": "Invoice_loanNumber_14",
    "terms": "Invoice_terms_14",
    "notes": "Invoice description 14",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98e9",
    "invoiceNumber": "Invoice_invoiceNumber_15",
    "invoiceDate": "2026-08-05T17:09:19.132Z",
    "dueDate": "2026-08-05T17:09:19.132Z",
    "deliveryDate": "2026-08-05T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae16",
        "itemName": "Invoice Name 15",
        "parentItem": "6a85e33f277a43e1d0bd9afb",
        "quantity": 57.25,
        "unitprice": 57.25,
        "sellingPrice": 57.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 57.25,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae17",
        "itemName": "Invoice Name 16",
        "parentItem": "6a85e33f277a43e1d0bd9afc",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 61,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae18",
        "itemName": "Invoice Name 17",
        "parentItem": "6a85e33f277a43e1d0bd9afd",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 64.75,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 57.25,
    "discount": 0,
    "tax": 0,
    "totalAmount": 57.25,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_15",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_15",
    "salesPerson": "Invoice_salesPerson_15",
    "loanId": "6a85e33f277a43e1d0bd9d53",
    "loanNumber": "Invoice_loanNumber_15",
    "terms": "Invoice_terms_15",
    "notes": "Invoice description 15",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98ea",
    "invoiceNumber": "Invoice_invoiceNumber_16",
    "invoiceDate": "2026-08-04T17:09:19.132Z",
    "dueDate": "2026-08-04T17:09:19.132Z",
    "deliveryDate": "2026-08-04T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae19",
        "itemName": "Invoice Name 16",
        "parentItem": "6a85e33f277a43e1d0bd9afc",
        "quantity": 61,
        "unitprice": 61,
        "sellingPrice": 61,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 61,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 61,
    "discount": 0,
    "tax": 0,
    "totalAmount": 61,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_16",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_16",
    "salesPerson": "Invoice_salesPerson_16",
    "loanId": "6a85e33f277a43e1d0bd9d54",
    "loanNumber": "Invoice_loanNumber_16",
    "terms": "Invoice_terms_16",
    "notes": "Invoice description 16",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98eb",
    "invoiceNumber": "Invoice_invoiceNumber_17",
    "invoiceDate": "2026-08-03T17:09:19.132Z",
    "dueDate": "2026-08-03T17:09:19.132Z",
    "deliveryDate": "2026-08-03T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae1a",
        "itemName": "Invoice Name 17",
        "parentItem": "6a85e33f277a43e1d0bd9afd",
        "quantity": 64.75,
        "unitprice": 64.75,
        "sellingPrice": 64.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 64.75,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae1b",
        "itemName": "Invoice Name 18",
        "parentItem": "6a85e33f277a43e1d0bd9afe",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 68.5,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 64.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 64.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_17",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_17",
    "salesPerson": "Invoice_salesPerson_17",
    "loanId": "6a85e33f277a43e1d0bd9d55",
    "loanNumber": "Invoice_loanNumber_17",
    "terms": "Invoice_terms_17",
    "notes": "Invoice description 17",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98ec",
    "invoiceNumber": "Invoice_invoiceNumber_18",
    "invoiceDate": "2026-08-02T17:09:19.132Z",
    "dueDate": "2026-08-02T17:09:19.132Z",
    "deliveryDate": "2026-08-02T17:09:19.132Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae1c",
        "itemName": "Invoice Name 18",
        "parentItem": "6a85e33f277a43e1d0bd9afe",
        "quantity": 68.5,
        "unitprice": 68.5,
        "sellingPrice": 68.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 68.5,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae1d",
        "itemName": "Invoice Name 19",
        "parentItem": "6a85e33f277a43e1d0bd9aff",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 72.25,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae1e",
        "itemName": "Invoice Name 20",
        "parentItem": "6a85e33f277a43e1d0bd9b00",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 76,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 68.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 68.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_18",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_18",
    "salesPerson": "Invoice_salesPerson_18",
    "loanId": "6a85e33f277a43e1d0bd9d56",
    "loanNumber": "Invoice_loanNumber_18",
    "terms": "Invoice_terms_18",
    "notes": "Invoice description 18",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98ed",
    "invoiceNumber": "Invoice_invoiceNumber_19",
    "invoiceDate": "2026-08-01T17:09:19.133Z",
    "dueDate": "2026-08-01T17:09:19.133Z",
    "deliveryDate": "2026-08-01T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae1f",
        "itemName": "Invoice Name 19",
        "parentItem": "6a85e33f277a43e1d0bd9aff",
        "quantity": 72.25,
        "unitprice": 72.25,
        "sellingPrice": 72.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 72.25,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 72.25,
    "discount": 0,
    "tax": 0,
    "totalAmount": 72.25,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_19",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_19",
    "salesPerson": "Invoice_salesPerson_19",
    "loanId": "6a85e33f277a43e1d0bd9d57",
    "loanNumber": "Invoice_loanNumber_19",
    "terms": "Invoice_terms_19",
    "notes": "Invoice description 19",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98ee",
    "invoiceNumber": "Invoice_invoiceNumber_20",
    "invoiceDate": "2026-07-31T17:09:19.133Z",
    "dueDate": "2026-07-31T17:09:19.133Z",
    "deliveryDate": "2026-07-31T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae20",
        "itemName": "Invoice Name 20",
        "parentItem": "6a85e33f277a43e1d0bd9b00",
        "quantity": 76,
        "unitprice": 76,
        "sellingPrice": 76,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 76,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae21",
        "itemName": "Invoice Name 21",
        "parentItem": "6a85e33f277a43e1d0bd9b01",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 79.75,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 76,
    "discount": 0,
    "tax": 0,
    "totalAmount": 76,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_20",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_20",
    "salesPerson": "Invoice_salesPerson_20",
    "loanId": "6a85e33f277a43e1d0bd9d58",
    "loanNumber": "Invoice_loanNumber_20",
    "terms": "Invoice_terms_20",
    "notes": "Invoice description 20",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98ef",
    "invoiceNumber": "Invoice_invoiceNumber_21",
    "invoiceDate": "2026-07-30T17:09:19.133Z",
    "dueDate": "2026-07-30T17:09:19.133Z",
    "deliveryDate": "2026-07-30T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae22",
        "itemName": "Invoice Name 21",
        "parentItem": "6a85e33f277a43e1d0bd9b01",
        "quantity": 79.75,
        "unitprice": 79.75,
        "sellingPrice": 79.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 79.75,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae23",
        "itemName": "Invoice Name 22",
        "parentItem": "6a85e33f277a43e1d0bd9b02",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 83.5,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae24",
        "itemName": "Invoice Name 23",
        "parentItem": "6a85e33f277a43e1d0bd9b03",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 87.25,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 79.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 79.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_21",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_21",
    "salesPerson": "Invoice_salesPerson_21",
    "loanId": "6a85e33f277a43e1d0bd9d59",
    "loanNumber": "Invoice_loanNumber_21",
    "terms": "Invoice_terms_21",
    "notes": "Invoice description 21",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f0",
    "invoiceNumber": "Invoice_invoiceNumber_22",
    "invoiceDate": "2026-07-29T17:09:19.133Z",
    "dueDate": "2026-07-29T17:09:19.133Z",
    "deliveryDate": "2026-07-29T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae25",
        "itemName": "Invoice Name 22",
        "parentItem": "6a85e33f277a43e1d0bd9b02",
        "quantity": 83.5,
        "unitprice": 83.5,
        "sellingPrice": 83.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 83.5,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 83.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 83.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_22",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_22",
    "salesPerson": "Invoice_salesPerson_22",
    "loanId": "6a85e33f277a43e1d0bd9d5a",
    "loanNumber": "Invoice_loanNumber_22",
    "terms": "Invoice_terms_22",
    "notes": "Invoice description 22",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f1",
    "invoiceNumber": "Invoice_invoiceNumber_23",
    "invoiceDate": "2026-07-28T17:09:19.133Z",
    "dueDate": "2026-07-28T17:09:19.133Z",
    "deliveryDate": "2026-07-28T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae26",
        "itemName": "Invoice Name 23",
        "parentItem": "6a85e33f277a43e1d0bd9b03",
        "quantity": 87.25,
        "unitprice": 87.25,
        "sellingPrice": 87.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 87.25,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae27",
        "itemName": "Invoice Name 24",
        "parentItem": "6a85e33f277a43e1d0bd9b04",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 91,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 87.25,
    "discount": 0,
    "tax": 0,
    "totalAmount": 87.25,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_23",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_23",
    "salesPerson": "Invoice_salesPerson_23",
    "loanId": "6a85e33f277a43e1d0bd9d5b",
    "loanNumber": "Invoice_loanNumber_23",
    "terms": "Invoice_terms_23",
    "notes": "Invoice description 23",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f2",
    "invoiceNumber": "Invoice_invoiceNumber_24",
    "invoiceDate": "2026-07-27T17:09:19.133Z",
    "dueDate": "2026-07-27T17:09:19.133Z",
    "deliveryDate": "2026-07-27T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae28",
        "itemName": "Invoice Name 24",
        "parentItem": "6a85e33f277a43e1d0bd9b04",
        "quantity": 91,
        "unitprice": 91,
        "sellingPrice": 91,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 91,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae29",
        "itemName": "Invoice Name 25",
        "parentItem": "6a85e33f277a43e1d0bd9b05",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 94.75,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae2a",
        "itemName": "Invoice Name 26",
        "parentItem": "6a85e33f277a43e1d0bd9b06",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 98.5,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 91,
    "discount": 0,
    "tax": 0,
    "totalAmount": 91,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_24",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_24",
    "salesPerson": "Invoice_salesPerson_24",
    "loanId": "6a85e33f277a43e1d0bd9d5c",
    "loanNumber": "Invoice_loanNumber_24",
    "terms": "Invoice_terms_24",
    "notes": "Invoice description 24",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f3",
    "invoiceNumber": "Invoice_invoiceNumber_25",
    "invoiceDate": "2026-07-26T17:09:19.133Z",
    "dueDate": "2026-07-26T17:09:19.133Z",
    "deliveryDate": "2026-07-26T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae2b",
        "itemName": "Invoice Name 25",
        "parentItem": "6a85e33f277a43e1d0bd9b05",
        "quantity": 94.75,
        "unitprice": 94.75,
        "sellingPrice": 94.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 94.75,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 94.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 94.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_25",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_25",
    "salesPerson": "Invoice_salesPerson_25",
    "loanId": "6a85e33f277a43e1d0bd9d5d",
    "loanNumber": "Invoice_loanNumber_25",
    "terms": "Invoice_terms_25",
    "notes": "Invoice description 25",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f4",
    "invoiceNumber": "Invoice_invoiceNumber_26",
    "invoiceDate": "2026-07-25T17:09:19.133Z",
    "dueDate": "2026-07-25T17:09:19.133Z",
    "deliveryDate": "2026-07-25T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae2c",
        "itemName": "Invoice Name 26",
        "parentItem": "6a85e33f277a43e1d0bd9b06",
        "quantity": 98.5,
        "unitprice": 98.5,
        "sellingPrice": 98.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 98.5,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae2d",
        "itemName": "Invoice Name 27",
        "parentItem": "6a85e33f277a43e1d0bd9b07",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 102.25,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 98.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 98.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_26",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_26",
    "salesPerson": "Invoice_salesPerson_26",
    "loanId": "6a85e33f277a43e1d0bd9d5e",
    "loanNumber": "Invoice_loanNumber_26",
    "terms": "Invoice_terms_26",
    "notes": "Invoice description 26",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f5",
    "invoiceNumber": "Invoice_invoiceNumber_27",
    "invoiceDate": "2026-07-24T17:09:19.133Z",
    "dueDate": "2026-07-24T17:09:19.133Z",
    "deliveryDate": "2026-07-24T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae2e",
        "itemName": "Invoice Name 27",
        "parentItem": "6a85e33f277a43e1d0bd9b07",
        "quantity": 102.25,
        "unitprice": 102.25,
        "sellingPrice": 102.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 102.25,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae2f",
        "itemName": "Invoice Name 28",
        "parentItem": "6a85e33f277a43e1d0bd9b08",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 106,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae30",
        "itemName": "Invoice Name 29",
        "parentItem": "6a85e33f277a43e1d0bd9b09",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 109.75,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 102.25,
    "discount": 0,
    "tax": 0,
    "totalAmount": 102.25,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_27",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_27",
    "salesPerson": "Invoice_salesPerson_27",
    "loanId": "6a85e33f277a43e1d0bd9d5f",
    "loanNumber": "Invoice_loanNumber_27",
    "terms": "Invoice_terms_27",
    "notes": "Invoice description 27",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f6",
    "invoiceNumber": "Invoice_invoiceNumber_28",
    "invoiceDate": "2026-07-23T17:09:19.133Z",
    "dueDate": "2026-07-23T17:09:19.133Z",
    "deliveryDate": "2026-07-23T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae31",
        "itemName": "Invoice Name 28",
        "parentItem": "6a85e33f277a43e1d0bd9b08",
        "quantity": 106,
        "unitprice": 106,
        "sellingPrice": 106,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 106,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 106,
    "discount": 0,
    "tax": 0,
    "totalAmount": 106,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "manual",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_28",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_28",
    "salesPerson": "Invoice_salesPerson_28",
    "loanId": "6a85e33f277a43e1d0bd9d60",
    "loanNumber": "Invoice_loanNumber_28",
    "terms": "Invoice_terms_28",
    "notes": "Invoice description 28",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f7",
    "invoiceNumber": "Invoice_invoiceNumber_29",
    "invoiceDate": "2026-07-22T17:09:19.133Z",
    "dueDate": "2026-07-22T17:09:19.133Z",
    "deliveryDate": "2026-07-22T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae32",
        "itemName": "Invoice Name 29",
        "parentItem": "6a85e33f277a43e1d0bd9b09",
        "quantity": 109.75,
        "unitprice": 109.75,
        "sellingPrice": 109.75,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 109.75,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae33",
        "itemName": "Invoice Name 30",
        "parentItem": "6a85e33f277a43e1d0bd9b0a",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 113.5,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 109.75,
    "discount": 0,
    "tax": 0,
    "totalAmount": 109.75,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": "percentage",
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_29",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_29",
    "salesPerson": "Invoice_salesPerson_29",
    "loanId": "6a85e33f277a43e1d0bd9d61",
    "loanNumber": "Invoice_loanNumber_29",
    "terms": "Invoice_terms_29",
    "notes": "Invoice description 29",
    "source": "manual"
  },
  {
    "_id": "6a85e33f277a43e1d0bd98f8",
    "invoiceNumber": "Invoice_invoiceNumber_30",
    "invoiceDate": "2026-07-21T17:09:19.133Z",
    "dueDate": "2026-07-21T17:09:19.133Z",
    "deliveryDate": "2026-07-21T17:09:19.133Z",
    "invoiceType": "sale",
    "paymentStatus": "unpaid",
    "accountId": "6a85e33f277a43e1d0bd90b0",
    "items": [
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae34",
        "itemName": "Invoice Name 30",
        "parentItem": "6a85e33f277a43e1d0bd9b0a",
        "quantity": 113.5,
        "unitprice": 113.5,
        "sellingPrice": 113.5,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 113.5,
        "batchAllocations": [
          {},
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae35",
        "itemName": "Invoice Name 31",
        "parentItem": "6a85e33f277a43e1d0bd9b0b",
        "quantity": 117.25,
        "unitprice": 117.25,
        "sellingPrice": 117.25,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 117.25,
        "batchAllocations": [
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      },
      {
        "itemType": "product",
        "item": "6a85e33f277a43e1d0bdae36",
        "itemName": "Invoice Name 32",
        "parentItem": "6a85e33f277a43e1d0bd9b0c",
        "quantity": 121,
        "unitprice": 121,
        "sellingPrice": 121,
        "costPrice": 0,
        "grossProfit": 0,
        "medicineSubstituted": false,
        "amount": 121,
        "batchAllocations": [
          {},
          {}
        ],
        "customizedMedicines": [],
        "substitutedMedicines": [],
        "replacements": [],
        "additionalMedicine": false
      }
    ],
    "subtotal": 113.5,
    "discount": 0,
    "tax": 0,
    "totalAmount": 113.5,
    "totalRevenue": 0,
    "totalGrossProfit": 0,
    "commissionAmount": 0,
    "commissionRate": 0,
    "commissionType": null,
    "commissions": [],
    "grossProfitBeforeCommission": 0,
    "netProfitAfterCommission": 0,
    "currency": "AF",
    "decimalPlaces": 0,
    "amountPaid": 0,
    "overpaymentAmount": 0,
    "referenceNumber": "Invoice_referenceNumber_30",
    "paymentMethod": "cash",
    "cashier": "Unknown",
    "purchaseOrderNumber": "Invoice_purchaseOrderNumber_30",
    "salesPerson": "Invoice_salesPerson_30",
    "loanId": "6a85e33f277a43e1d0bd9d62",
    "loanNumber": "Invoice_loanNumber_30",
    "terms": "Invoice_terms_30",
    "notes": "Invoice description 30",
    "source": "manual"
  }
]
