Recurring Invoice Creation Issue #1757

This commit is contained in:
Hillel Coren 2017-12-10 14:08:49 +02:00
parent d708ec4aee
commit bd5ec5f5c5
2 changed files with 3 additions and 3 deletions

View File

@ -40,7 +40,7 @@ trait HasRecurrence
$monthsSinceLastSent = ($diff->format('%y') * 12) + $diff->format('%m');
// check we don't send a few hours early due to timezone difference
if (Carbon::now()->format('Y-m-d') != Carbon::now($timezone)->format('Y-m-d')) {
if (Utils::isNinja() && Carbon::now()->format('Y-m-d') != Carbon::now($timezone)->format('Y-m-d')) {
return false;
}

View File

@ -6,11 +6,11 @@ Review the `.env.example <https://github.com/invoiceninja/invoiceninja/blob/mast
Recurring invoices and reminder emails
""""""""""""""""""""""""""""""""""""""
Create a cron to call the ``ninja:send-invoices`` command **hourly** and ``ninja:send-reminders`` command **once daily**.
Create a cron to call the ``ninja:send-invoices`` and ``ninja:send-reminders`` commands **once daily**.
.. code-block:: shell
0 * * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-invoices
0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-invoices
0 8 * * * /usr/local/bin/php /path/to/ninja/artisan ninja:send-reminders
Email Queues