Re-implemented the deposit functionality. This is mostly working, although I'd like to get customer added to the tenders table, and probably change to a single deposit ledger entry for each tender type. A single entry would require that all tender types have been recorded to the same account, something that isn't mandated at the present, but is likely to be true most of the time. Perhaps they could just be grouped by account id, which should work in all cases and yet align with tender type 99% of the time. I'll have to think about it.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@412 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-29 08:55:09 +00:00
parent 3128880c4d
commit cdf6ce86e3
10 changed files with 318 additions and 174 deletions

View File

@@ -67,14 +67,16 @@ echo '<div CLASS="detail supporting">' . "\n";
* Statement Entries
*/
echo $this->element('statement_entries', array
(// Grid configuration
'config' => array
(
'caption' => 'Statement Entries',
'filter' => array('transaction_id' => $transaction['id']),
'exclude' => array('Transaction'),
)));
if ($transaction['type'] === 'INVOICE' || $transaction['type'] === 'RECEIPT') {
echo $this->element('statement_entries', array
(// Grid configuration
'config' => array
(
'caption' => 'Statement Entries',
'filter' => array('transaction_id' => $transaction['id']),
'exclude' => array('Transaction'),
)));
}
/**********************************************************************