[Akaunting] - Fix recurring on prod #306

Closed
opened 2022-07-06 22:55:25 +02:00 by meaz · 5 comments
Owner
  • Remove recurring from invoices in DB

  • Set the cronjob (artisan schedule:run didn't work when I tested on test instance, but artisan recurring:check worked)

  • Check / enable recurring settings on Akaunting

  • Create a fake invoice to test

- [x] Remove recurring from invoices in DB - [x] Set the cronjob (`artisan schedule:run` didn't work when I tested on test instance, but `artisan recurring:check` worked) - [x] Check / enable recurring settings on Akaunting - [x] Create a fake invoice to test
meaz added this to the 07.22 - July-August milestone 2022-07-06 22:55:25 +02:00
meaz added the
administration
finances
labels 2022-07-06 22:55:25 +02:00
muppeth was assigned by meaz 2022-07-06 22:55:25 +02:00
meaz self-assigned this 2022-07-06 22:55:25 +02:00
Author
Owner

You can check those:

You can check those: - https://git.disroot.org/Disroot/Disroot-Project/issues/24 - https://git.disroot.org/Disroot/Disroot-Project/issues/25
Author
Owner

There is an issue I forggot about that I've jsut found again @muppeth @antilopa :

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

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 there is on when "manually" sent) and the link is to http://localhost/signed/invoices/17?company_id=1&signature=49whatevernumber and doesn't work (but perhaps because it is the test instance?).

Also, those automatic created invoices are set as Draft on Akaunting, not as Sent. But if that is a draft, why does the user receives it? It should be set as Drat imo.

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

There is an issue I forggot about that I've jsut found again @muppeth @antilopa : ``` sudo -u www-data php /var/www/akaunting/artisan recurring:check ``` 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 there is on when "manually" sent) and the link is to http://localhost/signed/invoices/17?company_id=1&signature=49whatevernumber and doesn't work (but perhaps because it is the test instance?). Also, those automatic created invoices are set as **Draft** on Akaunting, not as **Sent**. But if that is a draft, why does the user receives it? It should be set as Drat imo. If I click on SEND, the new received email has the pdf included, and a link to https://testinstance/signed/invoices/17?company_id=1&signature=7awhatevernumber which works.
muppeth added this to the (deleted) project 2022-07-15 01:57:21 +02:00
Owner

I think it's ready and should work but please @meaz @antilopa do test it to be sure.

I think it's ready and should work but please @meaz @antilopa do test it to be sure.
Author
Owner

I have created a recurring invoice. I did receive the first invoice on my email (I'll see if I get the recurring tomorrow as I set it as daily creation). But I don't understand something: when I check this invoice as an admin, it is marked as "This is a DRAFT invoice and will be reflected to charts after it gets sent." as it was sent... Any idea @antilopa ? Have you seen the same behavior?

Also, the cron is apparently set to be run at 9am, but I received the invoice at 11am. Not a big deal, I just wanted @muppeth to know...

I have created a recurring invoice. I did receive the first invoice on my email (I'll see if I get the recurring tomorrow as I set it as daily creation). But I don't understand something: when I check this invoice as an admin, it is marked as "This is a DRAFT invoice and will be reflected to charts after it gets sent." as it was sent... Any idea @antilopa ? Have you seen the same behavior? Also, the cron is apparently set to be run at 9am, but I received the invoice at 11am. Not a big deal, I just wanted @muppeth to know...
Author
Owner

I created an issue for the "Draft"/"Sent" problem: https://github.com/akaunting/akaunting/issues/2626
and for the 'Viewed" notification one https://github.com/akaunting/akaunting/issues/2627

Otherwise recurring works.

I created an issue for the "Draft"/"Sent" problem: https://github.com/akaunting/akaunting/issues/2626 and for the 'Viewed" notification one https://github.com/akaunting/akaunting/issues/2627 Otherwise recurring works.
meaz closed this issue 2022-09-15 15:01:21 +02:00
Sign in to join this conversation.
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#306
No description provided.