Fixed some minor display issues and tweaks to compensate for the new stats() algorithm. More are necessary, I'm sure.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716/site@375 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-23 23:54:40 +00:00
parent 127f7f3eb9
commit 4cab2c09c1
2 changed files with 16 additions and 4 deletions

View File

@@ -244,7 +244,11 @@ class StatementEntriesController extends AppController {
/* } */
$stats = $this->StatementEntry->stats($id);
//pr($stats);
if (strtoupper($entry['StatementEntry']['type']) === 'CHARGE')
$stats = $stats['Charge'];
else
$stats = $stats['Payment'];
// Prepare to render.
$title = "Statement Entry #{$entry['StatementEntry']['id']}";