Standardisation work, changed accnum() to refnum()
This commit is contained in:
@@ -10,5 +10,6 @@
|
||||
* @license http://dev.osbill.net/license.html
|
||||
*/
|
||||
class Controller_Payment extends Controller_TemplateDefault {
|
||||
protected $icon = 'fa fa-money';
|
||||
}
|
||||
?>
|
||||
|
@@ -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()));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
@@ -21,20 +21,9 @@ class Controller_User_Payment extends Controller_Payment {
|
||||
$this->meta->title = 'Payments Received';
|
||||
|
||||
Block::factory()
|
||||
->title(sprintf('%s: %s - %s',_('Payments Received For'),$this->ao->accnum(),$this->ao->name(TRUE)))
|
||||
->title_icon('fa fa-money')
|
||||
->body(Table::factory()
|
||||
->page_items(50)
|
||||
->data($this->ao->payment->find_all())
|
||||
->columns(array(
|
||||
'id'=>'ID',
|
||||
'date_payment'=>'Date',
|
||||
'checkout->display("name")'=>'Method',
|
||||
'total(TRUE)'=>'Total',
|
||||
'balance(TRUE)'=>'Balance',
|
||||
'invoicelist()'=>'Invoices',
|
||||
))
|
||||
);
|
||||
->title(sprintf('%s: %s - %s',_('Payments Received For'),$this->ao->refnum(),$this->ao->name(TRUE)))
|
||||
->title_icon($this->icon)
|
||||
->body(View::factory('payment/user/list')->set('o',$this->ao->payment->find_all()));
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user