Add/docs skv mcp (#494)

* feat: add "book directly" functionality for invoice inbox items

- Extend JournalEntrySourceTypeSchema to include 'inbox_item'.
- Introduce BookInboxItemDirectlySchema for direct journal entry creation.
- Update InvoiceInboxItem type to include matched_transaction_id and created_journal_entry_id.
- Implement BookDirectlyDialog component for user interaction.
- Create API route for booking directly from inbox items with appropriate validations.
- Add SQL migration to support new journal entry references in the invoice inbox items table.
- Implement tests for the new booking functionality and ensure proper error handling.

* fix(invoice-inbox): update status handling for resolved inbox items

* feat: enforce unique journal entry constraint for invoice inbox items
This commit is contained in:
Mattsson
2026-05-15 00:49:59 +02:00
committed by GitHub
parent 523a8650cc
commit b0890c7c79
9 changed files with 1271 additions and 10 deletions
+3
View File
@@ -929,6 +929,7 @@ export type JournalEntrySourceType =
| 'correction'
| 'import'
| 'system'
| 'inbox_item'
| 'supplier_invoice_registered'
| 'supplier_invoice_paid'
| 'supplier_invoice_cash_payment'
@@ -1716,6 +1717,8 @@ export interface InvoiceInboxItem {
extracted_data: Record<string, unknown> | null
matched_supplier_id: string | null
created_supplier_invoice_id: string | null
matched_transaction_id: string | null
created_journal_entry_id: string | null
error_message: string | null
raw_email_payload: Record<string, unknown> | null