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@375 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-07-23 23:54:40 +00:00
parent 122dfb10a0
commit c73016ecf2
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']}";

View File

@@ -55,10 +55,18 @@ echo $this->element('table',
* 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 = "Balance";
$remaining_caption = "Remaining Balance";
echo '<div class="infobox">' . "\n";
$rows = array();
$rows[] = array($applied_caption,