view --main register_supplier_invoice-skill-dlya-registratsii-schetov.md
register_supplier_invoice: Скилл для регистрации счетов
//
Этот навык следует использовать, когда задача требует "зарегистрировать счет от поставщика", "erfassen Sie die Lieferantenrechnung" (немецкий), "registrer leverandørfaktura" (норвежский), "registrer ein leverandørfaktura" (немецкий), "enregistrer une facture fournisseur" (французский), "registrar fatura de fornecedor" (португальский), или когда речь идет о регистрации входящего счета от поставщика с учетом НДС/налогового вычета.
readonly
--- lines
---
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
Инициализация мануала...
//
$ ls -R related_skills/
package.json
$ install --global
skills.sh
npx skills add https://github.com/JardarIversen/ainm-2026/tree/main/ai-accounting-agent/src/skills/register_supplier_invoice
$ download --local
man
[HINT] Скачивает всю директорию скилла с GitHub: SKILL.md и все связанные файлы