Klangaroo Posted November 27, 2009 Share Posted November 27, 2009 If a customer has credit on their account, and they then generate an invoice, the credit doesn't appear to automatically be applied to the invoice. This is fine, as the user might want to save up their credit, but i do all of my interactions with WHMCS using the API and the database directly and there doesnt appear to be an API function for moving credit around. You can give a client credit, but you can't do anything with it. Or can you? I can't work out how to apply a customer's existing credit to an invoice. 0 Quote Link to comment Share on other sites More sharing options...
Klangaroo Posted November 27, 2009 Author Share Posted November 27, 2009 nevermind, i wrote my own function for it. 0 Quote Link to comment Share on other sites More sharing options...
btriem Posted January 20, 2010 Share Posted January 20, 2010 Klangaroo, would you mind either outlining the steps in your function or providing your function? I'm in the same pickle. I can add/subtract a clients credit via the API, but not apply the credit to an invoice. I too can drive that horse from the backend with a function but I just want to make sure my thoughts on doing this are similar/same to the direction you took. Thanks, Brad 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.