var override_queryfields = [
		{
			name : 'status_check_flag',
			queryexpression : "${@status_check_flag}='Y' and t1.status in ('VISITING')" 
		},
		{
			name : 'overdue_amount_from',
			queryexpression : "t1.overdue_amount >= ${@overdue_amount_from}"
		},
		{
			name : 'overdue_amount_to',
			queryexpression : "t1.overdue_amount <= ${@overdue_amount_to}"
		}

];
var add_datafilters = [ {
	name : 'enable_user_authority',
	expression : "(${/session/@enable_user_authority}= 'Y' and exists ( select 1 from aut_trx_user_authorize a1, aut_owner_user_authorize a2 where a1.trx_category = 'COLL_CALL' and a1.trx_id = t1.col_id and trunc (sysdate) between a1.start_date and nvl(a1.end_date, trunc (sysdate)) and a1.user_id = a2.owner_user_id and a1.trx_category = a2.trx_category and a2.authorized_user_id = ${/session/@user_id} and trunc (sysdate) between a2.start_date and nvl(a2.end_date, trunc (sysdate))))"
} ];
add_datafilter();
override();
