#1  
Old 20th January 2013, 20:41
mccharlet mccharlet is offline
Senior Member
 
Join Date: Feb 2007
Posts: 261
Thanks: 60
Thanked 11 Times in 7 Posts
Default Billing module custom pdf

Hi,

It's possible to custom the pdf invoice.

Myclient is french and i want translate the invoice in french

Best regards
__________________
Thanks
Cédric

Sorry for my english

Hosting : http://www.jheberge.ch
Reply With Quote
Sponsored Links
  #2  
Old 21st January 2013, 10:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,502
Thanks: 813
Thanked 5,264 Times in 4,128 Posts
Default

Quote:
It's possible to custom the pdf invoice.
Yes, the invoice templates can be completely customized. The templates are in the folder /usr/local/ispconfig/interface/web/billing/templates/pdf_invoice/. Ech template is a separate folder.

Make a copy of the existing template that is the nearest match to your new invoice template by creating y copy of the folder. e.g.:

cd /usr/local/ispconfig/interface/web/billing/templates/pdf_invoice/
cp -prf default mytemplate

The new template folder name shall only contain chars a-z, numbers 0-9 and underscores. Dont use whitepscaes or special chars or accents for the folder name.

Then edit the template files in your new folder. The new invoice template is listed automatically in the company settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 24th April 2013, 11:12
diablo666 diablo666 is offline
Member
 
Join Date: Mar 2007
Posts: 95
Thanks: 15
Thanked 2 Times in 2 Posts
Default

Hi there,
i've tried to add a custom pdf invoice generator.

I've copied the template default_no_vat in another direcotry, then i've selected the new template from the trop down menu in panel.

When i'll try to create a new invoice, after adding objects and click on Save and Finalize nothing heappen.

In the log i'll get the following error

mod_fcgid: stderr: PHP Fatal error: Class 'PDFInvoice_custom' not found in /usr/local/ispconfig/interface/web/billing/invoice_edit.php on line 303, referer: https://www.domain.tld:8080/index.php

Whats wrong?
Reply With Quote
  #4  
Old 24th April 2013, 11:42
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,502
Thanks: 813
Thanked 5,264 Times in 4,128 Posts
Default

Take a look into the make_pdf_invoice file, the class name of the invoice class has to match with the name that you had choosen for your template.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 24th April 2013, 12:14
diablo666 diablo666 is offline
Member
 
Join Date: Mar 2007
Posts: 95
Thanks: 15
Thanked 2 Times in 2 Posts
Default

Perfect, it works.

Thank you.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Freeradius and Mysql uvstudios HOWTO-Related Questions 4 19th February 2014 12:11
Proftpd + MySQL virtual users, can't connect geekman HOWTO-Related Questions 28 27th September 2010 18:03
FreeRadius + MySQL working, but I don't know how to customise SQL queries awe Installation/Configuration 4 4th April 2010 23:28
ffmpeg Video support for ubuntu 7.10 [suphp-ispconfig] amaurib Installation/Configuration 13 16th February 2010 17:26
Webmin docs missing namit Server Operation 11 5th January 2006 09:51


All times are GMT +2. The time now is 16:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.