Forum

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

New Discussion

Recurring invoice cron not working

Mohammad Patel   ( User )

Commented 6 years ago

Even after I run cron manually, it doesn't re create a new recurring invoice 

Batuhan Baş   ( User )

Commented 6 years ago

Hi Mohammad,


Probably time has not come for recurring invoices. Check it out.


Have a nice day!

Mohammad Patel   ( User )

Commented 6 years ago

I've set it for daily. 

Mohammad Patel   ( User )

Commented 6 years ago

hello, i need a response here please.

Mohammad Patel   ( User )

Commented 6 years ago

non existent support....

Mohammad Patel   ( User )

Commented 6 years ago

-bash-4.2# php /home/mydestination/artisan schedule:run


 


No scheduled commands are ready to run.

Mohammad Patel   ( User )

Commented 6 years ago

    /**


     * Define the application's command schedule.


     *


     * @param  \Illuminate\Console\Scheduling\Schedule  $schedule


     * @return void


     */


    protected function schedule(Schedule $schedule)


    {


        // Not installed yet


        if (!env('APP_INSTALLED')) {


            return;


        }


 


        $schedule->command('reminder:invoice')->dailyAt(setting('general.schedule_time', '09:00'));


        $schedule->command('reminder:bill')->dailyAt(setting('general.schedule_time', '09:00'));


        $schedule->command('recurring:check')->dailyAt(setting('general.schedule_time', '09:00'));


    }


 


    /**


 


>>>>>>>>>


1- why does it say "If App Not Installed"? Does recurring invoice need an App?


2- I've setup correctly as per instructions, still no cron. Invoices not generating.

Batuhan Baş   ( User )

Commented 6 years ago

Hi Mohammad,


If you try your own host plase just copy php artisan schedule:run and paste your own panel otherwise if you try your localhost please try same code with command prompt in install akaunting folder.


Have a nice day!

Mohammad Patel   ( User )

Commented 6 years ago

actually, i changed just this code and it works now.


 


 protected $commands = [


        'App\Console\Commands\CompanySeed',


        'App\Console\Commands\BillReminder',


        'App\Console\Commands\Install',


        'App\Console\Commands\InvoiceReminder',        


        'App\Console\Commands\ModuleDisable',


        'App\Console\Commands\ModuleEnable',


        'App\Console\Commands\ModuleInstall',


        'App\Console\Commands\RecurringCheck',

Bryan Nazar   ( User )

Commented 6 years ago

Hi @Mohammed I just made your tweak and no success yet, recurring invoices or bills are not working for me also. I have a AWS EC2.

Please login or register to leave a response.

Showing 1 to 10 of 24 discussions