Removed the external account information (such as quickbooks account number) from account listings. This is fairly specific information that probably only needs to be in the account detail. When setting up quickbooks though, I could see it being useful, so perhaps an action in the accounts controller to list all accounts with their external info, or a parameter to the existing actions.

git-svn-id: file:///svn-source/pmgr/branches/ledger_transactions_20090605@88 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-06-10 15:08:52 +00:00
parent fb48baf575
commit 760420bdc5

View File

@@ -5,7 +5,7 @@ if (isset($heading))
elseif (!isset($caption))
echo '<h2>'.__('Accounts',true).'</h2>';
$headers = array('Name', 'Type', 'Ext. Name', 'Ext. Account', 'Entries', 'Debits', 'Credits', 'Balance', 'Comment');
$headers = array('Name', 'Type', /*'Ext. Name', 'Ext. Account',*/ 'Entries', 'Debits', 'Credits', 'Balance', 'Comment');
$column_class = array();
foreach (array_intersect($headers, array('Debits', 'Credits', 'Balance')) AS $k => $v) {
$column_class[$k] = 'currency';
@@ -20,8 +20,8 @@ if (isset($paginator)) {
$headers = array($paginator->sort('name'),
$paginator->sort('type'),
$paginator->sort('Ext. Name', 'external_name'),
$paginator->sort('Ext. Account', 'external_account'),
/* $paginator->sort('Ext. Name', 'external_name'), */
/* $paginator->sort('Ext. Account', 'external_account'), */
$paginator->sort('entries'),
$paginator->sort('debits'),
$paginator->sort('credits'),
@@ -46,8 +46,8 @@ foreach ($accounts as $account) {
'action' => 'view',
$account['id'])),
$account['type'],
$account['external_name'],
$account['external_account'],
/* $account['external_name'], */
/* $account['external_account'], */
$stats['entries'],
FormatHelper::currency($stats['debits']),
FormatHelper::currency($stats['credits']),