Jump to content

What triggers invoice creation and renewal mails


weba

Recommended Posts

Hi,

 

I am very busy with discovering and implementing WHMCS.

 

QUESTION 1:

I create an order manually with an invoice with create and duedate today.

Then I run the cron, Invoice is correct created. Then I delete the invoice.

I run the cron again but no invoice is created.

I guess somewhere there is a status that it is invoiced already although the invoice is gone. Where is that and what checks are performed for that ? How can I change it so that the cron will create the invoice again.

 

 

QUESTION 2:

When I enable the renewal reminder I get an email reminder when I run the cron. But when I run the cron again I get the reminder again. How does this work, I should be able to run the cron more then once should I ?

 

QUESTION 3:

When the invoice is created in the cron or manually the Due date is not set one year ahead(all my products are one year). Only when the payment is made the due date is change to the next year. How can I change this ?

 

I hope some of you have answers. In time I hope to provide answers myself to others ;-)

 

Regards,

Michel

Link to comment
Share on other sites

ABOUT QUESTION 1:

In the hosting table I found these fields: nextinvoicedate and nextduedate.

 

1) Nextinvoicedate contains the date next year but is not visible on the screen, only in the DB.

2) When I cancel or delete an invoice these fields do not change. Thats ok.

3) When I save the product data(not changing the nextduedate the fields do not change)

4) When I change the nextduedate to yesterday the nextinvoicedate changes also.

 

Is there any description about this behavour ?

Link to comment
Share on other sites

I create an order manually with an invoice with create and duedate today.

Then I run the cron, Invoice is correct created. Then I delete the invoice.

I run the cron again but no invoice is created.

1. dont delete invoices, mark them as *cancelled*

2. why would you want the cron recreating an invoice you *manually* removed ?

 

 

But when I run the cron again I get the reminder again. How does this work, I should be able to run the cron more then once should I ?

The cron should be run once per day

 

 

When the invoice is created in the cron or manually the Due date is not set one year ahead(all my products are one year). Only when the payment is made the due date is change to the next year. How can I change this ?

You dont change it, this is the correct behaviour, until they pay for the next year, they still have a due date ...

Link to comment
Share on other sites

2. why would you want the cron recreating an invoice you *manually* removed ?/QUOTE]

I am testing to see the behaviour of WHMCS. If I delete(or just cancel) an invoice and set back the renew date I expected the invoice to be recreated. I did not understand why it was not recreated since the due date was changed back. But I found the nextinvoicedate in the mysql db.

 

The cron should be run once per day

Normaly yes; but running it twice should not cause problems or different beheaviour .

 

You dont change it, this is the correct behaviour, until they pay for the next year, they still have a due date ...

Hmm. Have to get used to this I guess. What I realy miss then in the nextinvoicedate in the screen.

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
Reply to this topic...

×   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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated