Create Expense Draft
Module · Stable
Record a supplier invoice or receipt as a draft — editable until a person confirms it.
Creates a DRAFT expense document — a supplier invoice or a receipt — and returns its id. A draft is editable; confirming it freezes the supplier snapshot and fixes which VAT period it falls in, which is an accounting act and a person’s decision. This skill cannot confirm, and no input reaches it.
When to use
Section titled “When to use”Use to record what a supplier sent — from an extracted PDF, an email, or a photographed receipt — so a person can check and confirm it. doc_kind matters: ‘receipt’ is card or cash settled on the spot, ‘invoice’ is a supplier invoice whose payment and DUZP usually diverge.
When not to use
Section titled “When not to use”This is money going OUT. For an invoice you issue, use Create invoice draft. And it cannot confirm: filing a document into a VAT period is not something to do on someone’s behalf.
Inputs
Section titled “Inputs”Configured per use: doc_kind, supplier_name, supplier_party_type, supplier_party_id, document_number, variable_symbol, document_date, duzp, due_date, currency_code, total_incl_vat, vat_mode.
Outputs
Section titled “Outputs”Auto-generated from the skill registry (load_skills()). Do not edit by hand.