Jump to content

djwmguk

Member
  • Posts

    19
  • Joined

  • Last visited

About djwmguk

djwmguk's Achievements

Junior Member

Junior Member (1/3)

0

Reputation

  1. Hey All, I'm looking to add my BACS bank details allowing people to make direct payments via the bank system however I cannot work out where I would need to add this. I know it has to be in "invoicepdf.tpl" however where? <?php # Logo $pdf->Image(ROOTDIR.'/images/logo.jpg',20,25); # Company Details $pdf->SetFont('helvetica','',13); $pdf->Cell(0,6,trim($companyaddress[0]),0,1,'R'); $pdf->SetFont('freesans','',; for ( $i = 1; $i <= count($companyaddress); $i += 1) { $pdf->Cell(0,4,trim($companyaddress[$i]),0,1,'R'); } $pdf->Ln(5); # Header Bar $invoiceprefix = $_LANG["invoicenumber"]; /* ** This code should be uncommented for EU companies using the sequential invoice numbering so that when unpaid it is shown as a proforma invoice ** if ($status!="Paid") { $invoiceprefix = $_LANG["proformainvoicenumber"]; } */ $pdf->SetFont('helvetica','B',15); $pdf->SetFillColor(239); $pdf->Cell(0,8,$invoiceprefix.$invoicenum,0,1,'L','1'); $pdf->SetFont('helvetica','',10); $pdf->Cell(0,6,$_LANG["invoicesdatecreated"].': '.$datecreated.'',0,1,'L','1'); $pdf->Cell(0,6,$_LANG["invoicesdatedue"].': '.$duedate.'',0,1,'L','1'); $pdf->Ln(10); $startpage = $pdf->GetPage(); # Clients Details $pdf->SetFont('helvetica','B',10); $pdf->Cell(0,4,$_LANG["invoicesinvoicedto"],0,1); $pdf->SetFont('helvetica','',; if ($clientsdetails["companyname"]) { $pdf->Cell(0,4,$clientsdetails["companyname"],0,1,'L'); $pdf->Cell(0,4,$_LANG["invoicesattn"].": ".$clientsdetails["firstname"]." ".$clientsdetails["lastname"],0,1,'L'); } else { $pdf->Cell(0,4,$clientsdetails["firstname"]." ".$clientsdetails["lastname"],0,1,'L'); } $pdf->SetFont('helvetica','',; $pdf->Cell(0,4,$clientsdetails["address1"],0,1,'L'); if ($clientsdetails["address2"]) { $pdf->Cell(0,4,$clientsdetails["address2"],0,1,'L'); } $pdf->Cell(0,4,$clientsdetails["city"].", ".$clientsdetails["state"].", ".$clientsdetails["postcode"],0,1,'L'); $pdf->Cell(0,4,$clientsdetails["country"],0,1,'L'); $pdf->Ln(10); $pdf->SetDrawColor(200); $pdf->SetFont('helvetica','B',10); $pdf->SetFillColor(239); $pdf->Cell(140,7,$_LANG["invoicesdescription"],1,0,'C','1'); $pdf->Cell(40,7,$_LANG["invoicesamount"],1,0,'C','1'); $pdf->Ln(); $pdf->SetFont('helvetica','',10); foreach ($invoiceitems AS $item) { $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(); } $pdf->SetFont('helvetica','B',10); $pdf->Cell(140,7,$_LANG["invoicessubtotal"],1,0,'R','1'); $pdf->Cell(40,7,$subtotal,1,0,'C','1'); $pdf->Ln(); if ($taxname) { $pdf->Cell(140,7,$taxrate."% ".$taxname,1,0,'R','1'); $pdf->Cell(40,7,$tax,1,0,'C','1'); $pdf->Ln(); } if ($taxname2) { $pdf->Cell(140,7,$taxrate2."% ".$taxname2,1,0,'R','1'); $pdf->Cell(40,7,$tax2,1,0,'C','1'); $pdf->Ln(); } $pdf->Cell(140,7,$_LANG["invoicescredit"],1,0,'R','1'); $pdf->Cell(40,7,$credit,1,0,'C','1'); $pdf->Ln(); $pdf->Cell(140,7,$_LANG["invoicestotal"],1,0,'R','1'); $pdf->Cell(40,7,$total,1,0,'C','1'); $pdf->Ln(); $pdf->Ln(); if ($notes) { $pdf->SetFont('helvetica','',; $pdf->MultiCell(170,5,$_LANG["invoicesnotes"].": $notes"); } $endpage = $pdf->GetPage(); $pdf->setPage($startpage); $pdf->SetXY(70,90); if ($status=="Cancelled") { $statustext = $_LANG["invoicescancelled"]; $pdf->SetTextColor(245,245,245); } elseif ($status=="Unpaid") { $statustext = $_LANG["invoicesunpaid"]; $pdf->SetTextColor(204,0,0); } elseif ($status=="Paid") { $statustext = $_LANG["invoicespaid"]; $pdf->SetTextColor(153,204,0); } elseif ($status=="Refunded") { $statustext = $_LANG["invoicesrefunded"]; $pdf->SetTextColor(34,68,136); } elseif ($status=="Collections") { $statustext = $_LANG["invoicescollections"]; $pdf->SetTextColor(255,204,0); } $pdf->SetFont('helvetica','B',40); $pdf->Cell(120,20,strtoupper($statustext),0,0,'C'); $pdf->setPage($endpage); ?> This is my code... Can you help please?
  2. Hey, See function vssmsoffline_link($params) { $code = '<form method="post"" action="/modules/gateways/vssmsoffline.php"> <input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" /> <input type="hidden" name="invoice" value="'.$params['invoiceid'].'" /> <input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" /> <input type="fieldarea" /> <textarea name="field[instructions]" cols="60" rows=""> </textarea> <input type="submit" value="Request payment" /> </form>'; <input type="submit" value="Request payment" /> You need to set this section to what you want: Try function vssmsoffline_link($params) { $code = '<form method="post"" action="/modules/gateways/vssmsoffline.php"> <input type="input" name="account" value="Fill in your bank account" onclick="this.value=\'\'" /> <input type="hidden" name="invoice" value="'.$params['invoiceid'].'" /> <input type="hidden" name="client" value="'.$params['clientdetails']['id'].'" /> <input type="fieldarea" /> <textarea name="field[instructions]" cols="60" rows=""> </textarea> <input type="submit" value="Przelew bankowy" /> </form>'; Cant promise, but it looks right here
  3. Hey, I'm looking to sell some SSL certificates via my system, however I want to sell teh Comodo systems but this is not listed in the enomssl system. I log in to enom, and they are listed but I try to configure the admin panel and no Comodo SSL certs are available.... Any ideas?
  4. Hey, I have merged a load of clients from a new server to my whmcs and it issued a load of invoices that didnt need invoicing, (I was too slow on the editting the payment date and amounts...) all my clients are current and paid up, so do i simply mark the invoices as cancelled - or mark them as paid.... I'm guessing cancelled, but I dont want to cancel the order, just the invoice...
  5. Does this script convert from USD to GBP also? I need to install all these but I do need them to import in to GBP otherwise it wont be worth doing it
  6. Hey All, I've set up a client, who currently pays for his hosting and his domain name annually. (.com) I've done a manual data import for the domain name, however I am confused about the invoicing - I've checked the dates etc, but im confused what I put as the payment details, First Payment Amount - £10 Recurring Amount - £10 But should it be the hosting plus the domain name, or just the hosting and the domain name takes care of itself?
  7. No, at the moment, it is one install on one website, I worked out I can create a client group and only allow the design package hosting to them, but obviously if they log on to the site they can see all the different packages, allowing them to downgrade - I need to not allow that really...
  8. I set my chmod to 755 just now, and its working all ok The other thing to do is re-upload the pipe.php file from the original files - I dont know if this would help, but if it is corrupt then I guess it would do the job slightly.
  9. Hey, Its the wiki thingy I was following The confusion is option 4 (4. Leave the Billing Cycle dropdown menu set at Monthly) - Why does this have to be Monthly if the hosting account is an annual?
  10. Hey, I am ordering a domain to an existing client. I've just merged the client from my plesk system so I need to add just the domain. I'm following the instructions in the importing domain only, however I'm confused. All my clients are on an annual package - so why do I need to set the domain as a monthly billing cycle?
  11. Hey, Is there a way to hide certain products from all clients? I run a web designing company which charges a fixed amount for our clients, however I also run a hosting company - Now on the hosting company site I want to allow all prices etc. However I wanted to hide the other prices from my general clients, for example, if they check the site out, and find out I offer a cheaper rate then they could just downgrade etc...
  12. Hey, I've just imported 60 clients however by accident I selected the wrong package - Is there a way to change several client packages? Thanks
  13. Hi, The domain does already exist and has been registered but has a hosting package included with it, so I need to be able to charge for the renewal of the domain as well as the hosting. Would that link above do that?
  14. Hey guys, I'm still setting up my server and getting the existing 80 clients on plesk merged in etc, however I did one today which has set up the order for the hosting account, and thats all ok, but for some reason it hasnt created the order for domain name... At the moment I have Active Service = 8 but only Active Domains = 1 As all my hosting has domains active am I doing something wrong?
×
×
  • 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