Jump to content

ehuk

Retired Forum Member
  • Posts

    89
  • Joined

  • Last visited

About ehuk

ehuk's Achievements

Member

Member (2/3)

0

Reputation

  1. This is a small 'hack' which will add the statement "This supply is subject to the reverse charge." to the bottom of PDF invoices if the customer is in an EC state and there is no tax applied to the invoice (i.e. the tax is reverse charged). This is required for EC invoices and something that WHMCS doesn't do out of the box. Its not very elegant, but it does work. As we are UK Based, the United Kingdom is isn't in the country array, so if you are based in Germany, add UK and remove Germany. Customize as you will. Simply add this to the bottom of invoicepdf.tpl: function wordsExist(&$string, $words) { foreach($words as &$word) { if(stripos($string, $word) !== false) { return true; } } return false; } $reverse_charge = $clientsdetails["country"]; # Show reverse charge text if country matches array AND there is no tax rate if( wordsExist($reverse_charge, array('Austria','Belgium','Bulgaria','Croatia','Cyprus','Czech Republic','Denmark','Estonia','Finland','France','Germany','Greece','Hungary','Ireland','Italy','Latvia','Lithuania','Luxembourg','Malta','Netherlands','Poland','Portugal','Romania','Slovakia','Slovenia','Spain','Sweden')) && !$taxrate ) { $pdf->SetFont('freesans','',14); $pdf->Ln(10); $pdf->Cell(180,4," This supply is subject to the reverse charge.",'','','C'); } Hope this helps.
  2. If you are happy using LDAP instead of full AD integration, we have our staff login using their AD creds using this module: https://www.busyrack.com/ldap-authentication-for-whmcs-admin/ Works well.
  3. Yup, "/home/noc/public_html/" is our WHMCS root.
  4. Hi Guys, Has anyone used the Kayako V3 import script lately? Last Monday (06/05/2013) we switched over from Kayako V3 to the WHMCS built in system, and tried to run the import script which fails every time and throws errors such as: Step 3 - Data Import Importing Predefined Reply Categories Notice: Undefined variable: db_host in /home/noc/public_html/kayakoimport.php on line 0 Notice: Undefined variable: db_username in /home/noc/public_html/kayakoimport.php on line 0 Notice: Undefined variable: db_password in /home/noc/public_html/kayakoimport.php on line 0 Warning: mysql_connect(): Access denied for user 'noc'@'localhost' (using password: NO) in /home/noc/public_html/kayakoimport.php on line 0 Notice: Undefined variable: db_name in /home/noc/public_html/kayakoimport.php on line 0 So, there are some incorrect variables for the DB connection string, or perhaps the configuration.php is not called into this file. I have contacted WHMCS support and I am less than impressed. We have been a client since 2008 and never had problems in the past, however since raising this ticket on 06/05/2013 (#YFI-541516) we have only had 1 reply asking for login details (09/05/2013), and nothing since. It has been a week now, clients are wondering where their tickets are, and no matter how many times I ask for an update, WHMCS seem to ignore it. Needless to say we are getting increasingly frustrated, and now I am resorting to a public forum in the hope that perhaps someone from WHMCS will respond to my ticket, or someone has a working import script? I look forward to any suggestions! Thanks.
  5. Hi There, Very interested in this, is it possible / is it on your roadmap to use vCenter to find which host the VM is on? We use DRS and vMotion so obviously at any one point a VM can change host. Is this a feature you would look into adding? Many Thanks.
  6. Have you setup rsync to get the graphs from your cacti machine to the /graphs/ folder? Is the custom field working correctly? Emerson I have only recently played around with your script and it worked perfectly! Many thanks.
  7. Hi Guys, I am looking for someone to help create a module for HSBC E-Payments, if anyone is interested or has any suggestions please let me know! On a similar note, would anyone else be interested in running the module? I am looking at dumping Worldpay, and the HSBC system seems to good to be true! Any input would be appreciated.
  8. I would happily pay for this... Very useful tool to provide free DNS to clients without having to give them a WHM account.
  9. We are having exactly the same issue and need to send out an email ASAP. Any ideas?
  10. WHMCS Admin -> Setup -> Payment Gateways -> Make Sure: Force One Time Payments Force Subscriptions is unticked
  11. Your missing the "Cache" field when adding servers on 1.1 Other than that very nice simple script! I am just running through customising it for our use.
×
×
  • 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