Added the Deposit row to all tenders, not just those that have been deposited. This helps avoid confusion when looking at a non-deposited tender, since one may be trying to figure out whether or not it has been deposited and yet not remember if this is the appropriate screen.

git-svn-id: file:///svn-source/pmgr/branches/v0.2.0_work@900 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-12-09 18:02:00 +00:00
parent 2fb2e6f5aa
commit 3dca204ac6

View File

@@ -33,11 +33,13 @@ for ($i=1; $i<=4; ++$i)
if (!empty($ttype["data{$i}_name"])) if (!empty($ttype["data{$i}_name"]))
$rows[] = array($ttype["data{$i}_name"], $tender["data{$i}"]); $rows[] = array($ttype["data{$i}_name"], $tender["data{$i}"]);
if (!empty($tender['deposit_transaction_id'])) $rows[] = array('Deposit',
$rows[] = array('Deposit', $html->link('#'.$tender['deposit_transaction_id'], empty($tender['deposit_transaction_id'])
array('controller' => 'transactions', ? "-"
'action' => 'deposit_slip', : $html->link('#'.$tender['deposit_transaction_id'],
$tender['deposit_transaction_id']))); array('controller' => 'transactions',
'action' => 'deposit_slip',
$tender['deposit_transaction_id'])));
if (!empty($tender['nsf_transaction_id'])) if (!empty($tender['nsf_transaction_id']))
$rows[] = array('NSF', $html->link('#'.$tender['nsf_transaction_id'], $rows[] = array('NSF', $html->link('#'.$tender['nsf_transaction_id'],