Skip to content

PDF URLs #1142

Open
invoice-crater/crater
#6
@chestnutbak

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.

Screenshots
image

Please complete the following information:

  • Crater version: 6.0.6
  • PHP version:
  • Database type and version:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions