[Akaunting] - Fix reminders #305

Closed
opened 2022-07-06 22:51:52 +02:00 by meaz · 6 comments
Owner

For some reason, I can't have reminders to be sent on test instance. I create an invoice, don't pay it, but I don't get an email to remind me to pay it, even though I enabled and set this in the test instance settings.

I have tried artisan schedule:run and artisan reminder:invoice, but it doesn't mae any difference.

For some reason, I can't have reminders to be sent on test instance. I create an invoice, don't pay it, but I don't get an email to remind me to pay it, even though I enabled and set this in the test instance settings. I have tried `artisan schedule:run` and `artisan reminder:invoice`, but it doesn't mae any difference.
meaz added this to the 07.22 - July-August milestone 2022-07-06 22:51:52 +02:00
meaz added the
bug
administration
finances
labels 2022-07-06 22:51:52 +02:00
muppeth was assigned by meaz 2022-07-06 22:51:52 +02:00
Owner

I saw there is a new major version (3.0) released and quick glace at documentation shows the scheduled events are handled differently to 2.1 version. I have updated to latest 2.1 but 3.0 needs php8. I started a branch for php8 in host_vars but gonna hit the bed now. I will contirnue tomorrow, run update to latest ver of akaunting (its always tricky this one, as I had issues updating to minor now even) and will try to see what's up and how to fix it. Wish me luck. I will keep you posted.

I saw there is a new major version (3.0) released and quick glace at documentation shows the scheduled events are handled differently to 2.1 version. I have updated to latest 2.1 but 3.0 needs php8. I started a branch for php8 in host_vars but gonna hit the bed now. I will contirnue tomorrow, run update to latest ver of akaunting (its always tricky this one, as I had issues updating to minor now even) and will try to see what's up and how to fix it. Wish me luck. I will keep you posted.
Author
Owner
Check https://git.disroot.org/Disroot-Ansible/akaunting/pulls/4 for php8
Owner

I think this is ready and tested on test instance. Looks to be working fine. The main problem (and I think this includes also reoccuring job not launching) is that akaunting works using UTC timezone and I as far as see the change would require change in the code. So when using CEST timezone on the OS level, when launching cronjob not at the time when scheduled jobs should be run, it will skip reminders and reoccuing.

Running the job at the same time as it should be run according to UTC, solves this problem seems like.
I haven't create ton of invoices so something for @antilopa and @meaz to check whether it works as expected.

I think this is ready and tested on test instance. Looks to be working fine. The main problem (and I think this includes also reoccuring job not launching) is that akaunting works using UTC timezone and I as far as see the change would require change in the code. So when using CEST timezone on the OS level, when launching cronjob not at the time when scheduled jobs should be run, it will skip reminders and reoccuing. Running the job at the same time as it should be run according to UTC, solves this problem seems like. I haven't create ton of invoices so something for @antilopa and @meaz to check whether it works as expected.
muppeth added this to the (deleted) project 2022-07-15 02:00:10 +02:00
Author
Owner

@muppeth I did some tests, I can confirm than both recurring and reminders work on test instance.

@muppeth I did some tests, I can confirm than both recurring and reminders work on test instance.
Owner

@meaz great. I will apply the fix to the prod setting and update to latest akaunting then.

@meaz great. I will apply the fix to the prod setting and update to latest akaunting then.
Owner

#306 should be fixing it.

#306 should be fixing it.
Sign in to join this conversation.
No project
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Disroot/Disroot-Project#305
No description provided.