Ändra leverantörsfaktura
update_supplier_invoiceÄndra en ännu ej bokförd leverantörsfaktura (bara medskickade fält ändras). Med lines ([{account, net_ore, vat_rate, description?}]) ersätts raderna och total/moms räknas om; document_id kopplar/ändrar fakturans underlag (PDF) i efterhand. Scope reconcile. Argument: orgnr, invoice_id; valfritt supplier_name, invoice_number, ocr, invoice_date, due_date, total_ore, vat_ore, currency, expense_account, document_id, lines, rounding_ore, fx_rate, total_sek_ore (annan valuta: belopp i fakturans valuta, kurs eller SEK-belopp från ANVÄNDAREN).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | ||
| lines | No | ||
| orgnr | Yes | Bolagets organisationsnummer, 10 siffror med eller utan bindestreck, t.ex. 559900-1004. Hämta med list_companies. | |
| fx_rate | No | ||
| vat_ore | No | ||
| currency | No | ||
| due_date | No | ||
| total_ore | No | ||
| invoice_id | Yes | ||
| document_id | No | ||
| invoice_date | No | ||
| rounding_ore | No | ||
| supplier_name | No | ||
| total_sek_ore | No | ||
| invoice_number | No | ||
| expense_account | No |