{
        "type": "list",
        "dataSource": "/api/aging-report/detail/{org_id}",
        "refreshInterval": 60000,
        "pagination": true,
        "pageSize": 50,
        "exportable": true,
        "filters": [
            {
                "key": "age_bucket",
                "label": "Age Bucket",
                "type": "select",
                "options": [
                    {"value": "Current", "label": "Current"},
                    {"value": "1-30 days", "label": "1-30 Days"},
                    {"value": "31-60 days", "label": "31-60 Days"},
                    {"value": "61-90 days", "label": "61-90 Days"},
                    {"value": "90+ days", "label": "90+ Days"}
                ]
            },
            {
                "key": "customer_id",
                "label": "Customer",
                "type": "select",
                "dataSource": "/api/customers/list/{org_id}",
                "valueKey": "customer_id",
                "labelKey": "customer_name"
            },
            {
                "key": "status",
                "label": "Status",
                "type": "select",
                "options": [
                    {"value": "finalized", "label": "Finalized"},
                    {"value": "overdue", "label": "Overdue"},
                    {"value": "paid", "label": "Paid"}
                ]
            },
            {
                "key": "min_balance",
                "label": "Min Balance",
                "type": "number",
                "min": 0,
                "step": 100
            }
        ],
        "columns": [
            {
                "key": "invoice_number",
                "label": "Invoice #",
                "type": "text",
                "sortable": true,
                "link": "/invoices/{invoice_id}"
            },
            {
                "key": "customer_name",
                "label": "Customer",
                "type": "text",
                "sortable": true
            },
            {
                "key": "invoice_date",
                "label": "Invoice Date",
                "type": "date",
                "sortable": true
            },
            {
                "key": "due_date",
                "label": "Due Date",
                "type": "date",
                "sortable": true
            },
            {
                "key": "total_amount",
                "label": "Total",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "amount_paid",
                "label": "Paid",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "balance_due",
                "label": "Balance",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "days_overdue",
                "label": "Days Overdue",
                "type": "number",
                "sortable": true,
                "badge": true,
                "badgeConditions": [
                    {"condition": "value == 0", "class": "badge-success"},
                    {"condition": "value <= 30", "class": "badge-warning"},
                    {"condition": "value <= 60", "class": "badge-warning"},
                    {"condition": "value <= 90", "class": "badge-error"},
                    {"condition": "value > 90", "class": "badge-error"}
                ]
            },
            {
                "key": "age_bucket",
                "label": "Age Bucket",
                "type": "badge",
                "sortable": true,
                "badges": {
                    "Current": {"class": "badge-success"},
                    "1-30 days": {"class": "badge-info"},
                    "31-60 days": {"class": "badge-warning"},
                    "61-90 days": {"class": "badge-warning"},
                    "90+ days": {"class": "badge-error"}
                }
            }
        ],
        "rowActions": [
            {
                "label": "View Invoice",
                "icon": "fa-eye",
                "action": "invoice:view",
                "link": "/invoices/{invoice_id}"
            },
            {
                "label": "Send Reminder",
                "icon": "fa-envelope",
                "action": "invoice:send-reminder",
                "condition": "is_overdue == true",
                "confirm": "Send payment reminder to {customer_name}?"
            },
            {
                "label": "Record Payment",
                "icon": "fa-dollar-sign",
                "action": "invoice:record-payment",
                "openModal": true
            }
        ],
        "bulkActions": [
            {
                "label": "Send Reminders",
                "icon": "fa-envelope",
                "action": "invoice:send-bulk-reminders",
                "confirm": "Send payment reminders for {count} selected invoice(s)?"
            },
            {
                "label": "Export to CSV",
                "icon": "fa-file-csv",
                "action": "export:csv",
                "url": "/api/aging-report/export/csv/{org_id}"
            }
        ]
    }