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); $stats = $this->StatementEntry->stats($id);
//pr($stats);
if (strtoupper($entry['StatementEntry']['type']) === 'CHARGE')
$stats = $stats['Charge'];
else
$stats = $stats['Payment'];
// Prepare to render. // Prepare to render.
$title = "Statement Entry #{$entry['StatementEntry']['id']}"; $title = "Statement Entry #{$entry['StatementEntry']['id']}";

View File

@@ -55,10 +55,18 @@ echo $this->element('table',
* Entry Info Box * Entry Info Box
*/ */
echo '<div class="infobox">' . "\n"; if (strtoupper($entry['type']) === 'CHARGE') {
$applied_caption = "Payments Applied";
//$remaining_caption = "Charge Balance";
}
else {
$applied_caption = "Applied to Charges";
//$remaining_caption = "Payment Balance";
}
$applied_caption = "Applied"; $remaining_caption = "Remaining Balance";
$remaining_caption = "Balance";
echo '<div class="infobox">' . "\n";
$rows = array(); $rows = array();
$rows[] = array($applied_caption, $rows[] = array($applied_caption,