Approves receipt. If “transaction” params are present, updates the receipt before approval
Param name | Description |
---|---|
transaction required |
Receipt hash Validations:
|
transaction[description] optional |
Receipt description Validations:
|
transaction[participants] optional , nil allowed |
Additional description (e.g. participants). Required based on ExpenseAccount settings Validations:
|
transaction[date] optional |
Receipt date Validations:
|
transaction[credit_account_id] optional |
Validations:
|
transaction[attachment_ids] optional , nil allowed |
Validations:
|
transaction[vat_lines_attributes] optional |
VAT lines Validations:
|
transaction[vat_lines_attributes][taxable] optional |
Taxable amount, e.g. 95.5 Validations:
|
transaction[vat_lines_attributes][tax_percentage] optional |
VAT percentage, e.g. “0.14” for 14% Validations:
|
transaction[vat_lines_attributes][currency] optional |
VAT line currency code, e.g. “EUR” Validations:
|
transaction[vat_lines_attributes][expense_account_id] optional |
Expense account ID per VAT line, required for the 1st line, optional for 2nd+ Validations:
|
transaction[vat_lines_attributes][cost_center_ids] optional , nil allowed |
If the values for the 2nd+ VAT line is not provided, they will be copied from the 1st line Validations:
|
transaction[vat_lines_attributes][vat_code] optional , nil allowed |
Can also be equal to one of the custom company-specific VAT codes. If the value for the 2nd+ VAT line is not provided, it will be copied from the 1st line Validations:
|