Ändra kundfaktura
update_customer_invoiceÄndra en EJ bokförd kundfaktura (utkast). Bara medskickade fält ändras. Med lines ersätts raderna och total/moms räknas om. Scope reconcile. Argument: orgnr, invoice_id; valfritt customer_name, invoice_number, ocr, invoice_date, due_date, total_ore, vat_ore, currency, income_account, rounding_ore, lines, customer_orgnr, customer_address, customer_email, customer_reference, payment_terms, service_description, seller_address, seller_bank, seller_iban, seller_bic, seller_bankgiro, seller_contact, husarbete (ROT/RUT, samma form som i create_customer_invoice; {type: ""} tar bort husarbetet). Ändras raderna utan att husarbete skickas med behålls beloppen om de ryms, annars sänks avdraget till högsta möjliga.
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. | |
| vat_ore | No | ||
| currency | No | ||
| due_date | No | ||
| husarbete | No | ||
| total_ore | No | ||
| invoice_id | Yes | ||
| seller_bic | No | ||
| seller_bank | No | ||
| seller_iban | No | ||
| invoice_date | No | ||
| rounding_ore | No | ||
| customer_name | No | ||
| payment_terms | No | ||
| customer_email | No | ||
| customer_orgnr | No | ||
| income_account | No | ||
| invoice_number | No | ||
| seller_address | No | ||
| seller_contact | No | ||
| seller_bankgiro | No | ||
| customer_address | No | ||
| customer_reference | No | ||
| service_description | No |