Files
accounted/lib
Mattsson b34de598e3 feat: add inbox-direct supplier invoice creation from inbox items (#558)
* feat: add inbox-direct supplier invoice creation from inbox items

- Implemented `gnubok_create_supplier_invoice_from_inbox` tool in the MCP server for creating supplier invoices directly from inbox items.
- Enhanced the input schema to include `inbox_item_id` and `document_id` for direct booking.
- Added logic to validate inbox items and link documents to journal entries during the commit process.
- Introduced `commitCreateSupplierInvoiceFromInbox` function to handle the creation and linking of supplier invoices.
- Added unit tests to cover various scenarios including happy path, idempotency, error handling, and rollbacks.
- Updated database migration to extend the `pending_operations` table to include the new operation type.

* fix: extend CHECK constraint to include create_supplier_invoice_from_inbox operation

* feat: add validation for financial fields in supplier invoice creation from inbox
2026-05-22 11:09:46 +02:00
..
2026-05-06 11:12:02 +02:00
2026-03-21 00:47:54 +01:00
2026-02-24 16:06:36 +01:00
2026-05-05 09:53:37 +02:00
2026-05-13 00:26:04 +02:00
2026-04-22 18:14:01 +02:00
2026-05-21 01:25:18 +02:00
2026-05-17 23:52:49 +02:00
2026-04-15 11:17:39 +02:00
2026-05-13 15:17:32 +02:00
2026-05-06 11:12:02 +02:00
2026-05-08 15:42:06 +02:00
2026-04-29 16:32:26 +02:00