Description
Describe the bug
We have an issue where the incorrect PDF gets loaded when trying to view specific invoices.
Here are the links to the different invoices:
https://example.com/invoices/pdf/7PVveOmgj7pqgrNLRG16
https://example.com/invoices/pdf/7PVveOmgj7PqgrNLRG16
Notice how there is only a capital P or p difference in the URL... I can only assume this is causing the issue because I can't see what else it might be.
When we check the local storage both PDFs are there with their unique numbers.
In this instance the invoice we are loading is number 709 but the one that shows up is 685.
Our numbering is: Receipt - 2022-23/00685
Also... This is not the first time this has happened but I cannot find the other numbers and URLs that it happened with as they were deleted from the system.
Expected behavior
The correct PDF gets loaded when viewing every invoice.
Please complete the following information:
- Crater version: 6.0.6
- PHP version:
- Database type and version:
Activity