Optimised Company() Setup() Config() and changed method_directory into URL
This commit is contained in:
@@ -22,6 +22,8 @@ require_once('includes/tcpdf/tcpdf.php');
|
||||
abstract class Invoice_TCPDF extends TCPDF {
|
||||
// Our invoice object
|
||||
protected $io;
|
||||
// Our company object
|
||||
protected $co;
|
||||
|
||||
protected $billToCompany = true;
|
||||
protected $itemsSummaryMax = 16;
|
||||
@@ -48,11 +50,12 @@ abstract class Invoice_TCPDF extends TCPDF {
|
||||
parent::__construct();
|
||||
|
||||
$this->io = $io;
|
||||
$this->co = Company::instance();
|
||||
|
||||
// Set up the invoice
|
||||
$this->SetCreator('Open Source Billing');
|
||||
$this->SetAuthor(Company::name());
|
||||
$this->SetTitle(sprintf('%s Invoice',Company::name()));
|
||||
$this->SetAuthor($this->co->name());
|
||||
$this->SetTitle(sprintf('%s Invoice',$this->co->name()));
|
||||
$this->SetSubject(sprintf('Invoice #%06s',$this->io->id()));
|
||||
$this->SetKeywords($this->io->id());
|
||||
$this->SetAutoPageBreak(TRUE,25);
|
||||
|
Reference in New Issue
Block a user