Jump to content

Search the Community

Showing results for tags 'pdf'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


WHMCS.Community

  • The latest WHMCS Release
  • WHMCS Beta Program
    • WHMCS Mobile App Technical Preview Feedback
  • The Latest from the WHMCS Team
    • News, Announcements & Blogs from WHMCS
  • WHMCS.Community
    • Community Announcements
    • Introduce Yourself
  • Using WHMCS
    • Pre-Sales Questions
    • Admin & Configuration Questions
    • Installation, Upgrade, and Import Support
    • Using WHMCS
    • Troubleshooting Issues
    • Vendor Discussions
  • WHMCS Showcase
    • Showcase Your Site
    • Share Your Best Practices & Tips
  • Developing & Extending WHMCS
    • Third Party Add-ons
    • Service Offers & Requests
    • Developer Corner
    • Building Modules
    • Share Ideas for WHMCS Modules
  • Community Competitions
    • Competitions
  • General Discussions
    • General Discussion
  • General Feedback & Assistance
    • Feedback
    • WHMCS.Community Tips & Tricks
  • Third Party Developers's Topics
  • Turkish International Discussions's Topics
  • Russian International Discussions's Topics
  • Spanish International Discussions's Topics
  • Portuguese International Discussions's Topics
  • French International Discussions's Topics
  • Italian International Discussions's Topics
  • German International Discussions's Topics
  • WHMCS Brasil's Topics
  • WHMCS Brasil's Tópicos
  • ModulesGarden Club's Topics
  • Hungarian International Discussions's Segítség
  • ThemeMetro Club's Topics
  • WHMCS Services Club's Topics
  • SwiftModders Club's Topics
  • WHMCS Global Services Club's Topics
  • Katamaze's Free Scripts
  • Katamaze's Modules
  • Zomex Club's Topics
  • 0100Dev Club's Topics

WHMCS Version

  • V8.1.x Hotfixes
  • V8.0.x Hotfixes
  • V7.10.x Hotfixes
  • V7.9.x Hotfixes

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me

