Finally added a format helper, which has been long intended. There may be still be conversion issues, it hasn't been tested much.
git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605/site@77 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -8,7 +8,7 @@ elseif (!isset($caption))
|
||||
$headers = array('Id', 'Timestamp', 'Comment');
|
||||
$column_class = array();
|
||||
foreach (array_intersect($headers, array('Comment')) AS $k => $v) {
|
||||
$column_class[$k] = 'comment';
|
||||
$column_class[$k] = 'slack';
|
||||
}
|
||||
foreach (array_intersect($headers, array('Id')) AS $k => $v) {
|
||||
$column_class[$k] = 'id';
|
||||
@@ -41,9 +41,9 @@ foreach ($transactions as $transaction) {
|
||||
array('controller' => 'customers',
|
||||
'action' => 'view',
|
||||
$customer['id'])),
|
||||
datefmt($transaction['stamp']),
|
||||
datefmt($transaction['through_date']),
|
||||
datefmt($transaction['due_date']),
|
||||
FormatHelper::date($transaction['stamp']),
|
||||
FormatHelper::date($transaction['through_date']),
|
||||
FormatHelper::date($transaction['due_date']),
|
||||
$transaction['comment']);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user