Patty Posted January 6, 2008 Share Posted January 6, 2008 I just noticed that the late fee added to the invoice doesn't have a string on the language file: Late Fee (Added 06/01/2008 ) How can that be translated? Would it be possible to add that string to the language file or have that translated in the admin? TIA 0 Quote Link to comment Share on other sites More sharing options...
angelcosta Posted January 28, 2008 Share Posted January 28, 2008 I also want to know that! 0 Quote Link to comment Share on other sites More sharing options...
angelcosta Posted January 28, 2008 Share Posted January 28, 2008 http://forum.whmcs.com/showpost.php?p=41267&postcount=2 Found it 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted January 28, 2008 Share Posted January 28, 2008 The following as a standalone file in your WHMCS root directory should work if you call it as a cron, say.. 2 minutes after your WHMCS cron? Change "Late fee" and "Added" at the top to what you'd like them to be changed to in your language. <?PHP $latefee = "Late fee"; $added = "Added"; include("dbconnect.php"); include("includes/functions.php"); $datearray = explode("-", date("Y-m-d")); $search = array("YYYY", "MM", "DD"); $today = str_replace($search, $datearray, $CONFIG['DateFormat']); $q_search = "Late Fee (Added " . $today . ")"; $q_replace = $latefee . " (" . $added . " " . $today . ")"; mysql_query("UPDATE `tblinvoiceitems` SET `description` = '" . mysql_real_escape_string($q_replace) . "' WHERE `description` = '" . mysql_real_escape_string($q_search) . "';"); ?> 0 Quote Link to comment Share on other sites More sharing options...
WHMCS CEO Matt Posted January 28, 2008 WHMCS CEO Share Posted January 28, 2008 This won't work. If you were to change the description to not say "Late Fee" at the start of the description, on the next cron run WHMCS will add another late fee due to the previous entry not being found. Matt 0 Quote Link to comment Share on other sites More sharing options...
Nick Posted January 28, 2008 Share Posted January 28, 2008 Just another great incentive to pay up 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.