Skip to main content

register-supplier-invoice

This skill should be used when the task asks to "register a supplier invoice", "erfassen Sie die Lieferantenrechnung", "registrer leverandørfaktura", "registrer ein leverandørfaktura", "enregistrer une facture fournisseur", "registrar fatura de fornecedor", "received an invoice from supplier", or involves recording an incoming invoice from a supplier with VAT/input tax handling.

跳到安装

来源信息

仓库
JardarIversen/ainm-2026
最近来源活动
2026年3月21日 15:13
检测到的 SKILL.md 语言
英语
星标
18
分支
14

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
register_supplier_invoice
tier
2
task
T11
description
This skill should be used when the task asks to "register a supplier invoice", "erfassen Sie die Lieferantenrechnung", "registrer leverandørfaktura", "registrer ein leverandørfaktura", "enregistrer une facture fournisseur", "registrar fatura de fornecedor", "received an invoice from supplier", or involves recording an incoming invoice from a supplier with VAT/input tax handling.
# Register Supplier Invoice ## Call 1: GET /supplier + GET /ledger/account (parallel) ``` GET /supplier?organizationNumber=<org_nr>&fields=id,name&count=10 GET /ledger/account?number=<expense_acct>,2400&fields=id,number,name ``` Where `<expense_acct>` is the account from the prompt (e.g. 6300, 6500, 7100, 7300). ## Call 2: POST /supplierInvoice?sendToLedger=true Use 2-line auto-VAT postings. The system auto-generates the VAT posting on account 2710 and auto-assigns voucherType "Leverandørfaktura". ```json POST /supplierInvoice?sendToLedger=true { "invoiceNumber": "<invoice_number>", "invoiceDate": "2026-03-21", "invoiceDueDate": "2026-04-04", "supplier": {"id": <supplier_id>}, "amountCurrency": -<amount_incl_vat>, "currency": {"id": 1}, "voucher": { "date": "2026-03-21", "description": "<service_description>", "postings": [ { "date": "2026-03-21", "account": {"id": <expense_account_id>}, "vatType": {"id": 1}, "amountGross": <amount_incl_vat>, "amountGrossCurrency": <amount_incl_vat>, "description": "<service_description>", "row": 1, "supplier": {"id": <supplier_id>} }, { "date": "2026-03-21", "account": {"id": <account_2400_id>}, "amountGross": -<amount_incl_vat>, "amountGrossCurrency": -<amount_incl_vat>, "description": "<service_description>", "row": 2, "supplier": {"id": <supplier_id>} } ] } } ``` Extract the voucher ID from the response: `response.value.voucher.id`. ## Call 3: PUT /ledger/voucher/{voucherId}/:sendToLedger ``` PUT /ledger/voucher/<voucher_id>/:sendToLedger ``` No body needed. This finalizes the voucher so postings are visible in the ledger. **3 calls, 0 errors.** ## Key details - `amountCurrency` MUST be negative (e.g. -50000) - 2-line auto-VAT: expense GROSS with vatType:1 + AP GROSS credit. System auto-generates VAT posting on 2710. - vatType id=1 = "Deductible input VAT, high rate" (25%) — correct for supplier invoices - No need to look up voucherType — system auto-assigns "Leverandørfaktura" - No need to look up account 2710 — system auto-creates the VAT posting - Account 2400 = supplier liability (AP) - The PUT :sendToLedger call is CRITICAL — without it, the voucher stays as temp and postings are invisible to the scoring system
在 GitHub 查看