16 lines
394 B
PHP
16 lines
394 B
PHP
<!-- o = Array of Model_Payment -->
|
|
<?php echo Table::factory()
|
|
->data($o)
|
|
->columns(array(
|
|
'id'=>'ID',
|
|
'date_payment'=>'Pay Date',
|
|
'account->refnum()'=>'Num',
|
|
'account->name()'=>'Account',
|
|
'total(TRUE)'=>'Total',
|
|
'balance(TRUE)'=>'Balance',
|
|
))
|
|
->prepend(
|
|
Auth::instance()->get_user()->isAdmin() ? array('id'=>array('url'=>URL::link('admin','payment/edit/'))) : array()
|
|
)
|
|
?>
|