Recreate Invoices

Achtung: Diese Seite ist nur noch Teil eines Archivs und wird in Zukunft entfernt.

There is no automatic method to recreate the PDF of invoices – which should not be done as you wish due to judicial reasons. However, if you need to do it, you can by simply deleting one value in the database by setting it to NULL.

Go to the table kppsX_invoice (where X is then installation number), select the invoice you want to recreate the PDF for and set the value of the row pdfID to NULL. As soon as you or the customer tries to access the invoice again it will be recreated automatically.

Please note that the old PDF will still remain on your server storage. That shouldn’t be a big problem due to the small file size. However, if you want to delete it, locate the PDF first by using the pdfID from the table kppsX_invoice and look for it in the table kppsX_invoice_pdf. There you will find the row fileHash, which is needed to identify the PDF on the webspace. Then, go to the directory storage/invoice/ in your shop directory on the web server. You will find many folders there, each with a name of two characters. Select the folder named with the first two characters of the hash. For instance, if your fileHash is 6831a64c4c9a882d9a31e3807255b89244cae650, go to the directory 68. There you will find a file with the name of the fileHash. Just delete it.
Über den Autor
Ich bin Webentwickler in Stuttgart und administriere Server seit vielen Jahren. In diesem Blog erstelle ich hauptsächlich Tutorials für andere Webentwickler, Webdesigner und Serveradministratoren.
I’m a web developer in Stuttgart, Germany, and server administrator since many years. This blog mainly contains a tutorial set for other web developer, web designer and server administrators.

1.688 mal gelesen

Kommentare 0

Es wurden keine Einträge gefunden.