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.

Ir a la instalación

Datos de origen

Repositorio
JardarIversen/ainm-2026
Última actividad en el origen
21 de marzo de 2026 a las 15:13
Idioma detectado de SKILL.md
inglés
Estrellas
18
Forks
14

Opciones de instalación

De forma predeterminada está seleccionado el prompt que primero revisa el origen. Puedes cambiar a un comando directo o descargar una copia local.

Revisa los archivos de origen

Lee SKILL.md y los archivos complementarios que muestra SkillsMP antes de decidir si quieres instalarlo.

Mostrando SKILL.md

SKILL.md
Instrucciones de origen · Vista previa de solo lectura
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
Ver en GitHub