On credit notes: Customer receives another customer’s credit note
-
We’re using multiple credit notes on each order at the moment cause of a huge sale. Now we’re having an issue that customers get the credit notes of another customer!
I investigated the following:
– We have an order with more than one credit note and want to send out the invoice and credit notes (multiple pages in one pdf)
– I had a look at woocommerce-pdf-ips-pro/include/documents/class-wcpf-credit-note.php on line 62 and saw that on multiple credit notes the normal cycle of filename is skipped. I would expect the pdf is called “Rechnungskorrektur-{{index}}.pdf as all orders with a single credit note also do.
Why is this handled seperated? In the end it just another PDF (multiple pages)– So then a PDF is generated with the filename “Rechnungskorrekturen-{{DATE}}.pdf”. So the first multiple credit notes on a day is right, but all other notes getting the pdf of the first order. (This is a GDPR issue!)
For now I hacked the plugin and added a unique key to the pdf filename. It would be great if you have a look at that and fix it in future releases.
I’m using the latest version.
- The topic ‘On credit notes: Customer receives another customer’s credit note’ is closed to new replies.