[
  {
    "id": "return_1777972144112_cj90zn",
    "returnNumber": "R/2026/7194",
    "date": "2026-05-05",
    "invoiceId": "inv-9335d2a4-9a6e-49d6-8742-739ebd96b0ed",
    "invoiceNumber": "ST/2026/0001",
    "originalInvoiceDate": "2026-05-05T07:24:26.294Z",
    "customerId": "cust-store-3403cc16-074e-4b65-921e-f9a527271102",
    "customerName": "مراد ابوسليم",
    "items": [
      {
        "lineId": "7155-1",
        "materialId": "7155",
        "name": "7155",
        "returnedQuantity": 4,
        "originalQuantity": 4,
        "unitPrice": 30,
        "returnValue": 120,
        "condition": "damaged",
        "warehouseId": "wh-8af88591",
        "shelfId": "wh-8af88591-s1",
        "restockable": false
      }
    ],
    "subTotal": 120,
    "taxAmount": 0,
    "totalAmount": 120,
    "status": "processed",
    "primaryReason": "damaged",
    "reasonDescription": "رفض الاستلام",
    "customerNotes": "مردود مرتبط بطلب متجر STORE/2026/0014",
    "internalNotes": "StoreOrderId=inv-store-07c11d9e-893e-4888-be64-5a024595ae40",
    "documents": [],
    "activityLog": [
      {
        "id": "return_1777972144112_ce05pa",
        "timestamp": "2026-05-05T09:09:04.112Z",
        "action": "created",
        "message": "Return created for invoice ST/2026/0001",
        "by": "emp-admin",
        "byName": "Admin",
        "details": {
          "reason": "damaged"
        }
      }
    ],
    "createdBy": "emp-admin",
    "createdAt": "2026-05-05T09:09:04.113Z",
    "approvalDate": "2026-05-05",
    "approvalBy": "emp-admin",
    "approvalByName": "Admin",
    "updatedAt": "2026-05-05T09:09:04.144Z",
    "receivedDate": "2026-05-05",
    "receivedBy": "emp-admin",
    "receivedByName": "Admin",
    "receivedQuantity": 4,
    "processedDate": "2026-05-05",
    "processedBy": "emp-admin",
    "processedByName": "Admin",
    "creditNoteId": "CN-return_1777972144112_cj90zn",
    "creditNoteNumber": "CN-return_1777972144112_cj90zn",
    "refundAmount": 120,
    "refundMethod": "cash",
    "refundIssuedDate": "2026-05-05"
  },
  {
    "id": "return_1777974586200_c0tnbr",
    "returnNumber": "R/2026/6181",
    "date": "2026-05-05",
    "invoiceId": "inv-5eef2d90-b6a5-443a-97d9-e1ea37d2bb1b",
    "invoiceNumber": "ST/2026/0003",
    "originalInvoiceDate": "2026-05-05T09:49:06.535Z",
    "customerId": "cust-store-ccb5f3b3-8428-4878-9c36-9729716d3e60",
    "customerName": "زيد هادي",
    "items": [
      {
        "lineId": "7155-1",
        "materialId": "7155",
        "name": "7155",
        "returnedQuantity": 1,
        "originalQuantity": 1,
        "unitPrice": 30,
        "returnValue": 30,
        "condition": "good",
        "warehouseId": "wh-8af88591",
        "shelfId": "wh-8af88591-s1",
        "restockable": true
      }
    ],
    "subTotal": 30,
    "taxAmount": 0,
    "totalAmount": 30,
    "status": "processed",
    "primaryReason": "customer_request",
    "reasonDescription": "رفض",
    "customerNotes": "مردود مرتبط بطلب متجر STORE/2026/0022",
    "internalNotes": "StoreOrderId=inv-store-16338963-9ed0-4cac-b571-c1e0473aa038",
    "documents": [],
    "activityLog": [
      {
        "id": "return_1777974586201_sak5i8",
        "timestamp": "2026-05-05T09:49:46.201Z",
        "action": "created",
        "message": "Return created for invoice ST/2026/0003",
        "by": "emp-admin",
        "byName": "Admin",
        "details": {
          "reason": "customer_request"
        }
      }
    ],
    "createdBy": "emp-admin",
    "createdAt": "2026-05-05T09:49:46.201Z",
    "approvalDate": "2026-05-05",
    "approvalBy": "emp-admin",
    "approvalByName": "Admin",
    "updatedAt": "2026-05-05T09:49:46.239Z",
    "receivedDate": "2026-05-05",
    "receivedBy": "emp-admin",
    "receivedByName": "Admin",
    "receivedQuantity": 1,
    "processedDate": "2026-05-05",
    "processedBy": "emp-admin",
    "processedByName": "Admin",
    "creditNoteId": "CN-return_1777974586200_c0tnbr",
    "creditNoteNumber": "CN-return_1777974586200_c0tnbr",
    "refundAmount": 30,
    "refundMethod": "cash",
    "refundIssuedDate": "2026-05-05"
  },
  {
    "id": "return_1777977576330_97mvag",
    "returnNumber": "R/2026/4251",
    "date": "2026-05-05",
    "invoiceId": "inv-d4f2c32a-6cc1-47ce-aa56-91a167f79261",
    "invoiceNumber": "ST/2026/0005",
    "originalInvoiceDate": "2026-05-05T10:34:29.560Z",
    "customerId": "cust-store-f40d452b-fc64-4a5b-9b60-69e0e200be47",
    "customerName": "سماهر",
    "items": [
      {
        "lineId": "7155-1",
        "materialId": "7155",
        "name": "درم امامي ميتسوبيشي لانسر +2009   276 ملم",
        "returnedQuantity": 10,
        "originalQuantity": 10,
        "unitPrice": 30,
        "returnValue": 300,
        "condition": "good",
        "warehouseId": "wh-8af88591",
        "shelfId": "wh-8af88591-s1",
        "restockable": true
      }
    ],
    "subTotal": 300,
    "taxAmount": 0,
    "totalAmount": 300,
    "status": "processed",
    "primaryReason": "customer_request",
    "reasonDescription": "يبيبيب",
    "customerNotes": "مردود مرتبط بطلب متجر STORE/2026/0028",
    "internalNotes": "StoreOrderId=inv-store-ebb7973d-ae40-4bc4-815e-63918a7c5c57",
    "documents": [],
    "activityLog": [
      {
        "id": "return_1777977576330_drdpku",
        "timestamp": "2026-05-05T10:39:36.330Z",
        "action": "created",
        "message": "Return created for invoice ST/2026/0005",
        "by": "emp-admin",
        "byName": "Admin",
        "details": {
          "reason": "customer_request"
        }
      }
    ],
    "createdBy": "emp-admin",
    "createdAt": "2026-05-05T10:39:36.330Z",
    "approvalDate": "2026-05-05",
    "approvalBy": "emp-admin",
    "approvalByName": "Admin",
    "updatedAt": "2026-05-05T10:39:36.440Z",
    "receivedDate": "2026-05-05",
    "receivedBy": "emp-admin",
    "receivedByName": "Admin",
    "receivedQuantity": 10,
    "processedDate": "2026-05-05",
    "processedBy": "emp-admin",
    "processedByName": "Admin",
    "creditNoteId": "CN-return_1777977576330_97mvag",
    "creditNoteNumber": "CN-return_1777977576330_97mvag",
    "refundAmount": 300,
    "refundMethod": "cash",
    "refundIssuedDate": "2026-05-05"
  },
  {
    "id": "return_1777978542439_jqsure",
    "returnNumber": "R/2026/0683",
    "date": "2026-05-05",
    "invoiceId": "inv-d4f2c32a-6cc1-47ce-aa56-91a167f79261",
    "invoiceNumber": "ST/2026/0005",
    "originalInvoiceDate": "2026-05-05T10:34:29.560Z",
    "customerId": "cust-store-f40d452b-fc64-4a5b-9b60-69e0e200be47",
    "customerName": "سماهر",
    "items": [
      {
        "lineId": "line-0",
        "materialId": "7155",
        "name": "درم امامي ميتسوبيشي لانسر +2009   276 ملم",
        "returnedQuantity": 10,
        "originalQuantity": 10,
        "unitPrice": 30,
        "returnValue": 300,
        "condition": "good",
        "conditionNotes": "",
        "warehouseId": "wh-8af88591",
        "shelfId": "wh-8af88591-s1",
        "restockable": true
      }
    ],
    "subTotal": 300,
    "taxAmount": 0,
    "totalAmount": 300,
    "status": "pending",
    "primaryReason": "defective",
    "reasonDescription": "نتتاننت",
    "documents": [],
    "activityLog": [
      {
        "id": "return_1777978542439_mplibk",
        "timestamp": "2026-05-05T10:55:42.439Z",
        "action": "created",
        "message": "Return created for invoice ST/2026/0005",
        "by": "emp-admin",
        "byName": "Admin",
        "details": {
          "reason": "defective"
        }
      }
    ],
    "createdBy": "emp-admin",
    "createdAt": "2026-05-05T10:55:42.439Z"
  }
]