var method = 'FM_MBTS_IDS_RETRIEVE_FOR_HISTORY.authoritative';
if (xul_param('current')) method = 'FM_MBTS_IDS_RETRIEVE_ALL_HAVING_BALANCE.authoritative';
var date2 = $('bills_date2').dateValue;
- date2.setHours(23); date2.setMinutes(59); date2.setSeconds(59);
+ date2.setDate( date2.getDate() + 1 ); // Javascript will wrap into subsequent months
var filter = {
'xact_start' : {
'between' : [
$('bills_date1').value,
$('bills_date2').value == util.date.formatted_date(new Date(),'%F') ?
- 'now' : util.date.formatted_date( date2 ,'%{iso8601}')
+ 'now' : util.date.formatted_date( date2 ,'%F')
]
}
}
$('payments_meter').hidden = false;
var date2 = $('payments_date2').dateValue;
- date2.setHours(23); date2.setMinutes(59); date2.setSeconds(59);
+ date2.setDate( date2.getDate() + 1 ); // Javascript will wrap into subsequent months
var filters = {
'where' : {
'payment_ts' : {
'between' : [
$('payments_date1').value,
$('payments_date2').value == util.date.formatted_date(new Date(),'%F') ?
- 'now' : util.date.formatted_date( date2 ,'%{iso8601}')
+ 'now' : util.date.formatted_date( date2 ,'%F')
]
}
}
dojo.require('openils.PermaCrud');
var pcrud = new openils.PermaCrud( { authtoken :ses() });
var date2 = document.getElementById('date2').dateValue;
- date2.setHours(23); date2.setMinutes(59); date2.setSeconds(59);
+ date2.setDate( date2.getDate() + 1 ); // Javascript will wrap into subsequent months
pcrud.search(
'ausp',
{
'between' : [
document.getElementById('date1').value,
document.getElementById('date2').value == util.date.formatted_date(new Date(),'%F') ?
- 'now' :util.date.formatted_date( date2 ,'%{iso8601}')
+ 'now' : util.date.formatted_date( date2 ,'%F')
]
}
},