Forum

Ask, reply and learn. Join the community of Akaunting.

New Discussion

Recurring invoices are not created

John Sinclair   ( User )

Commented 5 years ago

Hi,


I'm using the current version (1.3.16, selfhosted).


I created an invoice that should recure daily.


The cronjob is setup correctly (every minute...), but the new invoice is not created.


Are there any checks before creating the new invoice that might interfere? (like, previous invoice needs to be sent or something)


When I run "php artisan schedule:run" at the exact time the scheduling is configured for, I still get "No scheduled commands are ready to run."
Shouldn't this be doing something?


When I run "php artisan recurring:check" as suggested here "https://akaunting.com/forum/discussion/general/cron-job" the script seems to work for a few seconds, but nothing else happens.
The invoice is not created and no output is visible on the console.


I saw quite a few posts in the forums regarding the recurring invoices, but didn't find any solution.
Is this still a bug / known issue?
Some other posts suggested that it would be fixed in 1.3


I'd be glad for any suggestion/help.


Cheers!

Marco Bridge   ( User )

Commented 5 years ago

I would suggest to enable debug and check the storage/logs/laravel.log file.


https://akaunting.com/docs/developer-manual/debug

Sven Neumann   ( User )

Commented 4 years ago

I just made a Pull Request mybe concerning the issue.


 


Did you change your companies timezone by any change?


 


Having a timezone different to your servers timezone will make the recurring invoices not work.


 


https://github.com/akaunting/akaunting/pull/832

Chinedu Obi   ( User )

Commented 3 years ago

Hi,

I had the same problem for days until I decided to take full control of the cron job from my shared hosting cpanel.

So in order to get the recurring invoice and invoice and bill reminders to work without errors, simply create 3 different cron jobs and set them to run once per day. You can set the jobs to run at a particular hour. For example, 0,4,*,*,* means the cron job will run at 4am server time everyday.

So for the recurring invoice cron job, use the following command
/usr/local/bin/php /path_to_akaunting/artisan recurring:check >> /dev/null 2>&1

For the invoice reminder cron job, use the following command
/usr/local/bin/php /path_to_akaunting/artisan reminder:invoice >> /dev/null 2>&1

For the bill reminder cron job, use the following command
/usr/local/bin/php /path_to_akaunting/artisan reminder:bill >> /dev/null 2>&1

I hope it helps someone.

Best Regards

Nikhil John Stephen Pushpagiri   ( User )

Commented 1 year ago

Hi, I had the same issue with Akaunting 2.1.28 and Chinedu Obi's solution from above worked to solve the problem. Thank you.

Please login or register to leave a response.

Showing 1 to 5 of 5 discussions