{
        "description": "Manage purchase orders with multi-unit tracking",
        "version": "1.0.0",
        "dataSources": {
            "purchase_orders": {
                "endpoint": "/api/purchase_orders",
                "primaryKey": "purchase_order_id",
                "cache": true,
                "refreshInterval": 30000
            },
            "vendors": {
                "endpoint": "/api/vendors",
                "primaryKey": "vendor_id",
                "cache": true
            }
        },
        "columns": [
            {"field": "po_number", "label": "PO #", "sortable": true, "searchable": true},
            {"field": "vendor_name", "label": "Vendor", "sortable": true, "searchable": true},
            {"field": "status", "label": "Status", "sortable": true, "type": "badge", 
             "badges": {
                 "pending": "badge-info",
                 "partially_received": "badge-warning", 
                 "fully_received": "badge-success",
                 "closed": "badge-neutral"
             }},
            {"field": "expected_delivery_date", "label": "Expected Delivery", "type": "date", "sortable": true},
            {"field": "total_amount", "label": "Total", "type": "currency", "sortable": true},
            {"field": "completion_percentage", "label": "Progress", "type": "progress"},
            {"field": "created_at", "label": "Created", "type": "date", "sortable": true}
        ],
        "rowActions": [
            {
                "label": "View Details",
                "icon": "fa-eye",
                "action": "po:view",
                "class": "btn-sm btn-ghost"
            },
            {
                "label": "Receive Goods",
                "icon": "fa-truck",
                "action": "po:receive",
                "class": "btn-sm btn-primary",
                "condition": "status != \"closed\" && status != \"fully_received\"",
                "confirm": false
            },
            {
                "label": "Close PO",
                "icon": "fa-check",
                "action": "po:close",
                "class": "btn-sm btn-warning",
                "condition": "status != \"closed\"",
                "confirm": "Close this Purchase Order? This requires closure notes."
            },
            {
                "label": "Edit",
                "icon": "fa-edit",
                "action": "po:edit",
                "class": "btn-sm btn-ghost",
                "condition": "status == \"pending\""
            },
            {
                "label": "Delete",
                "icon": "fa-trash",
                "action": "po:delete",
                "class": "btn-sm btn-error",
                "condition": "status == \"pending\"",
                "confirm": "Delete this Purchase Order? This action cannot be undone."
            }
        ],
        "headerActions": [
            {
                "label": "Create Purchase Order",
                "icon": "fa-plus",
                "action": "po:create",
                "class": "btn-primary"
            }
        ],
        "filters": [
            {
                "name": "status",
                "label": "Status",
                "type": "select",
                "options": [
                    {"value": "", "label": "All Status"},
                    {"value": "pending", "label": "Pending"},
                    {"value": "partially_received", "label": "Partially Received"},
                    {"value": "fully_received", "label": "Fully Received"},
                    {"value": "closed", "label": "Closed"}
                ]
            },
            {
                "name": "vendor_id",
                "label": "Vendor",
                "type": "select",
                "dataSource": "vendors"
            },
            {
                "name": "date_from",
                "label": "From Date",
                "type": "date"
            },
            {
                "name": "date_to",
                "label": "To Date",
                "type": "date"
            }
        ],
        "defaultSort": {"field": "created_at", "direction": "desc"},
        "pageSize": 25,
        "exportable": true
    }