More tweaking with grids that need to be reloaded immediately after page load. Fixed a bug with the statement_entry balance field, as there were two of them.

git-svn-id: file:///svn-source/pmgr/branches/yafr_20090716@534 97e9348a-65ac-dc4b-aefc-98561f571b83
This commit is contained in:
abijah
2009-08-11 15:56:40 +00:00
parent b6ee958c35
commit fc4e812d67
4 changed files with 16 additions and 7 deletions

View File

@@ -222,6 +222,10 @@ function updateChargesGrid(idlist) {
$('#charge-entries-jqGrid')
.setGridParam({ page: 1 })
.trigger("reloadGrid");
var gridstate = $('#charge-entries-jqGrid').getGridParam('gridstate');
if (gridstate == 'hidden')
$('#charge-entries .HeaderButton').click();
}
function updateCharges(id) {
@@ -308,10 +312,11 @@ echo $this->element('statement_entries', array
(
'grid_div_id' => 'charge-entries',
'grid_div_class' => 'text-below',
'grid_setup' => array('hiddengrid' => true),
'caption' => '<SPAN id="receipt-charges-caption"></SPAN>',
'action' => 'idlist',
'exclude' => array('Customer', 'Unit', 'Type', 'Debit', 'Credit'),
'include' => array('Amount', 'Applied', 'Balance'),
'include' => array('Applied', 'Balance'),
'remap' => array('Applied' => 'Paid'),
'limit' => 8,
),