invoiceninja / invoiceninja

Invoices, Expenses and Tasks built with Laravel, Flutter and React
https://invoiceninja.com
Other
7.97k stars 2.24k forks source link

v5 Post processing of PDF Invoices/credit notes etc #5640

Open brackenhill-mob opened 3 years ago

brackenhill-mob commented 3 years ago

What version of Invoice Ninja are you running? ie v4.5 / v5 v5

What environment are you running? Self Hosted VPS

Have you searched existing issues/requests? Yes

Screenshots N/A

Additional context There was a recent discussion on Slack about the PDF/A format around PDF integrity.

A number of countries require that electronic documents are tamper proof (Germany for sure and the UK - although the latter has watered down its original view - link below). Normal PDFs are relatively easy to edit. As part of that discussion some code was made available by Benjamin to be run in a cron job but this approach allows for the possibility that the invoice is viewed/downloaded by the client before the job is run.

I propose that IN has has a post PDF processing "slot" that could contain the details of a script to be run immediately after IN generates the PDF as part of that process.

Also this way, one could email the PDF directly without worrying that it has been processed to PDF/A.

The link to HMRC's (UK taxman) document is https://www.gov.uk/guidance/electronic-invoicing-notice-70063#conditions-for-electronic-transmission

The key phrases here are "authenticity of the origin" and "integrity of content" - typical UK nice and woolly, open to interpretation phrase. I was speaking to the accountant for a client only this week about this very issue and they were unaware of this document!!!

HTH

beganovich commented 3 years ago

@turbo124 thoughts?