{
        "type": "list",
        "dataSource": "/api/aging-report/by-customer/{org_id}",
        "refreshInterval": 60000,
        "pagination": true,
        "pageSize": 50,
        "exportable": true,
        "columns": [
            {
                "key": "customer_name",
                "label": "Customer",
                "type": "text",
                "sortable": true
            },
            {
                "key": "invoice_count",
                "label": "Invoices",
                "type": "number",
                "sortable": true
            },
            {
                "key": "total_balance",
                "label": "Total Outstanding",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "current_balance",
                "label": "Current",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "days_1_30",
                "label": "1-30 Days",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "days_31_60",
                "label": "31-60 Days",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "days_61_90",
                "label": "61-90 Days",
                "type": "currency",
                "sortable": true
            },
            {
                "key": "days_90_plus",
                "label": "90+ Days",
                "type": "currency",
                "sortable": true,
                "badge": true,
                "badgeConditions": [
                    {"condition": "value == 0", "class": "badge-success"},
                    {"condition": "value > 0", "class": "badge-error"}
                ]
            },
            {
                "key": "max_days_overdue",
                "label": "Max Days",
                "type": "number",
                "sortable": true
            }
        ],
        "rowActions": [
            {
                "label": "View Customer",
                "icon": "fa-user",
                "action": "customer:view",
                "link": "/customers/{customer_id}"
            },
            {
                "label": "View Invoices",
                "icon": "fa-file-invoice",
                "action": "customer:view-invoices",
                "link": "/aging-report/detail?customer_id={customer_id}"
            },
            {
                "label": "Send Statement",
                "icon": "fa-envelope",
                "action": "customer:send-statement",
                "confirm": "Send account statement to {customer_name}?"
            }
        ],
        "bulkActions": [
            {
                "label": "Send Statements",
                "icon": "fa-envelope",
                "action": "customer:send-bulk-statements",
                "confirm": "Send account statements to {count} selected customer(s)?"
            }
        ]
    }