{"body": [{"id": "invoicesTable", "type": "table", "options": {"rowClick": "selectRecord", "tableName": "invoices", "rowActions": [{"icon": "fa-eye", "class": "btn btn-info btn-xs", "label": "View", "action": "openSelectedDetail", "ariaLabel": "View invoice details"}, {"icon": "fa-upload", "class": "btn btn-primary btn-xs", "label": "Submit to TaxCore", "action": "invoices:submit-taxcore", "confirm": "Submit this invoice to the tax authority?", "ariaLabel": "Submit invoice to tax authority", "condition": "status == \"draft\" && taxcore_submission_id == null"}, {"icon": "fa-receipt", "class": "btn btn-success btn-xs", "label": "TaxCore Receipt", "action": "invoices:taxcore-receipt", "ariaLabel": "View TaxCore receipt", "condition": "taxcore_submission_id != null"}, {"icon": "fa-credit-card", "class": "btn btn-success btn-xs", "label": "Record Payment", "action": "payments:initiate", "ariaLabel": "Record payment for invoice", "condition": "status != \"paid\" && status != \"cancelled\""}, {"icon": "fa-file-pdf", "class": "btn btn-secondary btn-xs", "label": "PDF", "action": "invoices:pdf", "ariaLabel": "Download invoice PDF"}, {"icon": "fa-ban", "class": "btn btn-error btn-xs btn-outline", "label": "Cancel", "action": "records:cancel", "confirm": "Are you sure you want to cancel this invoice?", "ariaLabel": "Cancel invoice", "condition": "status != \"paid\" && status != \"cancelled\""}], "columnLabels": {"name": "Customer", "amount": "Amount", "status": "Status", "sent_at": "Sent", "amount_paid": "Paid", "is_proforma": "Proforma", "invoice_date": "Date", "invoice_number": "Invoice #", "taxcore_submission_id": "TaxCore ID"}, "columnsToShow": ["invoice_number", "invoice_date", "name", "amount", "amount_paid", "status", "is_proforma", "taxcore_submission_id", "sent_at"], "primaryKeyField": "invoice_id", "showGlobalSearch": true}}], "title": "Invoices Management", "footer": [{"type": "button", "class": "btn btn-ghost", "label": "Close", "action": "close", "ariaLabel": "Close invoices module"}], "header": [{"icon": "fa-plus", "type": "button", "class": "btn btn-primary", "label": "New Invoice", "action": {"handler": "openInvoiceForm"}, "ariaLabel": "Create new invoice"}, {"type": "filter-select", "options": {"label": "Status", "options": [{"label": "All", "value": ""}, {"label": "Draft", "value": "draft"}, {"label": "Pending", "value": "pending"}, {"label": "Submitted", "value": "submitted"}, {"label": "Paid", "value": "paid"}, {"label": "Overdue", "value": "overdue"}, {"label": "Cancelled", "value": "cancelled"}], "data_column": "status"}}, {"type": "filter-select", "options": {"label": "Type", "options": [{"label": "All", "value": ""}, {"label": "Standard", "value": "false"}, {"label": "Proforma", "value": "true"}, {"label": "Advance Payment", "value": "advance"}, {"label": "Refund", "value": "refund"}], "data_column": "is_proforma"}}, {"type": "filter-date-range", "options": {"label": "Date Range", "data_column": "invoice_date"}}, {"icon": "fa-sync", "type": "button", "class": "btn btn-ghost", "label": "Refresh", "action": "refresh", "ariaLabel": "Refresh invoices list"}], "modulePath": "invoices", "dataSources": {"invoices": {"table": "invoices", "syncPolicy": "default", "autoRefresh": true, "refreshInterval": 30000}}}