How recurring invoices works?

Hi there,

I want to use recurring invoices module potential. Problem is, it seems to not working or I’m missing the point. I will describe two cases for better understanding.

In both cases cron is running every minute.

  1. I created recurring invoice and set first send date on three days ago. From my observation any invoice wasn’t created or sent.
  2. I created another recurring invoice with first send date on current day. Nothing happened too.

Is this because of first send date? Should I set first send date on future date? Maybe it hints for my cron not working as intented? Or some queue issue?

My cron command: * * * * * cd /home/nnplzibn/public_html/ninja && /opt/alt/php74/usr/bin/php -d register_argc_argv=On artisan schedule:run >> /dev/null 2>&1

Installed from Softaculous on Shared Hosting.

I needed to run command php artisan ninja:send-recurring. Is this not part of schedule:run?

Also on other installation, I can’t run ninja:send-recurring. Most possibly it is bug, so I added issue on GitHub: Can’t send recurring invoices · Issue #5483 · invoiceninja/invoiceninja (github.com)

Hi,

Thanks for reporting this, we’ll follow up on GitHub

So, is send-recurring part of schedule:run?

Correct, in v5 all crons are handled by the schedule:run command.