Jump to content
  • 0

Invoice Days Before Renewal


Blesta Addons

Question

From this mouth (March) all invoices generated for renewal has a date due with the same day of date billed . we have not added any plugin or touched any file from weeks now . also blesta version is the same from a long time ago (we are in 4.5.2) , our case is the fallowing .

Invoice Days Before Renewal (10 Days) .

ll invoices generated in 2-3-2020 has the billed date 2-3-2020 and due date is 2-3-2020 (normally it should be 12-3-2020).

we have this option for so many years and is working as it should be .

the issue has begin from first march (1-3-2020) . there are no errors log files .

any thing we should look into ?

 

 

 

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

That behavior usually only happens when the cron catches up on creating invoices for services it missed in the past, such as in the case when the cron has not been running each day. Has your cron been creating invoices for renewing services each day like it should? Did anything change on March 1st related to the cron? You might check the cron logs in Blesta to see that it has run the "Create Invoice" task each day as expected.

You should also check that the server time is accurate, and that the "inv_days_before_renewal" setting exists for the client group/company of the client the invoice was created for.

If you suspect this issue to continue the next time invoices are generated for renewing services, find one of those services and ensure the services renew date is >= 10 days from now.

If you have a chance to debug prior to the cron running the "Create Invoice" task, you can fetch all of the renewing services and check that each has a 'date_renews' 10 days in the future.

$services = $this->Services->getAllRenewing($client_group->id);

// Fetch all renewing services for client group #1
$client_group_id = 1;
$services = $this->Services->getAllRenewing($client_group_id);

// Output and check each service's 'date_renews' to ensure they are at least 10 days in the future
print_r($services);

 

Link to comment
Share on other sites

  • 0

Hi Tyson, 

I have a similar question. Let's say a recurring service has Date Renews on 1 July 2020. Does this mean a recurring invoice will show : Date Billed on 1 July 2020 and also Date Due on 1 July 2020? How do you change Date Due to 20 July 2020 for this recurring invoice?

Link to comment
Share on other sites

  • 0
13 hours ago, Tjw said:

Hi Tyson, 

I have a similar question. Let's say a recurring service has Date Renews on 1 July 2020. Does this mean a recurring invoice will show : Date Billed on 1 July 2020 and also Date Due on 1 July 2020? How do you change Date Due to 20 July 2020 for this recurring invoice?

I have got the explanation from Paul and I will also submit this as a feature request. Thanks.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...