Site setup fixes
This commit is contained in:
@@ -77,7 +77,7 @@ class Controller_Task_Invoice extends Controller_Task {
|
||||
'FIRST_NAME'=>$io->account->first_name,
|
||||
'INV_NUM'=>$io->refnum(),
|
||||
'INV_URL'=>URL::site('user/invoice/view/'.$io->id,'http'),
|
||||
'SITE_NAME'=>Config::sitename(),
|
||||
'SITE_NAME'=>Company::name(),
|
||||
);
|
||||
|
||||
// @todo Record email log id if possible.
|
||||
@@ -136,13 +136,13 @@ class Controller_Task_Invoice extends Controller_Task {
|
||||
$et->variables = array(
|
||||
'DUE'=>$io->due(TRUE),
|
||||
'DUE_DATE'=>$io->display('due_date'),
|
||||
'EMAIL'=>'accounts@graytech.net.au', // @todo This should come from a config.
|
||||
'EMAIL'=>Company::email(),
|
||||
'FIRST_NAME'=>$io->account->first_name,
|
||||
'INV_NUM'=>$io->refnum(),
|
||||
'INV_URL'=>URL::site('user/invoice/view/'.$io->id,'http'),
|
||||
'LATE_FEE'=>'5.50', // @todo This should come from a config file.
|
||||
'PAYMENTS_TABLE'=>$io->account->payment->list_recent_table(),
|
||||
'SITE_NAME'=>Config::sitename(),
|
||||
'SITE_NAME'=>Company::name(),
|
||||
);
|
||||
|
||||
// @todo Record email log id if possible.
|
||||
@@ -301,13 +301,13 @@ class Controller_Task_Invoice extends Controller_Task {
|
||||
$et->variables = array(
|
||||
'DUE'=>$io->due(TRUE),
|
||||
'DUE_DATE'=>$io->display('due_date'),
|
||||
'EMAIL'=>'accounts@graytech.net.au', // @todo This should come from a config.
|
||||
'EMAIL'=>Company::email(),
|
||||
'FIRST_NAME'=>$io->account->first_name,
|
||||
'HTML_INVOICE'=>$io->html(),
|
||||
'INV_NUM'=>$io->refnum(),
|
||||
'INV_URL'=>URL::site('user/invoice/view/'.$io->id,'http'),
|
||||
'INV_URL_DOWNLOAD'=>URL::site(sprintf('user/invoice/download/%s?token=%s',$io->id,$token),'http'),
|
||||
'SITE_NAME'=>Config::sitename(),
|
||||
'SITE_NAME'=>Company::name(),
|
||||
);
|
||||
|
||||
// @todo Record email log id if possible.
|
||||
|
@@ -51,8 +51,8 @@ abstract class Invoice_TCPDF extends TCPDF {
|
||||
|
||||
// Set up the invoice
|
||||
$this->SetCreator('Open Source Billing');
|
||||
$this->SetAuthor(Config::sitename());
|
||||
$this->SetTitle(sprintf('%s Invoice',Config::sitename()));
|
||||
$this->SetAuthor(Company::name());
|
||||
$this->SetTitle(sprintf('%s Invoice',Company::name()));
|
||||
$this->SetSubject(sprintf('Invoice #%06s',$this->io->id()));
|
||||
$this->SetKeywords($this->io->id());
|
||||
$this->SetAutoPageBreak(TRUE,25);
|
||||
|
@@ -37,7 +37,7 @@ class Invoice_TCPDF_Default extends Invoice_TCPDF {
|
||||
$x = 40; $y = 7;
|
||||
|
||||
$this->SetFont('helvetica','B',10);
|
||||
$this->SetXY($x,$y); $this->Cell(0,0,Config::sitename()); $y += 4;
|
||||
$this->SetXY($x,$y); $this->Cell(0,0,Company::name()); $y += 4;
|
||||
|
||||
$this->SetFont('helvetica','',10);
|
||||
$this->SetXY($x,$y); $this->Cell(0,0,Company::taxid()); $y += 6;
|
||||
@@ -65,7 +65,7 @@ class Invoice_TCPDF_Default extends Invoice_TCPDF {
|
||||
|
||||
$this->SetFont('helvetica','',8);
|
||||
$this->SetXY($x,$y); $this->Cell(0,0,_('Please return this portion with your cheque or money order')); $y +=3;
|
||||
$this->SetXY($x,$y); $this->Cell(0,0,_('made payable to').' '.Config::sitename());
|
||||
$this->SetXY($x,$y); $this->Cell(0,0,_('made payable to').' '.Company::name());
|
||||
|
||||
// Due Date
|
||||
$x = 110; $y = 200;
|
||||
@@ -91,7 +91,7 @@ class Invoice_TCPDF_Default extends Invoice_TCPDF {
|
||||
// Company Address
|
||||
$y = 216;
|
||||
$this->SetFont('helvetica','',10);
|
||||
$this->SetXY(18,$y); $this->Cell(0,0,Config::sitename()); $y += 4;
|
||||
$this->SetXY(18,$y); $this->Cell(0,0,Company::name()); $y += 4;
|
||||
$this->SetXY(18,$y); $this->Cell(0,0,Company::street()); $y += 4;
|
||||
$this->SetXY(18,$y); $this->Cell(0,0,sprintf('%s, %s %s',Company::city(),Company::state(),Company::pcode())); $y += 4;
|
||||
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<table class="company_details" border="0">
|
||||
<tr>
|
||||
<td class="logo"><?php echo Config::logo(); ?></td>
|
||||
<td class="address"><span class="company_name"><?php echo Config::sitename(); ?></span><br/><?php echo Company::address(); ?><br/><?php echo Company::contacts(); ?></td>
|
||||
<td class="address"><span class="company_name"><?php echo Company::name(); ?></span><br/><?php echo Company::address(); ?><br/><?php echo Company::contacts(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
@@ -5,7 +5,7 @@
|
||||
<table class="company_details" border="0">
|
||||
<tr>
|
||||
<td class="logo"><?php echo Config::logo(); ?></td>
|
||||
<td class="address"><span class="company_name"><?php echo Config::sitename(); ?></span><br/><?php echo Company::address(); ?><br/><?php echo Company::contacts(); ?></td>
|
||||
<td class="address"><span class="company_name"><?php echo Company::name(); ?></span><br/><?php echo Company::address(); ?><br/><?php echo Company::contacts(); ?></td>
|
||||
</tr>
|
||||
</table>
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user