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:
@@ -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']}";
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user