Standardisation work, changed accnum() to refnum()
This commit is contained in:
@@ -76,24 +76,9 @@ class Controller_User_Invoice extends Controller_Invoice {
|
||||
$this->meta->title = 'Invoice List';
|
||||
|
||||
Block::factory()
|
||||
->title(sprintf('Invoices for Account: %s',$this->ao->accnum()))
|
||||
->title_icon('fa fa-list')
|
||||
->body(Table::factory()
|
||||
->jssort('invoices')
|
||||
->data($this->ao->invoice->find_all())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_orig'=>'Date Issued',
|
||||
'due_date'=>'Date Due',
|
||||
'total(TRUE)'=>'Total',
|
||||
'total_credits(TRUE)'=>'Credits',
|
||||
'payments_total(TRUE)'=>'Payments',
|
||||
'due(TRUE)'=>'Still Due',
|
||||
))
|
||||
->prepend(array(
|
||||
'id'=>array('url'=>URL::link('user','invoice/view/')),
|
||||
))
|
||||
);
|
||||
->title(sprintf('Invoices for Account: %s',$this->ao->refnum()))
|
||||
->title_icon($this->icon)
|
||||
->body(View::factory('invoice/user/list')->set('o',$this->ao->invoice->find_all()));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user