Standardisation work, changed accnum() to refnum()
This commit is contained in:
@@ -18,28 +18,12 @@ class Controller_Reseller_Payment extends Controller_Payment {
|
||||
* Show a list of payments
|
||||
*/
|
||||
public function action_list() {
|
||||
$this->meta->title = 'Customer Payments';
|
||||
$this->meta->title = 'R|Customer Payments';
|
||||
|
||||
Block::factory()
|
||||
->title('Customer Payments')
|
||||
->title_icon('fa fa-money')
|
||||
->body(Table::factory()
|
||||
->page_items(50)
|
||||
->data(ORM::factory('Payment')->where_authorised($this->ao)->find_all())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_payment'=>'Date',
|
||||
'checkout->display("name")'=>'Method',
|
||||
'total(TRUE)'=>'Total',
|
||||
'balance(TRUE)'=>'Balance',
|
||||
'invoicelist()'=>'Invoices',
|
||||
'account->accnum()'=>'Cust ID',
|
||||
'account->name()'=>'Customer',
|
||||
))
|
||||
->prepend(array(
|
||||
//'id'=>array('url'=>URL::link('reseller','payment/edit/')), //@todo To Implement
|
||||
))
|
||||
);
|
||||
->title_icon($this->icon)
|
||||
->body(View::factory('payment/reseller/list')->set('o',ORM::factory('Payment')->where_authorised($this->ao)->find_all()));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user