I have little problem with draft invoices lately. I set IN to create new invoice number after sending e-mail (or status changing to sent). Problem is, IN is really stubborn on showing previous draft invoice PDF (I mean, previously generated draft). If I edit this draft or just simply enter edit form and save, draft PDF is changed to proper one.
What am I doing in order:
- I’m creating draft invoice.
- I want to send it.
- In preview it shows me previous draft PDF.
- I’m turning back to draft invoice, opening and saving it.
- I’m trying to send again and now preview shows proper PDF file for this invoice.
- I’m creating different draft invoice.
- I’m trying to send it, and preview shows me PDF from 5. (previous draft)
- It goes infinitely…
It seems like when I’m creating draft, PDF is not being created. Then on send/preview it shows me first available PDF file, because there is no PDF file for this invoice.
Sadly I can’t reproduce it on IN Demo website. Any ideas?