Results 1 to 8 of 8

Thread: Check for cedit after invoice created and before suspending

  1. #1

    Default Check for cedit after invoice created and before suspending

    Ok let me preface that this is of no fault of WHMCS but my own. However I thought it might be a worthwhile addition to the software.

    Making it short here. I had a client whose invoice had just been generated. Then there was an issue with a false positive on a scan I ran which removed a file from his site(a known issue but I forgot to include the excludes file to the scan). He caught it 12 hours later and so I issued him a credit for the next month to be free. I hadn't realized the invoice had already been generated(as I said an oversight on my part). So tonight he was suspended for non-payment but luckily I caught it in my email sent to my phone 10 minutes after it happened. He was "luckily" understanding over the matter.

    So I was thinking maybe a check could be run before an account is suspended to see if the users credit amount has changed? This could also be useful not just for a stupid mistake like I made but also if a customer was to just deposit a larger amount of money(than the due invoice say to pay for 3 months ahead) into his account assuming it would take care of a due invoice already.

    Well thanks for reading. Either way I myself will be more careful

  2. #2
    Join Date
    May 2008
    Location
    Swindon, UK
    Posts
    430

    Default

    This would be a nice (and very simple) option to add.

    Could probably add this to hooks or cron.

  3. #3
    Join Date
    Feb 2007
    Location
    London, United Kingdom.
    Posts
    3,891

    Default

    The client could have applied the credit themselves to the invoice (as could you) - it does show on the summary any unpaid invoices - the same page it goes back to after you give them the credit

    But yes, it's something you can do with a hook or cron/api
    Rob Golding UK Web Hosting est 1996 - Cloud/VPS/Servers in own UK London Docklands DataCentre - ICANN Accredited Registrar (PM me for a free WHMCS domain reseller module)
    WHMCS Modules: Registrars:CentralNIC, RRPProxy, AstutiumDomains, Cacti Bridge, APC/Raritan Power Control, Linux-Ensim, DNS Manager, VAT Reports, Samba Control

  4. #4

    Default

    Quote Originally Posted by othellotech View Post
    The client could have applied the credit themselves to the invoice (as could you) - it does show on the summary any unpaid invoices - the same page it goes back to after you give them the credit
    Thanks but I did say it was pretty much our fault. I just thought it would be nice to add it as a check before an account is suspended.

  5. #5
    Join Date
    Feb 2010
    Location
    United Kingdom
    Posts
    608

    Default

    as far as i am aware whmcs already has a way to apply credit automatically. but if not, look at the action hooks in the documentation, there are hooks that run prior to module execution you can use these to do all the checks you want and decide accordingly

  6. #6
    Join Date
    Aug 2006
    Location
    Johannesburg, South Africa
    Posts
    1,025

    Default

    I agree, it would be nice to have credit automatically applied to previously generated invoices (currently WHMCS only automatically applied credit to future generated invoices), and account not suspended when there's credit.

  7. #7
    Join Date
    Feb 2010
    Location
    United Kingdom
    Posts
    608

    Default

    Quote Originally Posted by SoftDux View Post
    I agree, it would be nice to have credit automatically applied to previously generated invoices (currently WHMCS only automatically applied credit to future generated invoices), and account not suspended when there's credit.
    my apologies, i didnt fully read your post obviously, i missed the "previous" part. May i ask why you would want to do this? if the client has credit, it will be applied per your settings, and if not, then when they make a payment it will be for the invoice anyway? in your case you added the credit manually, so add it to the invoice in stead, or "add a payment"? i cant see a major call for this to be fair
    Last edited by disgruntled; 06-14-12 at 06:54 PM.

  8. #8
    Join Date
    Aug 2006
    Location
    Johannesburg, South Africa
    Posts
    1,025

    Default

    Quote Originally Posted by disgruntled View Post
    my apologies, i didnt fully read your post obviously, i missed the "previous" part. May i ask why you would want to do this? if the client has credit, it will be applied per your settings, and if not, then when they make a payment it will be for the invoice anyway? in your case you added the credit manually, so add it to the invoice in stead, or "add a payment"? i cant see a major call for this to be fair
    You know what, you're right we don't need this. What's the point of asking for a feature enhancement if everyone feels it's unnecessary