Jump to content
Sign in to follow this  
SeanP

Pay reoccurring invoices on due date using credit

Recommended Posts

So, we have a client that has a lot of services will all different due dates.  They requested a way to minimize the number of credit transactions each month, and we recommended the "Add Funds" feature.  So, they have added a bunch of credit to their account to be used for their reoccurring invoices.  The problem is, they want the credit to be applied to the invoice when the invoice is due, not when it is created.  I have disabled the "Automatic Credit Use" option, as that only works to apply the credit when the invoice is generated.  Is there a way (with a hook or cron script) to pay invoices with credit on their due date, if the client has credit in their account?  I assume this was how WHMCS worked by default.

Share this post


Link to post
Share on other sites

Using the DailyCronJob hook would do the trick but you would need to go through all accounts, or the accounts you want, and check their available credit and then apply credit via that API call for the invoice to be paid in full. 

Share this post


Link to post
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.

Sign in to follow this  

  • 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