Included a possible mechanism for including the nsf ledger entries when viewing a tender

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@432 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-30 21:06:02 +00:00
parent 24f245c3c8
commit fbfc973dad

View File

@@ -89,6 +89,10 @@ echo $this->element('ledger_entries', array
'config' => array
('caption' => "Ledger Entries",
'filter' => array('Tender.id' => $tender['id']),
/* 'filter' => array("IF(Tender.id = {$tender['id']}". */
/* " OR (Transaction.id = {$tender['nsf_transaction_id']}" . */
/* " AND LedgerEntry.crdr = 'CREDIT')," . */
/* " 1, 0)"), */
'exclude' => array('Tender'),
)));