Revamping invoice PDF rendering and standardisation work
This commit is contained in:
@@ -113,7 +113,7 @@ class Invoice {
|
||||
elseif ($this->_io->billing_status == 1)
|
||||
$pdfo->drawInvoicePaidNotice();
|
||||
|
||||
if ($this->_io->account->invoices_due_total())
|
||||
if ($this->_io->account->invoices_due_total() > $this->_io->due())
|
||||
$pdfo->drawSummaryInvoicesDue();
|
||||
|
||||
$pdfo->drawSummaryLineItems();
|
||||
@@ -134,8 +134,6 @@ class Invoice {
|
||||
}
|
||||
|
||||
public function render($type,$section,$args=array()) {
|
||||
$this->_io->pre_render();
|
||||
|
||||
switch ($type) {
|
||||
case 'email':
|
||||
switch ($section) {
|
||||
|
Reference in New Issue
Block a user