This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
khosb/modules/payment/views/payment/list.php
2016-08-31 15:03:40 +10:00

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()
)
?>