Search the Community
Showing results for tags 'option'.
-
Since WHM wont add it as a feature, here is the code to do it yourself... Code uses a couple Regex searches to remove the offending lines and leave your invoices squeaky clean. viewinvoice.tpl (Replace the Foreach loop) {foreach key=num item=invoiceitem from=$invoiceitems} {php} $text = preg_replace("/\:\s0\sx\s/","+",$this->_tpl_vars['invoiceitem']['description']); $text = preg_replace("/.*\+/","+",$text); $text = preg_replace("/\+.*/","",$text); $this->_tpl_vars['invoiceitem']['description'] = $text; {/php} <tr bgcolor=#ffffff><td id="invoiceitemsrow" style="border:1px solid #cccccc;border-bottom:0px;">{$invoiceitem.description}{if $invoiceitem.taxed eq "true"} *{/if}</td><td align="center" id="invoiceitemsrow" style="border:1px solid #cccccc;border-bottom:0px;border-left:0px;">{$invoiceitem.amount}</td></tr> {/foreach} invoicePDF.tpl (Replace the Foreach loop) foreach ($invoiceitems AS $item) { //These 3 lines remove 0 Quantity items, and the 4th line set the new string to the running variable $text = preg_replace("/\:\s0\sx\s/","+",$item['description']); $text = preg_replace("/.*\+/","+",$text); $text = preg_replace("/\+.*(\n?)/","",$text); $item['description'] = $text; $rowcount = $pdf->getNumLines($item['description'], 140); $pdf->MultiCell(140,$rowcount * 5,$item['description'],1,'L',0,0); $pdf->MultiCell(40,$rowcount * 5,$item['amount'],1,'C',0,0); $pdf->Ln(); } Removes 0 quantity configurable addon lines from invoices so your customers don't think they are being billed for stuff they didn't sign up for. Enjoy, -Stephen
- 3 replies
-
- configurable
- configurable options
-
(and 3 more)
Tagged with:
-
I couldn't post on the original thread because it was too old. http://forum.whmcs.com/showthread.php?16021-Ahsay-Backup-Module-and-Reseller-Option I have a few questions. I have looked around and couldn't see anything that clearly stated how this works or any listed prices. Are you still selling this module? Is it up to date? Do I have to buy the module and still pay monthly for some subscription? Do I have to use your servers or can I use my own dedicated boxes? If not/ so, what are the fees/ rates? Thank you and pardon my ignorance.
