Jump to content

Disable auto invoice generation with zero value


boogy

Recommended Posts

Hi all,

I have faced the issue below.

I have a product with recurring payment type and price 0. When a client with a negative credit balance is suspended and should be terminated while some period it can't happen because every they get an invoice with 0 value, automatically pay it and product become unsuspend.

How can I disable auto invoice generation with zero value?

Thanks in advance.

Link to comment
Share on other sites

I could be wrong but I don't think that it's possible. I faced this issue since I started to use WHMCS 11 years ago. I managed to solve it with a custom script (a tricky one due to the numerous implications) that I'm still using. I have no idea if WHMCS managed to solve this "problem" now. Anyway probably there could be other solutions. For example can you explain this?

3 hours ago, boogy said:

I have a product with recurring payment type and price 0

Why?

Link to comment
Share on other sites

6 hours ago, WHMCS ChrisD said:

@boogy is there any reason you are using a $0 charge instead of having the product set to be a Free Product?  Free Products won't generate an invoice.  This would probably be the best soltuion

Every hour money is withdrawn from the client’s credit balance by my module. if credit balance is less than zero the user will be suspended. But a product can't be terminated because of everyday client gets zero invoice and automatically pay it. After that client is unsuspended for one hour and due date is extended for one day.

I can disable it in cron but it is needed for other products. like , cron.php skip --CreateInvoices

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