Understand how reoccuring invoices work #25

Closed
opened 2021-04-07 00:20:54 +02:00 by muppeth · 3 comments
Owner

Investigate how things work. Whether reoccuring invoices are sent out or only drafts are created.

Investigate how things work. Whether reoccuring invoices are sent out or only drafts are created.
muppeth added this to the (deleted) milestone 2021-04-07 00:20:54 +02:00
muppeth added the
administration
finances
labels 2021-04-07 00:20:54 +02:00
meaz self-assigned this 2022-03-04 16:53:17 +01:00
Owner

I've done some tests.

sudo -u www-data php /var/www/akaunting/artisan recurring:check

That checks if there is a recurring invoice, creates it and sends an email to the user.

However, there is no pdf included in the email (whereas when manually sent) and the link is to http://localhost/signed/invoices/17?company_id=1&signature=49whatevernumber and doesn't work.

Also, those automatic created invoices are set as draft on Akaunting, not as Sent. So if that is a draft, why does the user receives it?

If I click on SEND, the received email has the pdf included, and a link to https://testinstance/signed/invoices/17?company_id=1&signature=7awhatevernumber which works.

I've done some tests. ``` sudo -u www-data php /var/www/akaunting/artisan recurring:check ``` That checks if there is a recurring invoice, creates it and sends an email to the user. However, there is no pdf included in the email (whereas when manually sent) and the link is to http://localhost/signed/invoices/17?company_id=1&signature=49whatevernumber and doesn't work. Also, those automatic created invoices are set as draft on Akaunting, not as Sent. So if that is a draft, why does the user receives it? If I click on SEND, the received email has the pdf included, and a link to https://testinstance/signed/invoices/17?company_id=1&signature=7awhatevernumber which works.
Owner

Also, I don't understand something about the cronjob.

On the web interface, you can set the hour to run the cronjob (php /var/www/akaunting/artisan schedule:run >> /dev/null 2>&1)

However, we are supposed to also manually add the cronjob. This means we can set up a different hour than what we set from web interface... So I don't get it.

edit: nevermind, web site says "Copy the command to your Cron Job system. Set it to run every minute."

Also, I don't understand something about the cronjob. On the web interface, you can set the hour to run the cronjob (`php /var/www/akaunting/artisan schedule:run >> /dev/null 2>&1`) However, we are supposed to also manually add the cronjob. This means we can set up a different hour than what we set from web interface... So I don't get it. edit: nevermind, web site says "Copy the command to your Cron Job system. Set it to run every minute."
Owner

There is an issue on the test instance (I've tried on prod, but couldn't reproduce it there): if you don't set recurring when creating the invoice, then, you can't add it after.

To reproduce:

  • Create an invoice
  • Save
  • Edit it
  • Set invoice
  • Save it
  • Edit it to check if recurring is still there: it is gone.
There is an issue on the test instance (I've tried on prod, but couldn't reproduce it there): if you don't set recurring when creating the invoice, then, you can't add it after. To reproduce: - Create an invoice - Save - Edit it - Set invoice - Save it - Edit it to check if recurring is still there: it is gone.
meaz closed this issue 2022-07-06 22:58:39 +02:00
Sign in to join this conversation.
No milestone
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#25
No description provided.