Voucher vs voucher row in Next
Vouchers are an optional concept in Next only used as an image container, it is not an accounting document header. A voucher row contains all the required information about costs and revenue independently, without referencing a header/voucher. If you don't have an image, you can go ahead and create the rows direcly using the POST
/voucher/row/ endpoint without first creating a voucher.
Voucher rows correspond to the rows shown under the tab "Booked Cost/revenue" inside Next Project UI. The optional voucher corresponds to the "Image URL" column (attachment icon) - if it's filled it means a voucher was created for that voucher row.
Using optional vouchers
It is possible to attach PDF:s or URL:s to voucher rows in Next. This is highly appreciated by the user since it will make it possible to preview supplier invoices directly from Next. PDF:s can then be attached to a customer invoice or a report, but the URL will only be a fast-track to the PDF in an external system.
To be able to connect a PDF file to a voucher row, a voucher object needs to be created. This can be done according to below:
- Create a voucher using the POST/voucher/ endpoint and add the PDF/picture to the voucher
- In the response there will be a field
voucherid - Create voucher rows using the POST/voucher/row endpoint and associate them to the voucher using the
voucherid. - The PDF/picture will now be available for all rows associated with the voucher in Next under the tab Booked cost/revenue.
Clarification! If you have multiple voucher rows from your economy system that all belong to the same voucher. Don't create one Voucher record for each VoucherRow record in Next Project API. Instead, create one Voucher record, and then link the VoucherRow records to this single Voucher record. Creating a Voucher record for each VoucherRow record is highly wasteful and requires more resources from Next.
Group voucher rows together
If you want to have a common reference for a set of voucher rows, for example to know which voucher rows belong to a common header in the accounting system, you should use the vouchernumberfield in the POST /voucher/row/ endpoint for this purpose (i.e. not the voucherid mentioned above).
Updated 3 days ago
