Modified the statement entries grid, as well as the underlying controller, to support a couple new fields, 'applied' and 'balance'.
git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@532 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
@@ -303,17 +303,17 @@ echo ('<DIV CLASS="receipt grid-selection-text">' .
|
||||
|
||||
|
||||
echo $this->element('statement_entries', array
|
||||
(// Element configuration
|
||||
'account_ftype' => 'credit',
|
||||
'limit' => 8,
|
||||
|
||||
// Grid configuration
|
||||
(// Grid configuration
|
||||
'config' => array
|
||||
(
|
||||
'grid_div_id' => 'charge-entries',
|
||||
'grid_div_class' => 'text-below',
|
||||
'caption' => '<SPAN id="receipt-charges-caption"></SPAN>',
|
||||
'rows' => $charges,
|
||||
'action' => 'idlist',
|
||||
'exclude' => array('Customer', 'Unit', 'Type', 'Debit', 'Credit'),
|
||||
'include' => array('Amount', 'Applied', 'Balance'),
|
||||
'remap' => array('Applied' => 'Paid'),
|
||||
'limit' => 8,
|
||||
),
|
||||
));
|
||||
|
||||
@@ -393,15 +393,11 @@ Configure::write('debug', '0');
|
||||
showCurrentAtPos: 0,
|
||||
dateFormat: 'mm/dd/yy' });
|
||||
|
||||
datepickerNow('TransactionStamp');
|
||||
|
||||
$("#receipt-customer-id").html("INTERNAL ERROR");
|
||||
$("#receipt-customer-name").html("INTERNAL ERROR");
|
||||
$("#receipt-balance").html("INTERNAL ERROR");
|
||||
$("#receipt-charges-caption").html("Outstanding Charges");
|
||||
|
||||
resetForm();
|
||||
|
||||
<?php if (isset($customer['id'])): ?>
|
||||
$("#customer-id").val(<?php echo $customer['id']; ?>);
|
||||
//$("#receipt-customer-id").html("<?php echo '#'.$customer['id']; ?>");
|
||||
@@ -417,6 +413,9 @@ Configure::write('debug', '0');
|
||||
onGridState(null, 'visible');
|
||||
<?php endif; ?>
|
||||
|
||||
resetForm();
|
||||
datepickerNow('TransactionStamp');
|
||||
|
||||
});
|
||||
--></script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user