Found 15 results

  1. Hello I am using PHP 7.4 with WHMCS Version: 8.1.3. I am trying to download my invoices using the Batch PDF Invoice but I am getting this strange error - https://prnt.sc/124t370 when I try to generate the invoices. I visited my console to see what's wrong and it gives me this - https://prnt.sc/124t5b5 Can anyone please tell me what's wrong?
  2. hello everyone. hope all are doing fine. can some one help me with correct my tpl file for the pdf invoice. basically what i am looking for is.... my product price is 55 euros which is included TAX . my tax rate is 21% so my product real price is 45.45 euros and 9.55 is TAX at the moment its showing like this which is accurate i know. but i want to hide that line 21.00% VAT from this pdf all i want it too looks like i dont want to remove the functionality just i want to hide the TAX thing from the invoicepdf here is my code <?php # Logo $logoFilename = 'placeholder.png'; if (file_exists(ROOTDIR . '/assets/img/logo.png')) { $logoFilename = 'logo.png'; } elseif (file_exists(ROOTDIR . '/assets/img/logo.jpg')) { $logoFilename = 'logo.jpg'; } $pdf->Ln(5); $pdf->SetFont($pdfFont, 'B', 15); $pdf->SetFillColor(255); $pdf->SetFont($pdfFont, '', 16); $pdf->Cell(100, 6, "My Bill Summary", 0, 1, 'L', '1'); $pdf->Image(ROOTDIR . '/assets/img/' . $logoFilename, 120, 25, 75); # Company Details $pdf->SetXY(15, 70); $pdf->SetFont($pdfFont, '', 13); foreach ($companyaddress as $addressLine) { $pdf->Cell(180, 4, trim($addressLine), 0, 1, 'R'); $pdf->SetFont($pdfFont, '', 9); } if ($taxCode) { $pdf->Cell(180, 4, $taxIdLabel . ': ' . trim($taxCode), 0, 1, 'R'); } $pdf->Ln(5); # Clients Details $pdf->SetXY(15, 70); $pdf->SetFont($pdfFont, 'B', 10); $pdf->SetFont($pdfFont, 'B', 14); if ($clientsdetails["companyname"]) { $pdf->Cell(0, 4, $clientsdetails["companyname"], 0, 1, 'L'); $pdf->Cell(0, 4, Lang::trans('invoicesattn') . ': ' . $clientsdetails["firstname"] . ' ' . $clientsdetails["lastname"], 0, 1, 'L'); } else { $pdf->Cell(0, 4, $clientsdetails["firstname"] . " " . $clientsdetails["lastname"], 0, 1, 'L'); } $pdf->SetFont($pdfFont, '', 12); $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["postcode"], 0, 1, 'L'); $pdf->Cell(0, 4, $clientsdetails["country"], 0, 1, 'L'); if (array_key_exists('tax_id', $clientsdetails) && $clientsdetails['tax_id']) { $pdf->Cell(0, 4, $taxIdLabel . ': ' . $clientsdetails['tax_id'], 0, 1, 'L'); } $pdf->Ln(5); $pdf->Ln(5); $pdf->Ln(5); # Header Bar /** * Invoice header * * You can optionally define a header/footer in a way that is repeated across page breaks. * For more information, see http://docs.whmcs.com/PDF_Invoice#Header.2FFooter */ $pdf->SetFont($pdfFont, 'B', 15); $pdf->SetFillColor(239); $pdf->SetFont($pdfFont, '', 12); if ($customfields) { foreach ($customfields as $customfield) { $pdf->Cell(75, 6, $customfield['fieldname'] . ' ' . $customfield['value'], 0, 1, 'L', '1'); } } $pdf->Cell(75, 6, "Invoice Number " . ' ' . $invoiceid, 0, 1, 'L', '1'); $pdf->Cell(75, 6, "Bill Issue Date" . ' ' . $datecreated, 0, 1, 'L', '1'); $pdf->Cell(75, 6, "Payment Method" . ' ' . $paymentmethod, 0, 1, 'L', '1'); $pdf->Ln(10); $startpage = $pdf->GetPage(); # Invoice Items $tblhtml = '<table width="85%" bgcolor="#ccc" cellspacing="1" cellpadding="2" border="0"> <tr height="30" bgcolor="#efefef" style="font-weight:bold;text-align:center;"> <td width="80%">' . Lang::trans('invoicesdescription') . '</td> <td width="20%">' . Lang::trans('quotelinetotal') . '</td> </tr>'; foreach ($invoiceitems as $item) { $tblhtml .= ' <tr bgcolor="#fff"> <td align="left">' . nl2br($item['description']) . '<br /></td> <td align="center">' . $item['amount'] . '</td> </tr>'; } $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . Lang::trans('invoicessubtotal') . '</td> <td align="center">' . $subtotal . '</td> </tr>'; if ($taxname) { $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . $taxrate . '% ' . $taxname . '</td> <td align="center">' . $tax . '</td> </tr>'; } if ($taxname2) { $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . $taxrate2 . '% ' . $taxname2 . '</td> <td align="center">' . $tax2 . '</td> </tr>'; } $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . Lang::trans('invoicescredit') . '</td> <td align="center">' . $credit . '</td> </tr> <tr height="30" bgcolor="#efefef" style="font-weight:bold;font-size:16px;"> <td align="right">' . "Total Amount Due" . '</td> <td align="center">' . $total . '</td> </tr> </table>'; $pdf->writeHTML($tblhtml, true, false, false, false, ''); $pdf->Ln(5); $html = "<h2 style=\"color:red;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please pay by ${duedate} </h2>"; $pdf->writeHTML($html, true, false, false, false, ''); $pdf->Ln(10); $pdf->SetFont($pdfFont, 'B', 15); $pdf->SetFillColor(239); $pdf->SetFont($pdfFont, '', 10); $pdf->Cell(125, 6, "Failure to pay your account in full may result in loss of service.", 0, 1, 'L', '1'); $pdf->Cell(125, 6, "Reactivation of your service could take up to 7 days and will incur a fee. ", 0, 1, 'L', '1'); $pdf->Ln(10); # Notes if ($notes) { $pdf->Ln(5); $pdf->SetFont($pdfFont, '', 8); $pdf->MultiCell(170, 5, Lang::trans('invoicesnotes') . ': ' . $notes); } /** * Invoice footer */ can someone please help me in this issue.. i really need to solve it Thanks a million in advnace
  3. In Billing Extension 2.2.133, we renewed the existing plugin that trasmits invoice PDF to a remote FTP server. We extended this concept to emails so that you can achieve the following goals. First. If you company uses a DMS (Document Management System) you can process invoices as PDF files. The module can store them in a logical folder structure so that your DMS can extrat data from file content, name and dirctory. Here is a list of the available auto-tags: {YEAR} Format yyyy (2020, 2021...) {MONTH} Format mm (10, 11...) {DAY} Format gg (09, 10...) {NUMBER} Invoice number (tblinvoices.invoicenum) {ID} Invoice ID (tblinvoices.id) {TYPE} Document type (Proforma, Invoice, CreditNote) {USERID} User ID {COUNTRY} User country ISO 3166-1 alpha-2 (IT, US, DE...) {CURRENCY} User currency (EUR, USD, AUD...) {PAYMENTMETHOD} Payment gateway system name (paypal, stripe...) Let us show you two examples. Using {YEAR}/{MONTH}/{CURRENCY}/{COUNTRY}-{NUMBER}.pdf gives the following path/file structure: 2020/04/USD/US-Invoice 120.pdf 2020/04/USD/US-Invoice 121.pdf 2020/04/EUR/IT-Invoice 122.pdf 2020/04/EUR/FR-Invoice 123.pdf Here's another example with {TYPE}/{PAYMENTMETHOD}/{TYPE}-{ID}.pdf: Proforma/stripe/Proforma-1290.pdf Invoice/stripe/Invoice-1298.pdf CreditNote/paypal/CreditNote-1305.pdf Proforma/banktransfer/Proforma-1354.pdf The same feature is available for email sending. The module can automatically send all PDF files as attachments via email to multiple recipients (eg. you accountant) on a weekly (every monday) or monthly basis (on the first of every month). You can customize the way files are stored in the zip as describved previously by simply using auto-tags. This way you no longer need to use Bath PDF Invoice Export to send invoices to your accountant.
  4. Hello, I'm having trouble using the WHMCS PDF Quote, as well as the PDF Invoice. The issue have is that my TAX ID field needs to be showing on the PDF Quote under my business name and address but it does not. Another issue I have is that if I head to Setup > General Settings and add the Tax ID inside the Pay To Text field, the Invoice PDF will then have two Tax ID's because the Invoice by default has the Tax ID field inserted in the pdf while the quote does not. Can anyone assist me in giving me the code to add to the quotepdf.tpl to make the default Quote Form to contain my Tax ID field please. Thank you in advance
  5. Hello everyone. i hope everyone is doing great. i need again some help from the community. hope someone correct my invoicepdf tpl file so it can complete my demand. i have done some modify but i can't understand how to fix some more. i want to make my invoice like this and this is my current code. its already modified mostly <?php # Logo $logoFilename = 'placeholder.png'; if (file_exists(ROOTDIR . '/assets/img/logo.png')) { $logoFilename = 'logo.png'; } elseif (file_exists(ROOTDIR . '/assets/img/logo.jpg')) { $logoFilename = 'logo.jpg'; } $pdf->Ln(5); $pdf->SetFont($pdfFont, 'B', 15); $pdf->SetFillColor(255); $pdf->SetFont($pdfFont, '', 16); $pdf->Cell(100, 6, "My Bill Summary", 0, 1, 'L', '1'); $pdf->Image(ROOTDIR . '/assets/img/' . $logoFilename, 120, 25, 75); # Company Details $pdf->SetXY(15, 70); $pdf->SetFont($pdfFont, '', 13); foreach ($companyaddress as $addressLine) { $pdf->Cell(180, 4, trim($addressLine), 0, 1, 'R'); $pdf->SetFont($pdfFont, '', 9); } if ($taxCode) { $pdf->Cell(180, 4, $taxIdLabel . ': ' . trim($taxCode), 0, 1, 'R'); } $pdf->Ln(5); # Clients Details $pdf->SetXY(15, 70); $pdf->SetFont($pdfFont, 'B', 10); $pdf->SetFont($pdfFont, '', 9); if ($clientsdetails["companyname"]) { $pdf->Cell(0, 4, $clientsdetails["companyname"], 0, 1, 'L'); $pdf->Cell(0, 4, Lang::trans('invoicesattn') . ': ' . $clientsdetails["firstname"] . ' ' . $clientsdetails["lastname"], 0, 1, 'L'); } else { $pdf->Cell(0, 4, $clientsdetails["firstname"] . " " . $clientsdetails["lastname"], 0, 1, 'L'); } $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["postcode"], 0, 1, 'L'); $pdf->Cell(0, 4, $clientsdetails["country"], 0, 1, 'L'); if (array_key_exists('tax_id', $clientsdetails) && $clientsdetails['tax_id']) { $pdf->Cell(0, 4, $taxIdLabel . ': ' . $clientsdetails['tax_id'], 0, 1, 'L'); } $pdf->Ln(10); $pdf->Ln(10); $pdf->Ln(10); # Header Bar /** * Invoice header * * You can optionally define a header/footer in a way that is repeated across page breaks. * For more information, see http://docs.whmcs.com/PDF_Invoice#Header.2FFooter */ $pdf->SetFont($pdfFont, 'B', 15); $pdf->SetFillColor(239); $pdf->SetFont($pdfFont, '', 12); if ($customfields) { foreach ($customfields as $customfield) { $pdf->Cell(125, 6, $customfield['fieldname'] . ': ' . $customfield['value'], 0, 1, 'L', '1'); } } $pdf->Cell(125, 6, "Invoice Number " . ': ' . $invoiceid, 0, 1, 'L', '1'); $pdf->Cell(125, 6, "Bill Issue Date" . ': ' . $datecreated, 0, 1, 'L', '1'); $pdf->Cell(125, 6, "Billing Period" . ': ' . $datecreated, 0, 1, 'L', '1'); $pdf->Ln(10); $startpage = $pdf->GetPage(); # Invoice Items $tblhtml = '<table width="70%" bgcolor="#ccc" cellspacing="1" cellpadding="2" border="0"> <tr height="30" bgcolor="#efefef" style="font-weight:bold;text-align:center;"> <td width="80%">' . Lang::trans('invoicesdescription') . '</td> <td width="20%">' . Lang::trans('quotelinetotal') . '</td> </tr>'; foreach ($invoiceitems as $item) { $tblhtml .= ' <tr bgcolor="#fff"> <td align="left">' . nl2br($item['description']) . '<br /></td> <td align="center">' . $item['amount'] . '</td> </tr>'; } $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . Lang::trans('invoicessubtotal') . '</td> <td align="center">' . $subtotal . '</td> </tr>'; if ($taxname) { $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . $taxrate . '% ' . $taxname . '</td> <td align="center">' . $tax . '</td> </tr>'; } if ($taxname2) { $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . $taxrate2 . '% ' . $taxname2 . '</td> <td align="center">' . $tax2 . '</td> </tr>'; } $tblhtml .= ' <tr height="30" bgcolor="#efefef" style="font-weight:bold;"> <td align="right">' . Lang::trans('invoicescredit') . '</td> <td align="center">' . $credit . '</td> </tr> <tr height="30" bgcolor="#efefef" style="font-weight:bold;font-size:14px;"> <td align="right">' . "Total Amount Due" . '</td> <td align="center">' . $total . '</td> </tr> </table>'; $pdf->writeHTML($tblhtml, true, false, false, false, ''); $pdf->Ln(5); if ($status == 'Unpaid'){ $html = "<h2 style=\"color:red;\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Please pay by ${duedate} </h2>"; $pdf->writeHTML($html, true, false, false, false, ''); $pdf->Ln(10); $pdf->SetFont($pdfFont, 'B', 15); $pdf->SetFillColor(239); $pdf->SetFont($pdfFont, '', 10); $pdf->Cell(125, 6, "Failure to pay your account in full may result in loss of service.", 0, 1, 'L', '1'); $pdf->Cell(125, 6, "Reactivation of your service could take up to 7 days and will incur a fee. ", 0, 1, 'L', '1'); $pdf->Ln(10); } # Notes if ($notes) { $pdf->Ln(5); $pdf->SetFont($pdfFont, '', 8); $pdf->MultiCell(170, 5, Lang::trans('invoicesnotes') . ': ' . $notes); } /** * Invoice footer */ ============================ can someone please correct the code so my pdf invoice will be looks same like the image i provide thanks everyone and plesae stay safe
  6. Hello Quick question... in the backend/admin area of WHMCS, where can I edit the invoice and the invoice logo that is attached to an email that is sent. I have installed an Invoice Style add-on, however, it seems to not be affecting the attachment invoice that is sent to clients. Where can I edit that logo and where does it take the logo from? Thank you
  7. Hello, we are sending our clients some custom emails template for product renewal notice. We would like our clients email to be received with the renewal information in a PDF instead of inside the email body. Same delivery method than a WHMCS invoice. Also, like invoices, we would like the PDF to be available to client trough their client area in a document download section ( I know I'm asking a lot) Which avenue our company need to take in order to accomplish that : custom devlopement, specific module or really easy customisation ? thanks again to help me just a few weeks before the holidays!
  8. Hello, Has anyone implemented a way to show the card type and four digits of the credit card used for invoice payments? We would like to do three things: If no card is on file display a note on the PDF invoice / email template / print invoice. If a card is on file display the card issuer and 4 digits on the PDF invoice / email template / print invoice. As for #2 display the same information in the transactions table below the transaction ID. I was not able to find any template variables so suspect it may be a direct call to the database to look this up. Thanks, as always.
  9. Hello I'm looking for someone who can do the following for me. I would like to send you an ubl file when sending an invoice.pdf. I would like this so that the invoices are automatically entered into an accounting program. Who could do this and what will it cost? M.v.g. André
  10. I have opened a support ticket for this but the response from WHMCS has not been helpful, so I am hoping somebody here can assist. I have been running WHMCS without issues for over 8 years and when I recently upgraded from an older version (I think it was somewhere in v5) to v7 I changed the logo on my PDF quotes and invoices. That logo now appears horribly fuzzy and unsharp when viewing the PDF's on the computer. It's not so bad printed, but I really want it to look professional when a customer is looking at it on their screen too. I have been told by support that the file size should be 300x100px, which I have complied with to no avail - it still looks horrible (and it's not the source .png I am using - that looks fine on its own). I have tried larger and smaller versions, versions with higher DPI settings, etc, but I can't get this logo to appear sharp on the PDF. Can anybody provide a solution to this very annoying issue?
  11. When i send "Invoice created" email or "Invoice reminder" the client recive the invoice .pdf file but the name on it its only {YEAR}.pdf My both Sequential & Custom Invoice Numbering Format is set to: {NUMBER}/{YEAR} When i go to client invoice, and when i download the invoice the filename is okey (Invoice-{NUMBER}/{YEAR}.pdf) But when is attached to email templates , the filename is {YEAR}.pdf How and where can i change that?
  12. PDF-Invoice template # Clients Details $addressypos = $pdf->GetY(); $pdf->SetFont($pdfFont, '', 12); $pdf->SetFillColor(59,78,135); $pdf->SetTextColor(255,255,255); $pdf->Cell(50, 6, strtoupper(Lang::trans('supportticketsclient')), 0, 1, 'L', true); How to make that cell to show UpperCase letters for the translated word "supportticketsclient" I tried with strtoupper command, but still the word is with small letters.
  13. Hello, I am need a Modul/Script/Hook which adds a product description (for Example when the Customors orders "Webhosting Small": 5GB, Traffic Flat, 5 E-Mail Accounts,..) from the lang file in the PDF Invoice bevor it sends to the customer. Does anyone have something like this or can develop it? Please make me an offer. Thanks
  14. Hello, I need an Custom Invoice Template for PDF Invoices. Footer on each Page (for Company Details, Pagenumber,...) Pricetable Head on each Page (when the Pricetable goes over one Page) PDF Batch must work editable/not encrypted Can someone make me an offer? Thanks
  15. Имеется WHMCS 5.3.3 под Линуксом. Setup / General Settings / Localisation / System charset = utf-8 (по умолчанию). В Client / Invoices / Invoice Summary: - кнопка "Printable Version" показывает счёт в HTML, всё выглядит правильно. - кнопка "View PDF" возвращает PDF-файл, в котором вместо русских букв нарисованы знаки "?". Что надо сделать, чтобы русские буквы в PDF начали выводиться правильно?
×
×
  • 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