Jump to content

Regenerate Deleted Invoices


davet

Recommended Posts

There's a huge flaw with the logic involved in generating invoices. I've opened a ticket with Matt who has not been very helpful with this.

 

I highly disagree that this is a "feature". It's more like a flaw with the way invoices are generated. I opened this thread to get some feedback from other members to see if we can get this flaw fixed.

 

Here's the problem...

 

If an invoice is deleted for a product, WHMCS will stop generating all future invoices for that product unless you change the expiration date of the product. Or you must first delete each line item of the invoice and then delete the invoice in order for it to re-generate future invoices.

 

Matt ask me "what's the point of a delete function when the next time the cron runs it just comes straight back? "

 

Here's my responses:

 

the point of a delete function is to delete any incorrectly created invoices so we can then re-generate the correct invoice.

 

What's the point of "Generate Due Invoices for this User" when it doesn't actually generate invoices that are due (if a previous invoice was deleted)?

 

The delete function should only delete the invoice, it shouldn't delete and never create future invoices for the product. This doesn't make sense.

 

If we didn't want an invoice created we'd remove the product or adjust the expiration date of the product.

 

Has anyone else had a problem with this?

Link to comment
Share on other sites

The logic makes sense to me, but perhaps some kind of marker should be applied to the account so it's possible to tell where this logic has been applied.

 

I know I have deleted some invoices in the past and it would certainly be handy to know if future invoices will be generated.

Link to comment
Share on other sites

The logic makes sense to me, but perhaps some kind of marker should be applied to the account so it's possible to tell where this logic has been applied.

 

I know I have deleted some invoices in the past and it would certainly be handy to know if future invoices will be generated.

 

Like a javascript popup to confirm?

 

Go to Configuration > General Settings > Invoices - take a look at the first tick box.

Or something like that?

Link to comment
Share on other sites

  • 4 weeks later...

Hi, the CONFIGURATION->GENERAL->INVOICES doesn't do it for me. :( I've just ran into the same issue (that is, I deleted a customer invoice in order to change the renewal term from 1 year to 5 years - but now can't re-create an invoice for them). I agree that this is a strange 'feature'.

 

At the least, it would be good that when I delete an invoice, it should ask "would you like to suspend all future charges for these items", or at least a warning "NOTE: This will suspend all future charges for items on this invoice, are you sure you want to delete it?" To simply delete the invoice and also suspend all future charges isn't a 'feature' I want. :)

 

Alternatively, since there is a 'Status' item on the domain, deleting the invoice maybe should change the status to 'charges suspended' or something like that. As it is, the status remains 'Active', but the domain isn't really active exactly. Or the addition of a 'reactivate charges for this item' button that shows up on items that have had their charges suspended... I don't know for sure, but the current method of killing all future charges isn't a good method. :)

 

Thanx,

Todd

Link to comment
Share on other sites

Just a follow up question...

 

OK - When I delete the invoice for the Jun11th item, it also deleted the charges for this item on this date (as mentioned above). BTW, I do notice that it says 'no invoice will be generated for this date' in the confirmation popup, but that wasn't really clear that this would or should kill charges in tis way. :)

 

In any case, I used the work-around and changed the renewal date to June10th (plus changed the registration term to 5 years, which was the point of the exercise) and 'generated due invoices for this customer' - but I didn't realize it was going to generate them a $6.99 invoice for all 5 years. :( I deleted that invoice, change the recurring amount to $34.95 (5 years worth) and changed the domain's date Jun11th.

 

Then I did a 'generate due invoices' again, but no invoice was generated. I changed it to Jun12th, and regenerated and I finally had my 5 year renewal invoice.

 

SO, my question is... are June 10th and June 11th permanantly broken for this domain now - or just June 10 & 11, 2008? In 5 years time, will June 11th still be broken?

 

Thanx, Todd

Link to comment
Share on other sites

you just have to change the date

you can then save and change it straight back again ;)

 

its simply that the way the system knows *not* to reproduce an invoice is that there is an internal field holding the date the invoice is next to be created on - setting a the expiry date back one day changes it.

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