The customer statement produced has 2 errors, both on the statement date:
it does not follow the format set under settings-localization-date format
the date is completely incorrect, currently showing 2022-06-30 when it should be 04/11/2022
Other dates on the invoice are the correct format and date. Is there any way to edit this statement pdf the way we can edit the invoice design? or at least correct the incorrect date and format?
Please advise.
EDIT: the statement referenced above is viewed through the admin area under client name -view statement
The statement viewed through the client portal is different - it has the correct date, incorrect localization format, and lacks the payments and total amount paid listed on the admin statement above
On the view statement page there is a date ranger selector at the top of the screen, the date on the statement shows the end of the default date range.
I’m looking into this now, i am comparing the statements side by side and I don’t see any differences between those generated between the client portal and admin portal.
Also, the dates are localized for me the same as the settings on Settings > Localization
Thank you for the effort. This appears to be fixed, and the date is now localized, however it seems to be 1 day ahead. I believe my server is only a few hours different from my location. Could the program be displaying the statement date one day ahead?
I don’t think so. When I run “date” from the terminal it shows the proper/same date for where I am. When I run the client statement from Invoice Ninja, it shows the next day.
Please advise.
Usually server configurations assume that the server is configured at +0 UTC, so i think this may be the issue you are seeing as setting it to a different value would change the calcuations.
You may be able to work around this by editing the config/app.php file and setting
I will look into this.
If this is the case, then why would all the other dates (payments, invoices, etc) match correctly? Why is only the statement run date one day ahead?
Update: editing the config/app.php file for the timezone does indeed seem to correct the statement date being one day ahead. I assume we will loose this setting with each update of the software, yes? If so, is it possible to set that config to default to the server timezone?