Query1!C0L!select!C0L!select u.user_id,u.group_id,g.name,b.branch_id,b.branchname,b.branchcode,b.city,c.company_id,c.companyname,c.companycode,u.displayname,u.isactive from app_user u,user_group g,company c,company_branch b where upper(u.loginid)=upper('val0') and u.loginpassword='val1' and u.group_id=g.group_id and u.company_id=c.company_id and u.branch_id=b.branch_id
Query2!C0L!select!C0L!select p.page_id,p.menulabel,p.targeturl,p.parentpage,p.pageorder,up.permission,p.targetwindow,up.requestval,0 as temp from permission up,pages p where up.group_id=val0 and p.isvisible=1 and up.page_id=p.page_id and up.permission <> '000' and up.page_id not in (select page_id from denied_pages where user_id=val1) order by p.parentpage asc,p.pageorder desc
Query3!C0L!select!C0L!select portfolio_id,portname from portfolio where branch_id=val0 and isactive=1 order by portname
Query4!C0L!select!C0L!select portbranch_id,bkbranchname from portfolio_bank_branch where portfolio_id=val0 and isactive=1
Query5!C0L!select!C0L!select op.opt_value as valfield,op.val_description,op.description from comp_popup_options op where op.branch_id=val0 and val1 order by op.val_description
Query6!C0L!select!C0L!select op.opt_value as city,op.val_description from comp_popup_options op where op.branch_id=val0 and op.description='CITY' order by op.val_description
Query7!C0L!select!C0L!select op.opt_value as document,op.val_description from popup_options op where op.portfolio_id=val0 and op.description='DOCUMENT' order by op.val_description
Query8!C0L!select!C0L!select op.opt_value as city,op.val_description from comp_popup_options op where op.branch_id=val0 and op.description='APPTYPE' order by op.val_description
Query9!C0L!select!C0L!select op.opt_value as category,op.val_description from popup_options op where op.portfolio_id=val0 and op.description='CATEGORY' order by op.val_description
Query10!C0L!select!C0L!select control from app_process where page_id=val0 and val1>0 and process_id not in (select process_id from denied_process where portfolio_id=val1 and isdenied=1)
Query11!C0L!select!C0L!select label,control,controlid,valuetypescript,validationscript,style,cssclass,field_id from dynamic_controls where page_id=val0 and portfolio_id=val1
Query12!C0L!select!C0L!select field_id,fieldvalue as valuepart, fieldvalue as textpart from field_value where field_id=val0 order by valorder
Query13!C0L!select!C0L!select colony_id||'#-#'||pincode||'#-#'||city as id,location as location from colony where upper(location) like 'val0%' val1 order by location
Query14!C0L!insert!C0L!insert into user_loginhistory (loginid,logintime) values ('val0','val1')
Query15!C0L!update!C0L!update user_loginhistory set logouttime='val0',ipaddr='val1' where logintime='val2' and upper(loginid)=upper('val3')
Query16!C0L!procedure!C0L!select casepunching ('val0','val1',val2,'val3',val4,val5)
Query17!C0L!update!C0L!update main_operations c set telesheet= COALESCE((select -1 from denied_process d where process_id=9 and d.portfolio_id=(select portfolio_id from main where uuid=c.uuid) and d.isdenied=1),(case when (select rtv+otv from main where uuid=c.uuid) > 0 then 1 else 0 end)), allocation= COALESCE ((select -1 from denied_process d where process_id=7 and d.portfolio_id=(select portfolio_id from main where uuid=c.uuid) and d.isdenied=1),1), sms= COALESCE ((select -1 from denied_process d where process_id=8 and d.portfolio_id=(select portfolio_id from main where uuid=c.uuid) and d.isdenied=1),1), earlier= COALESCE ((select -1 from denied_process d where process_id=11 and d.portfolio_id=(select portfolio_id from main where uuid=c.uuid) and d.isdenied=1),1), negative= COALESCE ((select -1 from denied_process d where process_id=12 and d.portfolio_id=(select portfolio_id from main where uuid=c.uuid) and d.isdenied=1),1), refsheet= COALESCE ((select -1 from denied_process d where process_id=10 and d.portfolio_id=(select portfolio_id from main where uuid=c.uuid) and d.isdenied=1),1), cutoffon='val0',islocked=val3 where (c.cutoffby is null or c.cutoffby=0) and ((select addedby from main m where m.uuid=c.uuid) <> 0) and company_id=val1 and branch_id=val2 and (islocked=0 or islocked='val3')
Query18!C0L!select!C0L!select portfolio_id,(portname||' ('||count(*)||')') as portname,(case when sum(allocation)<=0 then -1 else 1 end) as allocation,(case when sum(sms)<=0 then -1 else 1 end) as sms,(case when sum(telesheet)>=1 then 1 else 0 end) as telesheet,(case when sum(earlier)<=0 then -1 else 1 end) as earlier,(case when sum(negative)<=0 then -1 else 1 end) as negative,(case when islocked!=val3 then 1 else 0 end) as islocked,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) from cutoff_operations c where (cutoffby is null or cutoffby=0) and (select addedby from main m where m.uuid=c.uuid) <> 0 and company_id=val1 and branch_id=val2 group by portfolio_id,portname,islocked
Query19!C0L!select!C0L!select distinct raddr1,raddr2,raddr3,rlandmark,rcolony,(select location from colony where colony_id=rcolony) as colr,rcity,rpincode,rphone from main where upper(applno)=upper('val0') and portfolio_id=val1 and receivedate='val2' and isdeleted=0 and rcolony>0
Query20!C0L!select!C0L!select distinct companyname,oaddr1,oaddr2,oaddr3,olandmark,ocolony,(select location from colony where colony_id=ocolony) as colo,ocity,opincode,ophone,extension from main where upper(applno)=upper('val0') and portfolio_id=val1 and receivedate='val2' and isdeleted=0 and ocolony>0
Query21!C0L!select!C0L!select distinct paddr1,paddr2,paddr3,plandmark,pcolony,(select location from colony where colony_id=pcolony) as colp,pcity,ppincode from main where upper(applno)=upper('val0') and portfolio_id=val1 and receivedate='val2' and isdeleted=0 and pcolony>0
Query22!C0L!select!C0L!select distinct bankcode,bank_branch_id,product,loanamount,'Co-Applicant' as apptype,contactperson,specialinst from main where upper(applno)=upper('val0') and portfolio_id=val1 and receivedate='val2' and isdeleted=0
Query23!C0L!select!C0L!select uuid, mvcode, upper(applno), upper(customername), upper(apptype),upper(product),to_char(receivedate,'DD-MON-YYYY HH24:MI:SS'),(select displayname from app_user u where u.user_id=addedby),bkbranchcode,portfolio_id from editcasesgrid where portfolio_id=val0 and branch_id=val1 order by receivedate,applno,apptype
Query24!C0L!select!C0L!SELECT mm.case_id,mm.portfolio_id,mm.mvcode,mm.bank_branch_id,mm.applno,mm.product,mm.loanamount,mm.customername,mm.apptype,mm.category,mm.dob,mm.contactperson,mm.mobileno,mm.raddr1,mm.raddr2,mm.raddr3,mm.rlandmark,mm.rcolony AS "Rcolony",mm.rcity,mm.rpincode,mm.rphone,mm.companyname,mm.oaddr1,mm.oaddr2,mm.oaddr3,mm.olandmark,mm.ocolony AS "Ocolony",mm.ocity,mm.opincode,mm.department,mm.designation,mm.ophone,mm.extension,mm.paddr1,mm.paddr2,mm.paddr3,mm.plandmark,mm.pcolony AS "Pcolony",mm.pcity,mm.ppincode,mm.refname1,mm.refaddress1,mm.refcontactno1,mm.refname2,mm.refaddress2,mm.refcontactno2,mm.rv,mm.rtv,mm.ov,mm.otv,mm.pv,mm.refv,mm.docv,mm.rco,mm.rcp,mm.ocp,mm.specialinst,mm.sradd,mm.soadd,mm.spadd,rc.location AS colr,oc.location AS colo,pc.location AS colp,mm.fathername,mm.bankcode,0 AS status,mm.company_id,mm.branch_id,mm.uuid,jsonb_strip_nulls(jsonb_build_object('field1',mm.field1,'field2',mm.field2,'field3',mm.field3,'field4',mm.field4,'field5',mm.field5,'field6',mm.field6,'field7',mm.field7,'field8',mm.field8,'field9',mm.field9,'field10',mm.field10,'field11',mm.field11,'field12',mm.field12,'dtfield1',to_char(mm.dtfield1,'DD/MM/YYYY'),'field150',mm.field150,'field150_2',mm.field150_2))::text AS dynamic_fields FROM main_mainopr mm LEFT JOIN colony rc ON rc.colony_id=mm.rcolony LEFT JOIN colony oc ON oc.colony_id=mm.ocolony LEFT JOIN colony pc ON pc.colony_id=mm.pcolony WHERE (((?<>'' AND mm.uuid=?) OR (?='' AND mm.portfolio_id=? AND COALESCE(mm.cutoffby,0)=0)) AND mm.company_id=? AND mm.branch_id=?) ORDER BY mm.case_id
Query25!C0L!procedure!C0L!select caseediting('update main set val0','val1','val2',val3,val4,val5,val6)
Query26!C0L!procedure!C0L!select createcutofflist('val0')
Query27!C0L!update!C0L!update main_operations set islocked=val2 where cutoffby > 0 and (islocked=0 or islocked=val2) and (allocatedby is null or allocatedby=0) and company_id=val0 and branch_id=val1 and allocation=1
Query28!C0L!select!C0L!select portfolio_id,(portname||' ('||count(*)||')') as portname,sum(rv) as rv,sum(ov) as ov,sum(pv) as pv,(case when islocked!=val2 then 1 else 0 end) as islocked,allocation,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) as lockedby from cutoff_operations where (allocatedby is null or allocatedby=0) and cutoffby>0 and company_id=val0 and branch_id=val1 and allocation=1 and (rv=1 or ov=1 or pv=1) group by portfolio_id,portname,islocked,allocation
Query29!C0L!select!C0L!select mvcode,applno,customername,apptype,rv,ov,pv,(case when islocked!=val2 then 1 else 0 end) as islocked,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) as lockedby,allocation,rcolony,ocolony,pcolony,uuid,portgroup from cutoff_operations where (allocatedby is null or allocatedby=0) and cutoffby>0 and islocked=val2 and company_id=val0 and branch_id=val1 and allocation=1 and portfolio_id=val3 and (rv=1 or ov=1 or pv=1) order by applno,apptype
Query30!C0L!procedure!C0L!select allocatecase('val0',val1,val2,val3,val4,val5,val6,val7,'val8',val9,val10,val11,'val12')
Query31!C0L!update!C0L!update main_operations set islocked=val2 where cutoffby > 0 and (islocked=0 or islocked=val2) and (telesheetby is null or telesheetby=0) and company_id=val0 and branch_id=val1 and telesheet=1
Query32!C0L!select!C0L!select c.portfolio_id,(c.portname||' ('||count(*)||')') as portname,sum(c.rtv) as rtv,sum(c.otv) as otv,sum(c.refv) as refv,(case when c.islocked!=val2 then 1 else 0 end) as islocked,c.telesheet,(select (loginid||' ('||displayname||')') from app_user where user_id=c.islocked) as lockedby,pf.tsformat as outputformat, pf.tsfunction as outputfunction,0 as temp from cutoff_operations c,process_formats pf where (c.telesheetby is null or c.telesheetby=0) and c.cutoffby>0 and c.company_id=val0 and c.branch_id=val1 and c.telesheet=1 and (c.rtv>0 or c.otv>0) and pf.portfolio_id=c.portfolio_id group by c.portfolio_id,c.portname,c.islocked,c.telesheet,tsformat,tsfunction
Query33!C0L!select!C0L!select mvcode,applno,customername,apptype,rtv,otv,refv,(case when islocked!=val2 then 1 else 0 end) as islocked,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) as lockedby,telesheet,uuid from cutoff_operations where (telesheetby is null or telesheetby=0) and cutoffby>0 and islocked=val2 and company_id=val0 and branch_id=val1 and telesheet=1 and portfolio_id=val3 and (rtv=1 or otv=1) order by applno,apptype
Query34!C0L!update!C0L!update main_operations set islocked=val0,telesheeton='val1',telesheetby=val2 where uuid='val3'
QueryXX35XX!C0L!select!C0L!select ('Tele Verification Report ( '||b.portname||' )') as title,'Received Date' as recdate,receivedate,'Branch' as region,upper(b.bkbranchname) as branchname,'Verification Code' as vercode,mvcode,'Application Ref. No.' as fileno,upper(applno),'Agency Name' as agname,upper(maincompany) as matrx,'RESIDENCE TELEPHONE' as ressec,'Name of Applicant' as appname,upper(customername),upper(apptype),'Resi Address of Applicant' as resadd,(upper(raddr1)||' '||upper(raddr2)||' '||upper(raddr3)||' '||(case when rcity='-1' then '' else upper(rcity) end)) as radd,'Permanent Add of Applicant' as permadd,'' as padd,'Contact Telephone Numbers' as ctel,(mobileno||','||rphone) as contactno,'Type of Residence' as restype,'Owned' as owned,'Rented' as rented,'Company Accomodation' as compacc,'With Parents' withpar,'With Relatives' as withrel,'With Friends' as withf,'Paying Guest' as withp,'Special Instructions' as splinst,upper(specialinst),'The following is based on Telephonic conversation :' as t1,'Name of the Person spoken to' as spkto,'' as spkto2,'Relation with application' as relwith,'' as relwith2,'The following is based on CD-ROM Check:' as t2,'Name of applicant confirmed at given telephone number' as t3,'Yes' as ys,'No' as no,'Telecalling Log' as t4,'Attempt' as atmp,'1st' as fst,'2nd' as iind,'3rd' as rd,'4th' as fth,'5th' as ffth,'Date & Time of Calling' as dtc,'' as dt1,'' as dt2,'' as dt3,'' as dt4,'' as dt5,'Other Remarks :' as othrem,'' as ln1,'' as ln2,'' as ln3,'' as ln4,'' as ln5,'Televerification Results' as rtr,'Positive' as pos,'Negative' as neg,'OFFICE TELEPHONE' as oftel,'Office Telephone Numbers' as oftelno,(mobileno||','||ophone) as ocontactno,'Extn. No.' as ext,extension,'Name of Applicant' as appname,upper(customername) as ocust,'Designation' as des,upper(designation),'Working Since' as wks,'' as wks1,'Department' as dept,upper(department) as department,'For Self employed-Type of organization' as t6,'Proprietorship' as propr,'Partnership' as partnr,'Pvt. Ltd.' as pvtld,'Public. Ltd.' as publtd,'Others' as othr,'Nature of Business' as nob,'Trading' as trd,'Manufacturing' as mfg,'Processing' as prcs,'Builder' as buildr,'Contractor' as contr,'' as nob1,'Brokerage' as brok,'Consultancy' as consult,'Professional' as profs,'Others' as othr,'' as blnk,'Nature of the Company' as noc,'' as noc1,'Office Address' as offad,(upper(oaddr1)||' '||upper(oaddr2)||' '||upper(oaddr3)||' '||(case when ocity='-1' then '' else upper(ocity) end)) as oaddr,'Landmarks' as lndm,'' as ldnmk,'Special Instructions' as sploins,upper(specialinst) as ospel,'The following is based on Telephonic conversation :' as t7,'Name of the person spoken to' as pspkto,'' as pspkt2,'Designation' as cdesig,'' as cdesig1,'Relationship with applicant' as orelwith,'Colleague' as ocoll,'Partner' as optnr,'Superior' as osup,'Relative' as orelv,'Others' as othro,'The following is based on CD-ROM Check:' as t8,'Name of applicant confirmed at given telephone number' as t9,'Yes' as oys,'No' as onso,'Telecalling Log' as t10,'Attempt' as oatmp,'1st' as of1,'2nd' as of2,'3rd' as of3,'4th' as of4,'5th' as of5,'Date & Time of Calling' as odt,'' as odt1,'' as odt2,'' as odt3,'' as odt4,'' as odt5,'Others Remarks :' as othrrem,'' as orm1,'' as orm2,'' as orm3,'' as orm4,'' as orm5,'Televerification Results' as otlst,'Positive' as opost,'Negative' as onegt,rtv,otv from cutoff_operations c,portfolio_bank_branch b where c.bank_branch_id=b.portbranch_id and c.portfolio_id=val0 and c.islocked=val1 and c.telesheeton='val2'
Query36!C0L!update!C0L!update main_operations set islocked=val2 where allocation=1 and allocatedby > 0 and (islocked=0 or islocked=val2) and company_id=val0 and branch_id=val1 and sms=1 and smson is null
Query37!C0L!select!C0L!select s.uid,s.uuid,s.portfolio_id,(select portname from portfolio p where p.portfolio_id=s.portfolio_id) as portname,s.visittype,s.smsmessage,COALESCE(v.verifiercode,'NAL') as vercode,s.noofsms,(case when s.smsstatus=0 then 'outbox' else 'smsfailed' end) as smsstatus,(case when c.islocked!=val2 then 1 else 0 end) as islocked,sms,(select (loginid||' ('||displayname||')') from app_user where user_id=c.islocked) as lockedby,COALESCE(v.mobileno,'0000000000') as mobileno,COALESCE(s.smsresponse,'-') as smsresponse from cutoff_operations c, sms s left join verifier v on s.verifier_id=v.verifier_id where c.allocatedby > 0 and c.cutoffby>0 and s.company_id=val0 and s.branch_id=val1 and c.sms=1 and (c.rv=1 or c.ov=1 or c.pv=1) and v.mobileno <> '0000000000' and c.uuid=s.uuid and s.smsstatus!=1 and isdeleted=0 and activity=0 order by portname
Query38!C0L!select!C0L!select sg_id,serviceprovider,(case when isdefault=1 then 'selected' else '' end) as isdefault,0 as temp from smsgateways where (company_id=val0 and branch_id=val1) or (company_id=0 and branch_id=0) and isactive=1
Query39!C0L!select!C0L!select g.gatewayurl,g.messagekey,t.templatetype,t.template,t.mappedfields,g.querystr,g.errcode,g.successcode,g.errreplacechars,g.successreplacechars from smsgateways g,smstemplates t where g.isactive=1 and t.isactive=1 and g.sg_id=t.sg_id and g.sg_id=val0
Query40!C0L!procedure!C0L!select updatesms(val0,'val1','val2',val3,val4,val5,'val6')
Query41!C0L!select!C0L!select c.cutoffon,to_char(c.cutoffon,'DD-Mon-YYYY HH12:MI:SS AM') as convcutoffon,sum(c.rv)+sum(c.ov)+sum(c.pv) as totaddr,count(*) as totcase,(case when (c.islocked!=val2 and c.islocked >0) then 1 else 0 end) as islocked,COALESCE((select (loginid||' ('||displayname||')') from app_user where user_id=c.islocked),'None') as lockedby from cutoff_operations c where (dedcutby is null or dedcutby=0) and cutoffby>0 and (earlier=1 or negative=1) and ((earlierby is null or earlierby=0) or (negativeby is null or negativeby=0)) and company_id=val0 and branch_id=val1 group by cutoffon,islocked
Query42!C0L!select!C0L!select mvcode,applno,customername,apptype,rv,ov,pv,(case when (islocked!=val3 and islocked > 0) then 1 else 0 end) as islocked,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) as lockedby,uuid,(case when negative=1 then (case when (negativeby is null or negativeby=0) then 1 else 0 end) else 0 end) negative,(case when earlier=1 then (case when (earlierby is null or earlierby=0) then 1 else 0 end) else 0 end) earlier from cutoff_operations where (dedcutby is null or dedcutby=0) and cutoffby>0 and company_id=val0 and branch_id=val1 and (earlier=1 or negative=1) and ((earlierby is null or earlierby=0) or (negativeby is null or negativeby=0)) and cutoffon='val2' order by mvcode
Query43!C0L!select!C0L!select dedupebyuuid('val0',val1,'val2','val3',val4)
Query44!C0L!update!C0L!update main_operations set islocked=val2 where cutoffby > 0 and (islocked=0 or islocked=val2) and (oprsendby is null or oprsendby=0) and company_id=val0 and branch_id=val1 and oprsend!=1 and ((allocation=1 and allocatedby > 0) or allocation!=1) and ((telesheet=1 and telesheetby>0) or telesheet!=1)
Query45!C0L!select!C0L!select portfolio_id,(portname||' ('||count(*)||')') as portname,sum(rv) as rv,sum(ov) as ov,sum(pv) as pv,sum(rtv) as rtv,sum(otv) as otv,sum(refv) as refv,(case when islocked!=val2 then 1 else 0 end) as islocked,1 as oprsend,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) as lockedby from cutoff_operations where (oprsendby is null or oprsendby=0) and cutoffby>=0 and company_id=val0 and branch_id=val1 and oprsend!=1 and ((allocation=1 and allocatedby > 0) or allocation!=1 or (rv=0 and ov=0 and pv=0 and allocation=1)) and ((telesheet=1 and telesheetby>0) or telesheet!=1) and (rv=1 or ov=1 or pv=1 or rtv=1 or otv=1) group by portfolio_id,portname,islocked,oprsend
Query46!C0L!select!C0L!select mvcode,applno,customername,apptype,rv,ov,pv,rtv,otv,refv,(case when islocked!=val2 then 1 else 0 end) as islocked,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) as lockedby,1 as oprsend,uuid from cutoff_operations where (oprsendby is null or oprsendby=0) and cutoffby>0 and islocked=val2 and company_id=val0 and branch_id=val1 and oprsend!=1 and ((allocation=1 and allocatedby > 0) or allocation!=1 or (rv=0 and ov=0 and pv=0 and allocation=1)) and ((telesheet=1 and telesheetby>0) or telesheet!=1) and portfolio_id=val3 and (rv=1 or ov=1 or pv=1 or rtv=1 or otv=1) order by applno,apptype
Query47!C0L!procedure!C0L!select sendtooperation('val0',val1,'val2',val3,val4,val5,val6)
Query48!C0L!select!C0L!select displayname,receivedate,timeperiod,count(*) from edpoperator_mis where receivedate>='val2' and receivedate<='val3' and company_id=val0 and branch_id=val1 group by receivedate,timeperiod,displayname order by timeperiod
Query49!C0L!select!C0L!select cutoffon,count(uuid) as tot from cutoff_operations where oprsend!=1 and cutoffby > 0 and company_id=val0 and branch_id=val1 group by cutoffon order by cutoffon
Query50!C0L!select!C0L!select uuid,portname,customername,cutoffon from cutoff_operations where oprsend!=1 and cutoffby > 0 and company_id=val0 and branch_id=val1 group by cutoffon,uuid,portname,customername order by cutoffon,portname,customername
Query51!C0L!procedure!C0L!select cutoffpending('val0','val1','val2','val3','val4','val5','val6',val7)
Query52!C0L!select!C0L!select c.uuid,c.portfolio_id,c.mvcode,c.applno,c.customername,c.apptype,(CASE WHEN c.rv = 1 THEN 'Y'::text ELSE 'N'::text END) AS rv,(CASE WHEN c.ov = 1 THEN 'Y'::text ELSE 'N'::text END) AS ov,(CASE WHEN c.pv = 1 THEN 'Y'::text ELSE 'N'::text END) AS pv,(CASE WHEN c.rtv = 1 THEN 'Y'::text ELSE 'N'::text END) AS rtv,(CASE WHEN c.otv = 1 THEN 'Y'::text ELSE 'N'::text END) AS otv,(CASE WHEN c.refv = 1 THEN 'Y'::text ELSE 'N'::text END) AS refv,(CASE WHEN c.docv = 1 THEN 'Y'::text ELSE 'N'::text END) AS docv, to_char(receivedate, 'DD/MM/YYYY') as receivedate,b.bkbranchname,'false' as delstat from cutoff_operations c,portfolio_bank_branch b where c.portfolio_id=val0 and c.branch_id=val1 and c.bank_branch_id=b.portbranch_id order by bkbranchname,customername
Query53!C0L!select!C0L!select uuid, portfolio_id, mvcode, applno, customername, apptype,rv,ov,pv, to_char(receivedate, 'DD/MM/YYYY') as receivedate,(case when (rv+ov+pv)=(rvdone+ovdone+pvdone) then 'Y' else 'N' end) as done from cutoff_operations where portfolio_id=val0 and (dedcutby is null or dedcutby=0) and ((earlierby>0 and earlier=1) or earlier=0) and ((negativeby>0 and negative=1) or negative=0) and (earlier=1 or negative=1) order by done desc,applno,apptype
Query54!C0L!select!C0L!select uuid, customername, mvcode, dob, mobileno,upper(raddr1||' '||raddr2||' '||raddr3) as resiaddr,upper(coalesce(companyname||' ','')||oaddr1||' '||oaddr2||' '||oaddr3) as offaddr,rphone,ophone,(case when category='-1' then 'NA' else upper(category) end) as category,0 as temp from main where uuid='val0' and isdeleted=0
Query55!C0L!delete!C0L!delete from main where val0
Query56!C0L!select!C0L!select * from deduperecord where source_uuid='val0'
Query57!C0L!select!C0L!select user_id,displayname||' | '||loginid from app_user where branch_id=val0 and group_id=9 and isactive=1
Query58!C0L!procedure!C0L!select updatededupe ('val0','val1','val2','val3','val4','val5',val6)
Query59!C0L!select!C0L!select verifier_id,verifiername,verifiercode,to_char(allocatedon, 'DD/MM/YYYY HH24:MI:SS') as allocatedon,coalesce((select displayname from app_user where user_id=allocatedby),'-') as allocby from verifier where operatorcode=val0 order by verifiername
Query60!C0L!select!C0L!select uuid,verifier,mvcode,applno,customername,apptype,product,portname,bkbranchname,to_char(receivedon, 'DD/MM/YYYY HH24:MI:SS') as receivedon,batch,verifiercode,visit,(CASE WHEN (islocked=1 and lockedby>0 and lockedby!=val0) then '
' else '' end) as flags,islocked,COALESCE ((select displayname||' ('||loginid||')' from app_user where user_id=lockedby),'') as lockedbyusr,portfolio_id,(case when (penremarks is null or length(penremarks)=0) then '' else '
' end ) as ispending,(case when doubtfull='Yes' then '
' else '' end ) as doubtfull,(case when requiredphoto=1 then '
' else '' end ) as requiredphoto,vi.mobile_imei as imei, 0 as tempf from reporting_operator r left join verifiers_imei vi on r.verifier=vi.verifier_id and vi.isactive=1 where opr=val0 and (val1) and (val2) and done=0 order by verifiercode,receivedon,mvcode,visit desc
Query61!C0L!select!C0L!select verifier_id,verifiercode||' | '||mobileno as verdetail from verifier where operatorcode=val0 and isactive=1 and verifiertype='VER' order by verifiercode
Query62!C0L!select!C0L!select verifier_id,verifiercode||' | '||verifiername as ver from verifier where branch_id=val0 and operatorcode=0 and isactive=1 and (verifiercode!='OFF') and verifiertype='VER' order by verifiercode
Query63!C0L!procedure!C0L!select opr_pending_sovled_calc(val0,'val1','val2','val3')
Query64!C0L!procedure!C0L!select operator_alloc_dealloc(val0,'val1','val2',val3,val4,val5)
Query65!C0L!procedure!C0L!select checkgainlock('val0','val1',val2,'val3')
QueryXXXXXXXXX!C0L!select!C0L!select (case when (val1lock=1 and val1lockby>0 and val1lockby!=val2) then (select displayname||' ('||loginid||')' from app_user where user_id=val1lockby) else 'lockfree' end) as lockstatus from temp_reporting where uuid='val0'
QueryXXXXXXXXX!C0L!update!C0L!update temp_reporting set val1lock=1,val1lockby=val2,val1lockon='val3' where uuid='val0'
Query67!C0L!update!C0L!update temp_reporting set val1lock=0,val1lockon='val2' where uuid='val0'
Query68!C0L!select!C0L!select belt_id,beltname from belt where branch_id=val0 and isactive=1 order by beltname
Query69!C0L!select!C0L!select verifier_id,verifiercode||' | '||verifiername as ver,mobileno from verifier where branch_id=val0 and isactive=1 and (verifiercode!='OFF' and verifiercode!='NIT') and verifiertype='VER' order by verifiercode
Query70!C0L!select!C0L!select op.opt_value as product,op.val_description,description from popup_options op where op.portfolio_id=val0 and (val1) order by op.description,op.val_description
Query71!C0L!select!C0L!select portfolio_id,portname,mvcode,applno,product,customername,apptype,contactperson,raddr,resiverifier,rvercode,branchname,loanamount,specialinst,receivedate,category,uuid,ruuid,addrconfd,changeinadd,correctaddr,visitdate,visittime,metperson,metrela,metrealoth,dob,age,yrsadd,mnthadd,yrscity,mnthcity,owner,owneroth,qual,qualoth,maritial,spswork,spsdesign,spscomp,spsempdet,spsname,totmem,earning,dependent,children,proof,proofdet,permadd,access,accmode,locality,locaoth,socboard,socboarddet,restype,typeoth,construction,constoth,exterior,nameplate,platedet,interior,furlevel,carpetarea,landmark,custbehav,fathname,offaddr,compname,design,phoneno,othphone,veropinion,doubtfull,verremarks,penremarks,risklevel,riskremarks,political,politicdet,redalert,alertrem,status,negreason,remarks,isocl,distance,issameadd,chkfield1,chkfield2,chkfield3,chkfield4,chkfield5,chkfield6,chkfield7,chkfield8,chkfield9,chkfield10,chkfield11,chkfield12,chkfield13,chkfield14,chkfield15,chkfield16,chkfield17,chkfield18,chkfield19,chkfield20,field30_1,field30_2,field30_3,field30_4,field30_5,field30_6,field30_7,field30_8,field30_9,field30_10,field30_11,field30_12,field30_13,field30_14,field30_15,field30_16,field30_17,field30_18,field30_19,field30_20,field30_21,field30_22,field30_23,field30_24,field30_25,field50_1,field50_2,field50_3,field50_4,field50_5,field50_6,field50_7,field50_8,field50_9,field50_10,field50_11,field50_12,field50_13,field50_14,field50_15,field150_1,field150_2,field150_3,field150_4,field150_5,field250_1,field250_2,field250_3,fieldtext_1,fieldtext_2,fieldtext_3,fieldtext_4,field15_1,field15_2,field15_3,field15_4,field15_5,field15_6,field15_7,field15_8,field15_9,field15_10,uid,resrequiredphoto,otherdetails,to_char(oprsendon,'DD/MM/YYYY HH24:II:SS') as oprsend,residence,rco,imei,comdom,allowascan,visitedbefore,isascan,contactable,noncontactablereason,rverifiername, 0 as temp FROM residence_report where uuid='val0'
Query72!C0L!procedure!C0L!select savereport('update residence set addrconfd=''val0'',changeinadd=''val1'',correctaddr=''val2'',visitdate=''val3'',visittime=''val4'',metperson=''val5'',metrela=''val6'',metrealoth=''val7'',dob=''val8'',age=''val9'',yrsadd=''val10'',mnthadd=''val11'',yrscity=''val12'',mnthcity=''val13'',owner=''val14'',owneroth=''val15'',qual=''val16'',qualoth=''val17'',maritial=''val18'',spswork=''val19'',spsdesign=''val20'',spscomp=''val21'',spsempdet=''val22'',spsname=''val23'',totmem=''val24'',earning=''val25'',dependent=''val26'',children=''val27'',proof=''val28'',proofdet=''val29'',permadd=''val30'',access=''val31'',accmode=''val32'',locality=''val33'',locaoth=''val34'',socboard=''val35'',socboarddet=''val36'',restype=''val37'',typeoth=''val38'',construction=''val39'',constoth=''val40'',exterior=''val41'',nameplate=''val42'',platedet=''val43'',interior=''val44'',furlevel=''val45'',carpetarea=''val46'',landmark=''val47'',custbehav=''val48'',fathname=''val49'',offaddr=''val50'',compname=''val51'',design=''val52'',phoneno=''val53'',othphone=''val54'',veropinion=''val55'',doubtfull=''val56'',verremarks=''val57'',penremarks=''val58'',risklevel=''val59'',riskremarks=''val60'',political=''val61'',politicdet=''val62'',redalert=''val63'',alertrem=''val64'',status=''val65'',negreason=''val66'',remarks=''val67'',isocl=''val68'',distance=''val69'',issameadd=''val70'',comdom=''val78'',visitedbefore=''val79'',contactable=''val80'',noncontactablereason=''val81'' val71 where uuid=''val72''',val73,'val74','val75',val76,'val72','val59','val60','val77','val57')
QueryOLD71!C0L!select!C0L!select portfolio_id,portname,mvcode,applno,product,customername,apptype,contactperson,raddr,resiverifier,rvercode,branchname,loanamount,specialinst,receivedate,category,uuid,ruuid,addrconfd,changeinadd,correctaddr,visitdate,visittime,metperson,metrela,metrealoth,dob,age,yrsadd,mnthadd,yrscity,mnthcity,owner,owneroth,qual,qualoth,maritial,spswork,spsdesign,spscomp,spsempdet,spsname,totmem,earning,dependent,children,proof,proofdet,permadd,access,accmode,locality,locaoth,socboard,socboarddet,restype,typeoth,construction,constoth,exterior,nameplate,platedet,interior,furlevel,carpetarea,landmark,custbehav,fathname,offaddr,compname,design,phoneno,othphone,veropinion,doubtfull,verremarks,penremarks,risklevel,riskremarks,political,politicdet,redalert,alertrem,status,negreason,remarks,isocl,distance,issameadd,chkfield1,chkfield2,chkfield3,chkfield4,chkfield5,chkfield6,chkfield7,chkfield8,chkfield9,chkfield10,chkfield11,chkfield12,chkfield13,chkfield14,chkfield15,chkfield16,chkfield17,chkfield18,chkfield19,chkfield20,field30_1,field30_2,field30_3,field30_4,field30_5,field30_6,field30_7,field30_8,field30_9,field30_10,field30_11,field30_12,field30_13,field30_14,field30_15,field30_16,field30_17,field30_18,field30_19,field30_20,field30_21,field30_22,field30_23,field30_24,field30_25,field50_1,field50_2,field50_3,field50_4,field50_5,field50_6,field50_7,field50_8,field50_9,field50_10,field50_11,field50_12,field50_13,field50_14,field50_15,field150_1,field150_2,field150_3,field150_4,field150_5,field250_1,field250_2,field250_3,fieldtext_1,fieldtext_2,fieldtext_3,fieldtext_4,field15_1,field15_2,field15_3,field15_4,field15_5,field15_6,field15_7,field15_8,field15_9,field15_10,uid,resrequiredphoto,otherdetails,to_char(oprsendon,'DD/MM/YYYY HH24:II:SS') as oprsend,residence,rco,imei,comdom,allowascan,visitedbefore,isascan, 0 as temp FROM residence_report where uuid='val0'
QueryOLD72!C0L!procedure!C0L!select savereport('update residence set addrconfd=''val0'',changeinadd=''val1'',correctaddr=''val2'',visitdate=''val3'',visittime=''val4'',metperson=''val5'',metrela=''val6'',metrealoth=''val7'',dob=''val8'',age=''val9'',yrsadd=''val10'',mnthadd=''val11'',yrscity=''val12'',mnthcity=''val13'',owner=''val14'',owneroth=''val15'',qual=''val16'',qualoth=''val17'',maritial=''val18'',spswork=''val19'',spsdesign=''val20'',spscomp=''val21'',spsempdet=''val22'',spsname=''val23'',totmem=''val24'',earning=''val25'',dependent=''val26'',children=''val27'',proof=''val28'',proofdet=''val29'',permadd=''val30'',access=''val31'',accmode=''val32'',locality=''val33'',locaoth=''val34'',socboard=''val35'',socboarddet=''val36'',restype=''val37'',typeoth=''val38'',construction=''val39'',constoth=''val40'',exterior=''val41'',nameplate=''val42'',platedet=''val43'',interior=''val44'',furlevel=''val45'',carpetarea=''val46'',landmark=''val47'',custbehav=''val48'',fathname=''val49'',offaddr=''val50'',compname=''val51'',design=''val52'',phoneno=''val53'',othphone=''val54'',veropinion=''val55'',doubtfull=''val56'',verremarks=''val57'',penremarks=''val58'',risklevel=''val59'',riskremarks=''val60'',political=''val61'',politicdet=''val62'',redalert=''val63'',alertrem=''val64'',status=''val65'',negreason=''val66'',remarks=''val67'',isocl=''val68'',distance=''val69'',issameadd=''val70'',comdom=''val78'',visitedbefore=''val79'' val71 where uuid=''val72''',val73,'val74','val75',val76,'val72','val59','val60','val77','val57')
Query73!C0L!procedure!C0L!select colony_transfer('val0', 'val1', 'val2', 'val3', 'val4')
Query74!C0L!select!C0L!select field_id, label, controlid, cssclass, containerid, maxlength, onclick, ondbclick, onfocus, onblur, onkeypress, onkeydown, onkeyup, onchange, ctrltype, ctrlwidth, ctrlheight, defaultvalue, fieldorder, fieldvalue, valorder, page_id, portfolio_id, template_id, template, template_type, isvisible from dynamic_controls where portfolio_id=val0 and page_id=val1 and template_type='val2' order by fieldorder,field_id,valorder,label,containerid
Query75!C0L!select!C0L!select val0 from val1 where val2
Query76!C0L!select!C0L!SELECT portfolio_id,portname,mvcode,applno,product,customername,apptype,contactperson,oaddr,offverifier,overcode,branchname,loanamount,specialinst,receivedate,category,uuid,ouuid,addrconfd,changeinadd,correctaddr,visitdate,visittime,metperson,metrela,metrealoth,dob,age,yrsjob,mnthjob,yrstot,mnthtot,ownership,owneroth,ophone,extn,appcategory,busitype,proddealt, appdesign,appdept,transferable,reportingto,compprof,jobconfby,saldetail,prevjobdet,prevjobyrs,setupdet,turnover,custperday,custseen,bizboard,locality,easeloc,busiact,totemp,totbranch,stockdet,fathname,bank,othsource,panno,stxno,loanamt,tenure, resadd,othphone,veropinion,doubtfull,verremarks,penremarks,risklevel,riskremarks,political,politicdet,redalert,alertrem,status,negreason,remarks,isocl,distance,issameadd, coalesce(chkfield1,''),coalesce(chkfield2,''),coalesce(chkfield3,''),coalesce(chkfield4,''),coalesce(chkfield5,''),coalesce(chkfield6,''),coalesce(chkfield7,''),coalesce(chkfield8,''),coalesce(chkfield9,''),coalesce(chkfield10,''),coalesce(chkfield11,''),coalesce(chkfield12,''),coalesce(chkfield13,''),coalesce(chkfield14,''),coalesce(chkfield15,''),coalesce(chkfield16,''),coalesce(chkfield17,''),coalesce(chkfield18,''),coalesce(chkfield19,''),coalesce(chkfield20,''),coalesce(field30_1,''),coalesce(field30_2,''),coalesce(field30_3,''),coalesce(field30_4,''),coalesce(field30_5,''),coalesce(field30_6,''),coalesce(field30_7,''),coalesce(field30_8,''),coalesce(field30_9,''),coalesce(field30_10,''),coalesce(field30_11,''),coalesce(field30_12,''),coalesce(field30_13,''),coalesce(field30_14,''),coalesce(field30_15,''),coalesce(field30_16,''),coalesce(field30_17,''),coalesce(field30_18,''),coalesce(field30_19,''),coalesce(field30_20,''),coalesce(field30_21,''),coalesce(field30_22,''),coalesce(field30_23,''),coalesce(field30_24,''),coalesce(field30_25,''),coalesce(field50_1,''),coalesce(field50_2,''),coalesce(field50_3,''),coalesce(field50_4,''),coalesce(field50_5,''),coalesce(field50_6,''),coalesce(field50_7,''),coalesce(field50_8,''),coalesce(field50_9,''),coalesce(field50_10,''),coalesce(field50_11,''),coalesce(field50_12,''),coalesce(field50_13,''),coalesce(field50_14,''),coalesce(field50_15,''),coalesce(field150_1,''),coalesce(field150_2,''),coalesce(field150_3,''),coalesce(field150_4,''),coalesce(field150_5,''),coalesce(field250_1,''),coalesce(field250_2,''),coalesce(field250_3,''),coalesce(fieldtext_1,''),coalesce(fieldtext_2,''),coalesce(fieldtext_3,''),coalesce(fieldtext_4,''),coalesce(appdesignoth,''),coalesce(companyname,''),coalesce(compprofoth,''),coalesce(jobtype,''),coalesce(jobproof,''),coalesce(locaoth,''),field15_1,field15_2,field15_3,field15_4,field15_5,field15_6,field15_7,field15_8,field15_9,field15_10,uid,offrequiredphoto,otherdetails,to_char(oprsendon,'DD/MM/YYYY HH24:II:SS') as oprsend,upper(designation) as designation,residence,salaried,selfemployed,rco,imei,contactable,noncontactablereason,visitedbefore,overifiername, 0 as temp from office_report where uuid='val0'
QueryOLD76!C0L!select!C0L!SELECT portfolio_id,portname,mvcode,applno,product,customername,apptype,contactperson,oaddr,offverifier,overcode,branchname,loanamount,specialinst,receivedate,category,uuid,ouuid,addrconfd,changeinadd,correctaddr,visitdate,visittime,metperson,metrela,metrealoth,dob,age,yrsjob,mnthjob,yrstot,mnthtot,ownership,owneroth,ophone,extn,appcategory,busitype,proddealt, appdesign,appdept,transferable,reportingto,compprof,jobconfby,saldetail,prevjobdet,prevjobyrs,setupdet,turnover,custperday,custseen,bizboard,locality,easeloc,busiact,totemp,totbranch,stockdet,fathname,bank,othsource,panno,stxno,loanamt,tenure, resadd,othphone,veropinion,doubtfull,verremarks,penremarks,risklevel,riskremarks,political,politicdet,redalert,alertrem,status,negreason,remarks,isocl,distance,issameadd, coalesce(chkfield1,''),coalesce(chkfield2,''),coalesce(chkfield3,''),coalesce(chkfield4,''),coalesce(chkfield5,''),coalesce(chkfield6,''),coalesce(chkfield7,''),coalesce(chkfield8,''),coalesce(chkfield9,''),coalesce(chkfield10,''),coalesce(chkfield11,''),coalesce(chkfield12,''),coalesce(chkfield13,''),coalesce(chkfield14,''),coalesce(chkfield15,''),coalesce(chkfield16,''),coalesce(chkfield17,''),coalesce(chkfield18,''),coalesce(chkfield19,''),coalesce(chkfield20,''),coalesce(field30_1,''),coalesce(field30_2,''),coalesce(field30_3,''),coalesce(field30_4,''),coalesce(field30_5,''),coalesce(field30_6,''),coalesce(field30_7,''),coalesce(field30_8,''),coalesce(field30_9,''),coalesce(field30_10,''),coalesce(field30_11,''),coalesce(field30_12,''),coalesce(field30_13,''),coalesce(field30_14,''),coalesce(field30_15,''),coalesce(field30_16,''),coalesce(field30_17,''),coalesce(field30_18,''),coalesce(field30_19,''),coalesce(field30_20,''),coalesce(field30_21,''),coalesce(field30_22,''),coalesce(field30_23,''),coalesce(field30_24,''),coalesce(field30_25,''),coalesce(field50_1,''),coalesce(field50_2,''),coalesce(field50_3,''),coalesce(field50_4,''),coalesce(field50_5,''),coalesce(field50_6,''),coalesce(field50_7,''),coalesce(field50_8,''),coalesce(field50_9,''),coalesce(field50_10,''),coalesce(field50_11,''),coalesce(field50_12,''),coalesce(field50_13,''),coalesce(field50_14,''),coalesce(field50_15,''),coalesce(field150_1,''),coalesce(field150_2,''),coalesce(field150_3,''),coalesce(field150_4,''),coalesce(field150_5,''),coalesce(field250_1,''),coalesce(field250_2,''),coalesce(field250_3,''),coalesce(fieldtext_1,''),coalesce(fieldtext_2,''),coalesce(fieldtext_3,''),coalesce(fieldtext_4,''),coalesce(appdesignoth,''),coalesce(companyname,''),coalesce(compprofoth,''),coalesce(jobtype,''),coalesce(jobproof,''),coalesce(locaoth,''),field15_1,field15_2,field15_3,field15_4,field15_5,field15_6,field15_7,field15_8,field15_9,field15_10,uid,offrequiredphoto,otherdetails,to_char(oprsendon,'DD/MM/YYYY HH24:II:SS') as oprsend,upper(designation) as designation,residence,salaried,selfemployed,rco,imei, 0 as temp from office_report where uuid='val0'
Query77!C0L!insert!C0L!insert into colony(location,zone,city,pincode,colgroup,beltname,createdon,verifier_id,createdby,branch_id) values(val0)
Query78!C0L!select!C0L!select distinct op.opt_value as product,op.val_description from comp_popup_options op where op.company_id=val0 and op.branch_id=val1 and op.description='CITY' order by op.val_description
Query79!C0L!procedure!C0L!select savereport('Update office set addrconfd=''val1'',changeinadd=''val2'',correctaddr=''val3'',visitdate=''val4'',visittime=''val5'',metperson=''val6'',metrela=''val7'',metrealoth=''val8'',dob=''val9'',age=''val10'',yrsjob=''val11'',mnthjob=''val12'',yrstot=''val13'',mnthtot=''val14'',ownership=''val15'',owneroth=''val16'',ophone=''val17'',extn=''val18'',appcategory=''val19'',busitype=''val20'',proddealt=''val21'',appdesign=''val22'',appdept=''val23'',transferable=''val24'',reportingto=''val25'',compprof=''val26'',jobconfby=''val27'',saldetail=''val28'',prevjobdet=''val29'',prevjobyrs=''val30'',setupdet=''val31'',turnover=''val32'',custperday=''val33'',custseen=''val34'',bizboard=''val35'',locality=''val36'',easeloc=''val37'',busiact=''val38'',totemp=''val39'',totbranch=''val40'',stockdet=''val41'',fathname=''val42'',bank=''val43'',othsource=''val44'',panno=''val45'',stxno=''val46'',loanamt=''val47'',tenure=''val48'',resadd=''val49'',othphone=''val50'',veropinion=''val51'',doubtfull=''val52'',verremarks=''val53'',penremarks=''val54'',risklevel=''val55'',riskremarks=''val56'',political=''val57'',politicdet=''val58'',redalert=''val59'',alertrem=''val60'',status=''val61'',negreason=''val62'',remarks=''val63'',isocl=''val64'',distance=''val65'',issameadd=''val66'',appdesignoth=''val67'',compprofoth=''val68'',jobtype=''val69'',jobproof=''val70'',locaoth=''val71'',contactable=''val78'',noncontactablereason=''val79'',visitedbefore=''val80'' val72 where uuid=''val0''',val73,'val74','val75',val76,'val0','val55','val56','val77','val53')
QueryOLD79!C0L!procedure!C0L!select savereport('Update office set addrconfd=''val1'',changeinadd=''val2'',correctaddr=''val3'',visitdate=''val4'',visittime=''val5'',metperson=''val6'',metrela=''val7'',metrealoth=''val8'',dob=''val9'',age=''val10'',yrsjob=''val11'',mnthjob=''val12'',yrstot=''val13'',mnthtot=''val14'',ownership=''val15'',owneroth=''val16'',ophone=''val17'',extn=''val18'',appcategory=''val19'',busitype=''val20'',proddealt=''val21'',appdesign=''val22'',appdept=''val23'',transferable=''val24'',reportingto=''val25'',compprof=''val26'',jobconfby=''val27'',saldetail=''val28'',prevjobdet=''val29'',prevjobyrs=''val30'',setupdet=''val31'',turnover=''val32'',custperday=''val33'',custseen=''val34'',bizboard=''val35'',locality=''val36'',easeloc=''val37'',busiact=''val38'',totemp=''val39'',totbranch=''val40'',stockdet=''val41'',fathname=''val42'',bank=''val43'',othsource=''val44'',panno=''val45'',stxno=''val46'',loanamt=''val47'',tenure=''val48'',resadd=''val49'',othphone=''val50'',veropinion=''val51'',doubtfull=''val52'',verremarks=''val53'',penremarks=''val54'',risklevel=''val55'',riskremarks=''val56'',political=''val57'',politicdet=''val58'',redalert=''val59'',alertrem=''val60'',status=''val61'',negreason=''val62'',remarks=''val63'',isocl=''val64'',distance=''val65'',issameadd=''val66'',appdesignoth=''val67'',compprofoth=''val68'',jobtype=''val69'',jobproof=''val70'',locaoth=''val71'' val72 where uuid=''val0''',val73,'val74','val75',val76,'val0','val55','val56','val77','val53')
Query80!C0L!select!C0L!select colony_id,pincode,location,zone,city,belt,belt_id from colony_grid where branch_id=val0 order by belt,location
Query81!C0L!select!C0L!SELECT portfolio_id,portname,mvcode,applno,product,customername,apptype,contactperson,paddr,propverifier,pvercode,branchname,loanamount,specialinst,receivedate,category,uuid,puuid,field3_1,field3_2,field3_3,field3_4,field3_5,field3_6,field3_7,field3_8,field3_9,field3_10,field10_1,field10_2,field10_3,field10_4,field10_5,field10_6,field10_7,field10_8,field10_9,field10_10,field20_1,field20_2,field20_3,field20_4,field20_5,field20_6,field20_7,field20_8,field20_9,field20_10,field30_1,field30_2,field30_3,field30_4,field30_5,field30_6,field30_7,field30_8,field30_9,field30_10,field30_11,field30_12,field30_13,field30_14,field30_15,field30_16,field30_17,field30_18,field30_19,field30_20,field30_21,field30_22,field30_23,field30_24,field30_25,field50_1,field50_2,field50_3,field50_4,field50_5,field50_6,field50_7,field50_8,field50_9,field50_10,field50_11,field50_12,field50_13,field50_14,field50_15,field100_1,field100_2,field100_3,field100_4,field100_5,field100_6,field100_7,field100_8,field100_9,field100_10,field150_1,field150_2,field150_3,field150_4,field150_5,field250_1,field250_2,field250_3,field250_4,field250_5,fieldtext_1,fieldtext_2,fieldtext_3,fieldtext_4,fieldtext_5,chkfield_1,chkfield_2,chkfield_3,chkfield_4,chkfield_5,chkfield_6,chkfield_7,chkfield_8,chkfield_9,chkfield_10,chkfield_11,chkfield_12,chkfield_13,chkfield_14,chkfield_15,chkfield_16,chkfield_17,chkfield_18,chkfield_19,chkfield_20,addrconfd,changeinadd,correctaddr,penremarks,veropinion,doubtfull,verremarks,risklevel,riskremarks,political,politicdet,redalert,alertrem,status,negreason,remarks,isocl,distance,issameadd,visitdate,visittime,uid,prorequiredphoto,otherdetails, 0 as temp FROM property_report where uuid='val0'
Query82!C0L!procedure!C0L!select savereport('update property set addrconfd=''val1'',changeinadd=''val2'',correctaddr=''val3'',penremarks=''val4'',veropinion=''val5'',doubtfull=''val6'',verremarks=''val7'',risklevel=''val8'',riskremarks=''val9'',political=''val10'',politicdet=''val11'',redalert=''val12'',alertrem=''val13'',status=''val14'',negreason=''val15'',remarks=''val16'',isocl=''val17'',distance=''val18'',issameadd=''val19'',visitdate=''val20'',visittime=''val21'' val22 where uuid=''val0''',val23,'val24','val25',val26,'val0','val27','val28','val29','val7')
Query83!C0L!select!C0L!SELECT portfolio_id, portname, mvcode, applno, product, customername,loanamount, uuid, rcontno, rcontacted,rnotcontres, rcontpers, rcontrela, rcontrelaoth, rowner, rowneroth,rstayyrs, rstaymnth, rcorrectaddr, rtotattempt, rattempt1, rtime1,rstatus1, rattempt2, rtime2, rstatus2, rattempt3, rtime3, rstatus3,rattempt4, rtime4, rstatus4, rattempt5, rtime5, rstatus5, roverallstat,rremarks, rnameconfd, rstaywith, ocontno, ocontacted, onotcontres,ocontpers, ocontrela, ocontrelaoth, oorgtype, ocompname, onob,onoboth, onobdesc, odesign, odesignoth, odepartment, oworkyrs, oworkmnth, oattempt, oattempt1, otime1, ostatus1, oattempt2,otime2, ostatus2, oattempt3, otime3, ostatus3, oattempt4, otime4,ostatus4, oattempt5, otime5, ostatus5, ooverallstat, oremarks,chkfield1, chkfield2, chkfield3, chkfield4, chkfield5, chkfield6,chkfield7, chkfield8, chkfield9, chkfield10, field30_1, field30_2,field30_3, field30_4, field30_5, field30_6, field30_7, field30_8,field30_9, field30_10, field50_1, field50_2, field50_3, field50_4,field50_5, field50_6, field50_7, field50_8, field50_9, field50_10,field150_1, field150_2, field150_3, field150_4, field250_1, field250_2,fieldtext_1, fieldtext_2, telecaller, penremarks, rtv, otv, raddr,oaddr,onameconfd,ocorrectaddr,rphone,ophone,mobileno,companyname,extension,raddrconfd,oaddrconfd,loanappconfd,uid,otherdetails,specialinst,contactperson,0 as temp FROM telecalling_report where uuid='val0'
Query84!C0L!procedure!C0L!select savereport('update telecalling set rcontno=''val1'',rcontacted=''val2'',rnotcontres=''val3'',rcontpers=''val4'',rcontrela=''val5'',rcontrelaoth=''val6'',rowner=''val7'',rowneroth=''val8'',rstayyrs=''val9'',rstaymnth=''val10'',rcorrectaddr=''val11'',rtotattempt=''val12'',rattempt1=''val13'',rtime1=''val14'',rstatus1=''val15'',rattempt2=''val16'',rtime2=''val17'',rstatus2=''val18'',rattempt3=''val19'',rtime3=''val20'',rstatus3=''val21'',rattempt4=''val22'',rtime4=''val23'',rstatus4=''val24'',rattempt5=''val25'',rtime5=''val26'',rstatus5=''val27'',roverallstat=''val28'',rremarks=''val29'',rnameconfd=''val30'',rstaywith=''val31'',ocontno=''val32'',ocontacted=''val33'',onotcontres=''val34'',ocontpers=''val35'',ocontrela=''val36'',ocontrelaoth=''val37'',oorgtype=''val38'',ocompname=''val39'',onob=''val40'',onoboth=''val41'',onobdesc=''val42'',odesign=''val43'',odesignoth=''val44'',odepartment=''val45'',oworkyrs=''val46'',oworkmnth=''val47'',oattempt=''val48'',oattempt1=''val49'',otime1=''val50'',ostatus1=''val51'',oattempt2=''val52'',otime2=''val53'',ostatus2=''val54'',oattempt3=''val55'',otime3=''val56'',ostatus3=''val57'',oattempt4=''val58'',otime4=''val59'',ostatus4=''val60'',oattempt5=''val61'',otime5=''val62'',ostatus5=''val63'',ooverallstat=''val64'',oremarks=''val65'',telecaller=''val66'',penremarks=''val67'',onameconfd=''val68'',ocorrectaddr=''val69'',raddrconfd=''val70'',oaddrconfd=''val71'',loanappconfd=''val72'' val73 where uuid=''val0''',val74,'val75','val76',val77,'val0','val78','val79','val80','')
Query85!C0L!select!C0L!select uuid,mvcode,applno,customername,apptype,product,portname,bkbranchname,to_char(receivedon, 'DD/MM/YYYY HH24:MI:SS') as receivedon,batch,visit,(CASE WHEN (islocked=1 and lockedby>0 and lockedby!=val0) then '
' else '' end) as flags,islocked,COALESCE ((select displayname||' ('||loginid||')' from app_user where user_id=lockedby),'') as lockedbyusr,portfolio_id,(case when (penremarks is null or length(penremarks)=0) then '' else '
' end ) as ispending,'0' as tempf from reporting_telecalling where (val1) and (val2) and done=0 order by receivedon,mvcode,visit desc
Query86!C0L!procedure!C0L!select tel_pending_sovled_calc('val1','val2')
Query87!C0L!select!C0L!select uuid||'!S3PC0L!'||portname||'!S3PC0L!'||mvcode||'!S3PC0L!'||applno||'!S3PC0L!'||customername||'!S3PC0L!'||apptype||'!S3PC0L!'||product||'!S3PC0L!'||branchname||'!S3PC0L!'||(case when rv!=1 then 'OFF' else coalesce(rveri,'NI') end)||'!S3PC0L!'||(case when ov!=1 then 'OFF' else coalesce(overi,'NI') end)||'!S3PC0L!'||(case when pv!=1 then 'OFF' else coalesce(pveri,'NI') end)||'!S3PC0L!'||receivedon||'!S3PC0L!'||batch||'!S3PC0L!'||(case when rv=1 then (case when (rlock=1 and rlockby!=val0 and rlockby is not null) then '
' else (case when (rrisklevel='1' and rvdone=1) then 'R' else (case when (rdoubtfull='Yes' and rvdone=1) then 'R' else (case when rascan=1 then 'R' else (case when rvdone=1 then 'R' else (case when (rpenremarks is not null and length(rpenremarks)>0) then 'R' else 'R' end) end) end) end) end) end) else 'X' end)||'!S3PC0L!'||(case when ov=1 then (case when (olock=1 and olockby!=val0 and olockby is not null) then '
' else (case when (orisklevel='1' and rvdone=1) then 'O' else (case when (odoubtfull='Yes' and ovdone=1) then 'O' else (case when ovdone=1 then 'O' else (case when (openremarks is not null and length(openremarks)>0) then 'O' else 'O' end) end) end) end) end) else 'X' end) ||'!S3PC0L!'||(case when pv=1 then (case when (plock=1 and plockby!=val0 and plockby is not null) then '
' else (case when (prisklevel='1' and rvdone=1) then 'P' else (case when (pdoubtfull='Yes' and pvdone=1) then 'P' else (case when pvdone=1 then 'P' else (case when (ppenremarks is not null and length(ppenremarks)>0) then 'P' else 'P' end) end) end) end) end) else 'X' end)||'!S3PC0L!'||(case when (rtv=1 or otv=1) then (case when (tlock=1 and tlockby!=val0 and tlockby is not null) then '
' else (case when tvrdone=1 then 'T' else (case when (tpenremarks is not null and length(tpenremarks)>0) then 'T' else 'T' end) end) end) else 'X' end)||'!S3PC0L!'||rtv||'!S3PC0L!'||otv||'!S3PC0L!'||(case when (refv=1) then (case when (rtlock=1 and rtlockby!=val0 and rtlockby is not null) then '
' else (case when rtdone=1 then 'RT' else 'RT' end) end) else 'X' end)||'!S3PC0L!'||docv||'!S3PC0L!'||rco||'!S3PC0L!'||rcp||'!S3PC0L!'||ocp||'!S3PC0L!'||(case when ear='Y' then 'Y' else coalesce(ear,'') end)||'!S3PC0L!'||(case when neg='Y' then 'Y' else coalesce(neg,'') end)||'!S3PC0L!'||coalesce(rvdone::text,'0')||'!S3PC0L!'||coalesce(rvdoneon::text,'')||'!S3PC0L!'||coalesce(rvdoneby::text,'0')||'!S3PC0L!'||coalesce(ovdone::text,'0')||'!S3PC0L!'||coalesce(ovdoneon::text,'')||'!S3PC0L!'||coalesce(ovdoneby::text,'0')||'!S3PC0L!'||coalesce(tvrdone::text,'0')||'!S3PC0L!'||coalesce(tvrdoneon::text,'')||'!S3PC0L!'||coalesce(tvrdoneby::text,'0')||'!S3PC0L!'||coalesce(pvdone::text,'0')||'!S3PC0L!'||coalesce(pvdoneon::text,'')||'!S3PC0L!'||coalesce(pvdoneby::text,'0')||'!S3PC0L!'||coalesce(docdone::text,'0')||'!S3PC0L!'||coalesce(docdoneon::text,'')||'!S3PC0L!'||coalesce(docdoneby::text,'0')||'!S3PC0L!'||coalesce(rlock::text,'0')||'!S3PC0L!'||coalesce(rlockon::text,'')||'!S3PC0L!'||coalesce(rvlockby::text,'0')||'!S3PC0L!'||coalesce(olock::text,'0')||'!S3PC0L!'||coalesce(olockon::text,'')||'!S3PC0L!'||coalesce(ovlockby::text,'0')||'!S3PC0L!'||coalesce(tlock::text,'0')||'!S3PC0L!'||coalesce(tlockon::text,'')||'!S3PC0L!'||coalesce(tvlockby::text,'0')||'!S3PC0L!'||coalesce(plock::text,'0')||'!S3PC0L!'||coalesce(plockon::text,'')||'!S3PC0L!'||coalesce(pvlockby::text,'0')||'!S3PC0L!'||coalesce(dlock::text,'0')||'!S3PC0L!'||coalesce(dlockon::text,'')||'!S3PC0L!'||coalesce(dlockby::text,'0')||'!S3PC0L!'||coalesce(sdone::text,'0')||'!S3PC0L!'||coalesce(sdoneon::text,'')||'!S3PC0L!'||coalesce(svdoneby::text,'0')||'!S3PC0L!'||portfolio_id||'!S3PC0L!'||coalesce(rtlock::text,'0')||'!S3PC0L!'||coalesce(rtlockon::text,'')||'!S3PC0L!'||coalesce(reflockby::text,'0')||'!S3PC0L!'||coalesce(rtdone::text,'0')||'!S3PC0L!'||coalesce(rtdoneon::text,'')||'!S3PC0L!'||coalesce(rtdoneby::text,'0')||'!S3PC0L!'||(case when (fdlock=1 and fdlockby!=val0 and fdlockby is not null) then '
' else (case when tobesolved=0 then 'FDO' else 'FD' end) end)||'!S3PC0L!'||coalesce(fdlock::text,'0')||'!S3PC0L!'||coalesce(fdlockon::text,'')||'!S3PC0L!'||coalesce(fdvlockby::text,'0')||'!S3PC0L!'||coalesce(tobesolved::text,'0')||'!S3PC0L!'||coalesce(rvrdoneby::text,'0')||'!S3PC0L!'||coalesce(ovrdoneby::text,'0')||'!S3PC0L!'||coalesce(teldoneby::text,'')||'!S3PC0L!'||coalesce(pvrdoneby::text,'0')||'!S3PC0L!'||coalesce(refdoneby::text,'0')||'!S3PC0L!'||(case (commverifier+bothrented) when 0 then '' when 2 then '
' else (case when commverifier=1 then '
' else '
' end) end)||'!S3PC0L!'||loanamount||'!S3PC0L!'||0 as tempf from scanning_grid where sdone=0 and (val1) and (val2) and (val3) and (val4) and (val5) order by receivedon,mvcode,apptype
Queryx87x!C0L!select!C0L!select uuid||'!S3PC0L!'||portname||'!S3PC0L!'||mvcode||'!S3PC0L!'||applno||'!S3PC0L!'||customername||'!S3PC0L!'||apptype||'!S3PC0L!'||product||'!S3PC0L!'||branchname||'!S3PC0L!'||(case when rv!=1 then 'OFF' else coalesce(rveri,'NI') end)||'!S3PC0L!'||(case when ov!=1 then 'OFF' else coalesce(overi,'NI') end)||'!S3PC0L!'||(case when pv!=1 then 'OFF' else coalesce(pveri,'NI') end)||'!S3PC0L!'||receivedon||'!S3PC0L!'||batch||'!S3PC0L!'||(case when rv=1 then (case when (rlock=1 and rlockby!=val0 and rlockby is not null) then '
' else (case when (rrisklevel='1' and rvdone=1) then 'R' else (case when (rdoubtfull='Yes' and rvdone=1) then 'R' else (case when rvdone=1 then 'R' else (case when (rpenremarks is not null and length(rpenremarks)>0) then 'R' else 'R' end) end) end) end) end) else 'X' end)||'!S3PC0L!'||(case when ov=1 then (case when (olock=1 and olockby!=val0 and olockby is not null) then '
' else (case when (orisklevel='1' and rvdone=1) then 'O' else (case when (odoubtfull='Yes' and ovdone=1) then 'O' else (case when ovdone=1 then 'O' else (case when (openremarks is not null and length(openremarks)>0) then 'O' else 'O' end) end) end) end) end) else 'X' end) ||'!S3PC0L!'||(case when pv=1 then (case when (plock=1 and plockby!=val0 and plockby is not null) then '
' else (case when (prisklevel='1' and rvdone=1) then 'P' else (case when (pdoubtfull='Yes' and pvdone=1) then 'P' else (case when pvdone=1 then 'P' else (case when (ppenremarks is not null and length(ppenremarks)>0) then 'P' else 'P' end) end) end) end) end) else 'X' end)||'!S3PC0L!'||(case when (rtv=1 or otv=1) then (case when (tlock=1 and tlockby!=val0 and tlockby is not null) then '
' else (case when tvrdone=1 then 'T' else (case when (tpenremarks is not null and length(tpenremarks)>0) then 'T' else 'T' end) end) end) else 'X' end)||'!S3PC0L!'||rtv||'!S3PC0L!'||otv||'!S3PC0L!'||(case when (refv=1) then (case when (rtlock=1 and rtlockby!=val0 and rtlockby is not null) then '
' else (case when rtdone=1 then 'RT' else 'RT' end) end) else 'X' end)||'!S3PC0L!'||docv||'!S3PC0L!'||rco||'!S3PC0L!'||rcp||'!S3PC0L!'||ocp||'!S3PC0L!'||(case when ear='Y' then 'Y' else coalesce(ear,'') end)||'!S3PC0L!'||(case when neg='Y' then 'Y' else coalesce(neg,'') end)||'!S3PC0L!'||coalesce(rvdone::text,'0')||'!S3PC0L!'||coalesce(rvdoneon::text,'')||'!S3PC0L!'||coalesce(rvdoneby::text,'0')||'!S3PC0L!'||coalesce(ovdone::text,'0')||'!S3PC0L!'||coalesce(ovdoneon::text,'')||'!S3PC0L!'||coalesce(ovdoneby::text,'0')||'!S3PC0L!'||coalesce(tvrdone::text,'0')||'!S3PC0L!'||coalesce(tvrdoneon::text,'')||'!S3PC0L!'||coalesce(tvrdoneby::text,'0')||'!S3PC0L!'||coalesce(pvdone::text,'0')||'!S3PC0L!'||coalesce(pvdoneon::text,'')||'!S3PC0L!'||coalesce(pvdoneby::text,'0')||'!S3PC0L!'||coalesce(docdone::text,'0')||'!S3PC0L!'||coalesce(docdoneon::text,'')||'!S3PC0L!'||coalesce(docdoneby::text,'0')||'!S3PC0L!'||coalesce(rlock::text,'0')||'!S3PC0L!'||coalesce(rlockon::text,'')||'!S3PC0L!'||coalesce(rvlockby::text,'0')||'!S3PC0L!'||coalesce(olock::text,'0')||'!S3PC0L!'||coalesce(olockon::text,'')||'!S3PC0L!'||coalesce(ovlockby::text,'0')||'!S3PC0L!'||coalesce(tlock::text,'0')||'!S3PC0L!'||coalesce(tlockon::text,'')||'!S3PC0L!'||coalesce(tvlockby::text,'0')||'!S3PC0L!'||coalesce(plock::text,'0')||'!S3PC0L!'||coalesce(plockon::text,'')||'!S3PC0L!'||coalesce(pvlockby::text,'0')||'!S3PC0L!'||coalesce(dlock::text,'0')||'!S3PC0L!'||coalesce(dlockon::text,'')||'!S3PC0L!'||coalesce(dlockby::text,'0')||'!S3PC0L!'||coalesce(sdone::text,'0')||'!S3PC0L!'||coalesce(sdoneon::text,'')||'!S3PC0L!'||coalesce(svdoneby::text,'0')||'!S3PC0L!'||portfolio_id||'!S3PC0L!'||coalesce(rtlock::text,'0')||'!S3PC0L!'||coalesce(rtlockon::text,'')||'!S3PC0L!'||coalesce(reflockby::text,'0')||'!S3PC0L!'||coalesce(rtdone::text,'0')||'!S3PC0L!'||coalesce(rtdoneon::text,'')||'!S3PC0L!'||coalesce(rtdoneby::text,'0')||'!S3PC0L!'||(case when (fdlock=1 and fdlockby!=val0 and fdlockby is not null) then '
' else (case when tobesolved=0 then 'FDO' else 'FD' end) end)||'!S3PC0L!'||coalesce(fdlock::text,'0')||'!S3PC0L!'||coalesce(fdlockon::text,'')||'!S3PC0L!'||coalesce(fdvlockby::text,'0')||'!S3PC0L!'||coalesce(tobesolved::text,'0')||'!S3PC0L!'||coalesce(rvrdoneby::text,'0')||'!S3PC0L!'||coalesce(ovrdoneby::text,'0')||'!S3PC0L!'||coalesce(teldoneby::text,'')||'!S3PC0L!'||coalesce(pvrdoneby::text,'0')||'!S3PC0L!'||coalesce(refdoneby::text,'0')||'!S3PC0L!'||(case (commverifier+bothrented) when 0 then '' when 2 then '
' else (case when commverifier=1 then '
' else '
' end) end)||'!S3PC0L!'||loanamount||'!S3PC0L!'||0 as tempf from scanning_grid where sdone=0 and (val1) and (val2) and (val3) and (val4) and (val5) order by receivedon,mvcode,apptype
Query88!C0L!procedure!C0L!select scan_pending_sovled_calc('val1','val2','val3','val4','val5')
Query89!C0L!select!C0L!select verifier_id,verifiercode||' | '||mobileno as verdetail from verifier where isactive=1 and branch_id=val0 and verifiertype='VER' order by verifiercode
Query90!C0L!select!C0L!SELECT portfolio_id,portname,mvcode,applno,product,customername,apptype,contactperson,loanamount,refv,raddr,oaddr,uuid,ref1relation,ref1yrs,ref1mnth,ref1nameconf,ref1appaddr,ref1status,ref1remarks,ref2relation,ref2yrs,ref2mnth,ref2nameconf,ref2appaddr,ref2status,ref2remarks,field30_1,field30_2,field30_3,field30_4,field50_1,field50_2,penremarks,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,caller,uid,otherdetails,specialinst,0 as temp FROM refrence_report where uuid='val0'
Query91!C0L!procedure!C0L!select savereport('update refrencecalling set ref1relation=''val1'',ref1yrs=''val2'',ref1mnth=''val3'',ref1nameconf=''val4'',ref1appaddr=''val5'',ref1status=''val6'',ref1remarks=''val7'',ref2relation=''val8'',ref2yrs=''val9'',ref2mnth=''val10'',ref2nameconf=''val11'',ref2appaddr=''val12'',ref2status=''val13'',ref2remarks=''val14'',penremarks=''val15'',caller=''val16'' val17 where uuid=''val0''',val18,'val19','val20',val21,'val0','val22','val23','val24','')
Query92!C0L!select!C0L!select uuid,rv as resi,(case when rv=1 then (case when (rvdone=1 and length(rremarks)>0) then 1 else 0 end) else 1 end) as rv,rstatus,rremarks, ov as off,(case when ov=1 then (case when (ovdone=1 and length(oremarks)>0) then 1 else 0 end) else 1 end) as ov,ostatus,oremarks, rtv as restv,(case when rtv=1 then (case when (tvrdone=1 and length(rtremarks)>0) then 1 else 0 end) else 1 end) as rtv,rtstat,rtremarks, otv as offtv,(case when otv=1 then (case when (tvrdone=1 and length(otremarks)>0) then 1 else 0 end) else 1 end) as otv,otstat,otremarks,pv as prop,(case when pv=1 then (case when (pvdone=1 and length(premarks)>0) then 1 else 0 end) else 1 end) as pv,pstatus,premarks, refv as refvr,(case when refv=1 then (case when (rtdone=1 and length(ref1remarks)>0) then 1 else 0 end) else 1 end) as ref1,ref1status,ref1remarks,(case when refv=1 then (case when (rtdone=1 and length(ref2remarks)>0) then 1 else 0 end) else 1 end) as ref2,ref2status,ref2remarks,overallstatus,portfolio_id,0 as tempf from final_done where uuid='val0'
Query93!C0L!procedure!C0L!select fetch_dedupe('val0',val1,'val2')
Query94!C0L!procedure!C0L!select savereport('update main set overallstatus=''val1'' where uuid=''val0''',val2,'val3','val4',val5,'val0','val11','val12','val13','')
Query95!C0L!select!C0L!select v.verifier_id,v.verifiercode,v.verifiername,(select displayname from app_user where user_id=v.operatorcode) as voperator,v.mobileno,(case when isactive=1 then '
' else '
' end) as status,isactive from verifier v where branch_id=val0 and verifiertype='VER' order by isactive desc,verifiercode
Query96!C0L!select!C0L!select v.verifier_id,v.verifiercode,v.verifiername,v.mobileno,verifiertype,monthlylimit,isactive,(select count(*) from reporting_operator where verifier=verifier_id and done=0) as curalloc,simserial,0 as temp from verifier v where v.verifier_id=val0
Query97!C0L!insert!C0L!insert into verifier (verifiercode,verifiername,mobileno,verifiertype,monthlylimit,isactive,createdon,createdby,branch_id,simserial,requiredphoto) values ('val1','val2','val3','val4',val5,val6,'val7',val8,val9,'val10',(case when upper('val10') = 'ACTIVATE' then 0 else -2 end))
Query98!C0L!update!C0L!update verifier set verifiername='val2',mobileno='val3',verifiertype='val4',monthlylimit=val5,isactive=val6,createdon='val7',createdby=val8,simserial='val10',requiredphoto=(case when upper('val10') = 'ACTIVATE' then 0 else -2 end) where verifier_id=val0
Query99!C0L!select!C0L!select distinct zone,zone from colony where (branch_id=val0 or branch_id=0) and zone!='' order by zone
Query100!C0L!select!C0L!select b.belt_id,b.beltname,b.beltdesc,b.isactive,bm.belt_group||','||bm.verifier_id as group_ver from belt b, belt_allocation bm where b.belt_id=val0 and bm.belt_id=b.belt_id and b.isactive=1
Query101!C0L!select!C0L!select op.opt_value,op.val_description from comp_popup_options op where op.company_id=val0 and (op.branch_id=val1 or op.branch_id=0) and op.description='GROUP' order by op.val_description
Query102!C0L!procedure!C0L!select updatebelt(val0,'val1','val2',val3,'val4','val5',val6,val7)
Query103!C0L!insert!C0L!insert into app_documents (processtime,process,documenturl,branch_id) values ('val0','val1','val2',val3);
Query104!C0L!select!C0L!select processtime,documenturl from app_documents where branch_id=val0 and processtime >='val1' group by processtime,documenturl order by processtime desc
Query105!C0L!select!C0L!select user_id,displayname from app_user where branch_id=val0 and group_id=13 and isactive=1
Query106!C0L!select!C0L!select oh.editor,oh.name,oh.operation,to_char(oh.operationon, 'DD/MM/YYYY HH:MI:SS AM') as operationon from voperation_history oh where oh.uuid='val0' and val1
Query107!C0L!procedure!C0L!select contactNumbers('val0',val1,val2,'val3','val4','val5','val6','val7')
Query108!C0L!select!C0L!select m.uuid,m.mvcode,m.applno,m.customername,m.apptype,(case when m.rv=1 then 'Y' else 'N' end) as rv,(case when m.ov=1 then 'Y' else 'N' end) as ov,(case when m.pv=1 then 'Y' else 'N' end) as pv,(case when m.rtv=1 then 'Y' else 'N' end) as rtv,(case when m.otv=1 then 'Y' else 'N' end) as otv,(case when m.refv=1 then 'Y' else 'N' end) as refv,m.overallstatus,to_char(m.receivedate, 'DD/MM/YYYY') as receivedate,(select bkbranchname from portfolio_bank_branch where portbranch_id=m.bank_branch_id) as branch,m.product,m.bank_branch_id,onlinecaseid, 0 as temp from main_mainopr m where m.sdone=1 and m.fileclosed=0 and portfolio_id=val0 order by branch,m.product,m.applno,m.apptype limit 50
Query109!C0L!select!C0L!select pf.portfolio_id,pf.resireport,pf.offreport,pf.telereport,pf.propreport,pf.refrencereport,pf.dedreport,pf.tracker,pf.offsareport,COALESCE((select queryid from bankreport where format_id=pf.resireport),0) as rvqid,COALESCE((select queryid from bankreport where format_id=pf.offreport),0) as ovqid,COALESCE((select queryid from bankreport where format_id=pf.telereport),0) as tvqid,COALESCE((select queryid from bankreport where format_id=pf.propreport),0) as pvqid,COALESCE((select queryid from bankreport where format_id=pf.refrencereport),0) as refvqid,COALESCE((select queryid from bankreport where format_id=pf.dedreport),0) as ddqid,COALESCE((select queryid from bankreport where format_id=pf.tracker),0) as trackqid,COALESCE((select queryid from bankreport where format_id=pf.offsareport),0) as trackqid,(case when upload > 0 then 2 else bs.reportby end) as reportby,bs.autoemail,(case when upload > 0 then 3 else bs.reporttype end) as reporttype,bs.archivebatch,bs.attachannexure,bs.uid as bsuid,(select supervisor from portfolio where portfolio_id=pf.portfolio_id) as supervisor,COALESCE((select templatefile from bankreport where format_id=pf.tracker),'') as template,upload,pf.extrareport,COALESCE((select queryid from bankreport where format_id=pf.extrareport),0) as extraqid,(select upper(loginid) from app_user where user_id = (select supervisor from portfolio where portfolio_id=pf.portfolio_id)) as supname,0 as temp from bankreport_mapping pf left join bankreport_settings bs on bs.portfolio_id=pf.portfolio_id where pf.portfolio_id=val0
Query110!C0L!select!C0L!select r.uuid,r.product,r.maincompany,r.bkbranchname,to_char(r.receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,r.bank_branch_id,'MVCODE: '||r.mvcode||' ( '||upper(r.field50_3)||' ), APPL NO: '||upper(r.applno)||' ( '||upper(r.bkbranchname)||' )' as headerrow,'' as blkrow1 ,'RESIDENCE VERIFICATION' as title,'' as blkrow2, 'Name of Applicant' as label1, upper(r.field50_3), 'Residence Address' as label2, upper(r.raddr), 'Date of Visit' as label3, r.visitdate, 'Time' as label4, upper(r.visittime), 'Person Met' as label5, upper(r.metperson), 'Relationship' as label6, (CASE WHEN r.metrela='Others' THEN upper(r.metrealoth) ELSE upper(r.metrela) END) as metrela,'Marital Status' as marstat,upper(maritial), 'Total Family Members' as label7, upper(r.totmem), 'Dependents' as label8, 'Adult - '||r.field30_1 as adult, 'Children - '||r.children as children,'Is Spouse Working?' as label10,upper(r.spswork),upper(r.spscomp)||' '||upper(r.spsdesign) as spscompdesig,'Ownership' as label11, (CASE WHEN r.rowner='Others' THEN upper(r.owneroth) ELSE upper(rowner) END) as owner,'Ownership/Rental Proof' as label11a, 'NOT SHOWN' as ownera,'No. of years in existing house' as label12,r.yrsadd,'Locality' as label13,(CASE WHEN r.locality='Others' THEN upper(r.locaoth) ELSE upper(r.locality) END) as locality,'Unit' as label14,(CASE WHEN r.restype='Others' THEN upper(r.typeoth) ELSE upper(r.restype) END) as restype,'Construction' as label15,(CASE WHEN r.construction='Others' THEN upper(r.constoth) ELSE upper(r.construction) END) as construction,'Type of roof' as label16,upper(r.field30_2) ,'Approx area of the house (sq ft)' as label17,upper(r.field30_3),'Floor of the house' as label18,upper(r.field30_4),'Assets Seen' as label19,upper(r.field150_1),'Vehicle - '||upper(r.field30_6) as field30_6,'Portrait of political leaders in the house' as label20,upper(r.political),'Purposed' as label21,'' as blank1,'Proposed property location' as label22,'' as blank2,'Any loan taken' as label23,upper(r.field30_7),'If yes, financer' as label24,upper(r.field50_1),'EMI - '||upper(r.field30_8) as field30_8,('Comments - '||field150_1) as label25,'Accessibility of the house with direction' as label26,upper(raccess),'Neighbour''s Feedback' as label27,upper(r.fieldtext_1),'Verifier''s Remarks' as label28,upper(r.verremarks)||'RESIDENCE ADDRESS PROOF : '||upper(r.proofdet),'Remarks' as label29,upper(r.remarks),'Did the custoemer apply previously' as label30,upper(r.field30_9),'Date of previous FI' as label31,r.field30_10,'Recommendation' as label32,(case upper(r.status) when 'NEGATIVE' then 'NOT RECOMMENDED' when 'POSITIVE' then 'RECOMMENDED' else upper(r.status) end) as rstatus,'Negative Reason' as label33,(CASE WHEN r.negreason='-1' THEN '' ELSE upper(r.negreason) END) as negres,'' as negblank,'Reasons for not recommended ( Please Circle )' as label34,'1.1. Out of geographical limits' as label35,'2.2. Existing loan defaulter' as label36,'3.3. Negative feedback from neighbours' as label37,'4.4. Politically connected' as label38,'5.5. Negative Area' as label39,'6.6. Poor living conditions' as label40,'7.7. Negative Profile' as label41,'8.8. Drunkard / drug addict / major vices' as label42,'9.9. De-dup match' as label43,'10.10 Others' as label44,'' as aftother,'Agency Verifier' as label45,'B.B. Agency Supervisor' as label46,r.name,upper(r.rvername),upper(r.portsupervisor),'' as blk2,'' as blk3,r.mvcode||'-'||r.applno||'-'||r.customername||'-RES-'||r.status as bcode,'' as blnk12,'images/signs/'||supervisor||'.png' as singature,(case when portfolio_id = 1 then 'Photographs' else '{SK!PTH15D@TA}' end),(case when portfolio_id = 1 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query111!C0L!select!C0L!select o.uuid,o.product,o.maincompany,o.bkbranchname,to_char(o.receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,o.bank_branch_id,'MVCODE: '||o.mvcode||' ( '||o.field50_3||' ), APPL NO: '||o.applno||' ( '||o.bkbranchname||' )' as headerrow ,'' as blk1,'OFFICE VERIFICATION' as title,'' as blk2, 'Name of Applicant' as label1,o.field50_3, 'Name of Employer' as label2,o.companyname,'Office Address' as label3,o. oaddr, 'Date of Visit' as label4, o.visitdate, 'Time' as label5, o.visittime, 'Person Met' as label6, o.metperson, 'Designation' as label7,(CASE WHEN o.metrela='Others' THEN upper(o.metrealoth) ELSE o.metrela END) as metrela,'' as blk3, 'Designatio of Applicant' as label8,(CASE WHEN o.appdesign='Others' then o.appdesignoth ELSE o.appdesign END) as appdesign,'No of years worked here' as label9,o.yrsjob,'Previous employment' as label10,o.prevjobdet,'No. of years' as label11,o.prevjobyrs,'Office Board Present' as label12,o.bizboard,'Touring / Transferable Job' as label13,o.transferable,'Sector' as label14,o.category,'Approx are of the office (sq ft)' as label15,o.field30_3,'Industry' as label16,o.compprof,'Employee Seen' as label17,o.field30_2,'Premises' as label18,(CASE WHEN ownership='Others' THEN owneroth ELSE ownership END) as owners ,'Assets Seen' as label19, 'Tel : '||field30_15 as tel, 'Fax : '||field30_14 as fax, 'Xerox : '||field30_13 as xerox, 'AC : '||field30_12 as ac, 'Computer : '||field30_5 as computer,'Comments-' as label20,'Accessibility of the office with direction' as label21,o.easeloc, 'Neighbour''s Feedback' as label22,fieldtext_1,'Verifier''s Remarks' as label23,verremarks,'Remarks' as label24, remarks,'Did the Customer apply previously' as label25,field30_9,'Date of Previous FI' as label26,field30_10,'Recommendation' as label27,(case upper(status) when 'NEGATIVE' then 'NOT RECOMMENDED' when 'POSITIVE' then 'RECOMMENDED' else upper(status) end) as ostatus,'Negative Reason' as label28,negreason,'Reasons for not recommended ( Please Circle)' as label29,'1.1. Out of geographical limits' as label30,'2.2. Existing loan defaulter' as label31,'3.3. Negative feedback from colleagues' as label32,'4.4. Politically connected / Union leader' as label33,'5.5. Negative Area' as label34,'6.6. Class Staff' as label35,'7.7. Negative Profile' as label36,'8.8. Drunkard / drug addict / major vices' as label37,'9.9. De-dupe match' as label38,'10.10. Others / Irregular in office' as label39,'' as blk4,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,o.name,overname,upper(o.portsupervisor),'' as blk5,'' as blk6,o.mvcode||'-'||o.applno||'-'||o.customername||'-OFF-'||o.status as bcode,'' as blnk12,'images/signs/'||supervisor||'.png' as singature,(case when portfolio_id = 1 then 'Photographs' else '{SK!PTH15D@TA}' end),(case when portfolio_id = 1 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query112!C0L!select!C0L!select t.uuid,t.product,t.maincompany,t.bkbranchname,to_char(t.receivedate,'DD/MM/YYYY') as receivedate,applno,upper(customername) cname,t.bank_branch_id,'MVCODE: '||t.mvcode||' ( '||t.customername||' ), APPL NO: '||t.applno||' ( '||t.bkbranchname||' )' as headerrow,'' as blkrow1 ,'RESIDENCE TELEVERIFICATION REPORT' as title,'' as blkrow2,'Spoken To' as label1,t.rcontpers,'Contacted Ph' as label2,t.rcontno,'Relation with applicant' as label3,t.rcontrela,'Loan Application Confirmed' as label4,loanappconfd,'Address Confiremed' as label5,raddrconfd,'No. of Tries' as label6, rtotattempt, 'Date of Contact' as label7,COALESCE((case when rattempt5 is not null then rattempt5 else (case when rattempt4 is not null then rattempt4 else (case when rattempt3 is not null then rattempt3 else (case when rattempt2 is not null then rattempt2 else rattempt1 end) end) end) end),'NA') as rdoc,'Time of Contact' as label8,COALESCE((case when rtime5 is not null then rtime5 else (case when rtime4 is not null then rtime4 else (case when rtime3 is not null then rtime3 else (case when rtime2 is not null then rtime2 else rtime1 end) end) end) end),'NA') as rtoc,'Residence Address' as label9,raddr,'MTNL Check' as label10,'' as rnameconfd,'Status' as label11,roverallstat,'Remarks' as label12, rremarks,'' as blnk1,'' as blnk2,'OFFICE TELE VERIFICATION REPORT' as oheader,'' as blnk3,'Spoken To' as label13,t.ocontpers,'Contacted Ph' as label14,t.ocontno,'Designation' as label15,t.odesign,'Address Confiremed' as label16,oaddrconfd,'No. of Tries' as label17, oattempt, 'Date of Contact' as label18,COALESCE((case when oattempt5 is not null then oattempt5 else (case when oattempt4 is not null then oattempt4 else (case when oattempt3 is not null then oattempt3 else (case when oattempt2 is not null then oattempt2 else oattempt1 end) end) end) end),'NA') as odoc,'Time of Contact' as label19,COALESCE((case when otime5 is not null then otime5 else (case when otime4 is not null then otime4 else (case when otime3 is not null then otime3 else (case when otime2 is not null then otime2 else otime1 end) end) end) end),'NA') as otoc,'Company Name' as label20,ocompname,'Office Address' as label21,oaddr,'MTNL Check' as label22,'' as onameconfd,'Status' as label23,ooverallstat,'Remarks' as label24, oremarks,'' as blnk4,'Agency Verifier' as label40,'C.B. Agency Supervisor' as label41,t.name,telecaller,upper(t.portsupervisor),'' as blnk5,'' as blnk6,t.mvcode||'-'||t.applno||'-'||t.customername||'-TELR-'||COALESCE(t.roverallstat,'NI')||'-TELO-'||COALESCE(t.ooverallstat,'NI') as bcode,'' as blnk12,'images/signs/'||supervisor||'.png' as singature from banklist_main_telecalling t where (val0) val1
Query116!C0L!select!C0L!select format_id,data,datatype,fontstyle,padleft,padtop,padright,padbottom,alignment,border,colspan,fontsize,fontcolor,fontfamily,backcolor,rowspan,uid from bankreport_layout where (val0) order by format_id,outorder
Query117!C0L!select!C0L!select t.uuid,(select bkbranchname from portfolio_bank_branch where portbranch_id=t.bank_branch_id) as bkbranchname,t.product,upper(t.mvcode),t.applno,upper(t.customername),t.apptype,(case when t.rv=1 then 'Y' else 'N' end) as rv,(case when t.ov=1 then 'Y' else 'N' end) as ov,(case when t.pv=1 then 'Y' else 'N' end) as pv,(case when t.rtv=1 then 'Y' else 'N' end) as rtv,(case when t.otv=1 then 'Y' else 'N' end) as otv,to_char(t.receivedon,'YYYY/MM/DD') as receivedate,to_char(t.sdoneon,'YYYY/MM/DD') as reportdate,(select upper(overallstatus) from main where uuid=t.uuid) as overallstatus from temp_reporting t where (val0) val1
Query118!C0L!select!C0L!select afterbankreports('val0','val1','val2',val3,val4,val5,val6,'val7')
Query119!C0L!select!C0L!SELECT m.mail_id, m.toemailid, m.ccemailid, m.bccemailid, m.mailsubject, m.mailbody, m.attachmentpath, m.archiveattachments, e.emailid,e.emailpassword,m.mailstatus,m.response,to_char(batch,'YYYY/MM/DD HH24:MI:SS') as batch from mailbox m,emailids e,app_user u where m.fromemailid=e.uid and ( val0 ) and u.user_id=m.user_id
Query120!C0L!select!C0L!select uuid||'!C0LS3P!'||mvcode||'!C0LS3P!'||applno||'!C0LS3P!'||customername||'!C0LS3P!'||apptype||'!C0LS3P!'||(case when category='-1' then '' else category end)||'!C0LS3P!'||product||'!C0LS3P!'||coalesce(loanamount,'')||'!C0LS3P!'||coalesce(contactperson,'')||'!C0LS3P!'||coalesce(specialinst,'')||'!C0LS3P!'||(case when rv=1 then 'Y' else 'N' end)||'!C0LS3P!'||(case when ov=1 then 'Y' else 'N' end) ||'!C0LS3P!'||(case when pv=1 then 'Y' else 'N' end)||'!C0LS3P!'||(case when rtv=1 then 'Y' else 'N' end)||'!C0LS3P!'||(case when otv=1 then 'Y' else 'N' end)||'!C0LS3P!'||coalesce(to_char(oprsendon,'DD/MM/YYYY HH24:MI:SS'),'')||'!C0LS3P!'||batch||'!C0LS3P!'||coalesce((case when overallstatus='-1' then 'Pending' else overallstatus end),'')||'!C0LS3P!'||coalesce(doneby,'')||'!C0LS3P!'||coalesce(sdone,0)||'!C0LS3P!'||coalesce(to_char(sdoneon,'DD/MM/YYYY HH24:MI:SS'),'')||'!C0LS3P!'||fileclosed||'!C0LS3P!'||coalesce(to_char(fileclosedon,'DD/MM/YYYY HH24:MI:SS'),'')||'!C0LS3P!'||portfolio_id||'!C0LS3P!'||portname||' ('||branch||')'||'!C0LS3P!'||bank_branch_id||'!C0LS3P!'||company_id||'!C0LS3P!'||matrixcomp||'!C0LS3P!'||branch_id||'!C0LS3P!'||branchname||'!C0LS3P!'||coalesce(raddr1,'')||'!C0LS3P!'||coalesce(raddr2,'')||'!C0LS3P!'||coalesce(raddr3,'')||'!C0LS3P!'||coalesce(rpincode,'')||'!C0LS3P!'||(case when rcity='-1' then '' else rcity end)||'!C0LS3P!'||(case when rphone is not null or rphone <> '' then '********' else '' end)||'!C0LS3P!'||(case when mobileno is not null or mobileno <> '' then '********' else '' end)||'!C0LS3P!'||coalesce(rdetails,'')||'!C0LS3P!'||coalesce(rverifier,'')||'!C0LS3P!'||coalesce(oaddr1,'')||'!C0LS3P!'||coalesce(oaddr2,'')||'!C0LS3P!'||coalesce(oaddr3,'')||'!C0LS3P!'||coalesce(opincode)||'!C0LS3P!'||(case when ocity='-1' then '' else ocity end)||'!C0LS3P!'||(case when ophone is not null or ophone <> '' then '********' else '' end)||'!C0LS3P!'||coalesce(extension,'')||'!C0LS3P!'||coalesce(odetails,'')||'!C0LS3P!'||coalesce(department,'')||'!C0LS3P!'||coalesce(designation,'')||'!C0LS3P!'||coalesce(overifier,'')||'!C0LS3P!'||coalesce(paddr1,'')||'!C0LS3P!'||coalesce(paddr2,'')||'!C0LS3P!'||coalesce(paddr3,'')||'!C0LS3P!'||coalesce(ppincode,'')||'!C0LS3P!'||(case when pcity='-1' then '' else pcity end)||'!C0LS3P!'||coalesce(pdetails,'')||'!C0LS3P!'||coalesce(pverifier,'')||'!C0LS3P!'||coalesce(tvrdetails,'')||'!C0LS3P!'||coalesce(refname1,'')||'!C0LS3P!'||coalesce(refaddress1,'')||'!C0LS3P!'||coalesce(refcontactno1,'')||'!C0LS3P!'||coalesce(refname2,'')||'!C0LS3P!'||coalesce(refaddress2,'')||'!C0LS3P!'||coalesce(refcontactno2,'')||'!C0LS3P!'||coalesce(refdetails,'')||'!C0LS3P!'||coalesce(earrem,'')||'!C0LS3P!'||coalesce(negrem,'')||'!C0LS3P!'||coalesce(companyname,'')||'!C0LS3P!'||(case when refv=1 then 'Y' else 'N' end)||'!C0LS3P!'||case_id||'!C0LS3P!'||coalesce(resrequiredphoto,0)||'!C0LS3P!'||coalesce(offrequiredphoto,0)||'!C0LS3P!'||coalesce(prorequiredphoto,0)||'!C0LS3P!'||coalesce(fileclosedby,0) from matrixquery where oprsend=1 val0 order by receivedate
Query121!C0L!select!C0L!select ro.uuid,ro.mvcode,ro.applno,ro.customername,ro.apptype,ro.portname,ro.visit,(case when ro.visit='R' then (select (raddr1||' '||COALESCE(raddr2,'')||' '||raddr3||' '||COALESCE(rcity,'')||' '||COALESCE(rpincode,'')) from main where uuid=ro.uuid) else (case when ro.visit='O' then (select (''||companyname||' '||oaddr1||' '||COALESCE(oaddr2,'')||' '||oaddr3||' '||COALESCE(ocity,'')||' '||COALESCE(opincode,'')) from main where uuid=ro.uuid) else (select (paddr1||' '||COALESCE(paddr2,'')||' '||paddr3||' '||COALESCE(pcity,'')||' '||COALESCE(ppincode,'')) from main where uuid=ro.uuid) end) end) as address,ro.product,ro.receivedon,(case when ro.isbacklog=1 then '#ecf4fa' else '#ffffff' end) as isbacklog,ro.batch,ro.verifier,(select mobileno from verifier where verifier_id=ro.verifier) as mobileno,ro.portfolio_id,0 as temp from reporting_operator ro where done=0 and (visit='R' or visit='O' or visit='P') val0 order by receivedon,portname,applno,apptype
Query122!C0L!procedure!C0L!select casetransfer('val0', val1, 'val2', val3, val4, val5, val6, val7, 'val8',val9)
Query123!C0L!select!C0L!select s.uid,s.uuid,s.portfolio_id,(case when s.portfolio_id > 0 then (select portname from portfolio p where p.portfolio_id=s.portfolio_id) else s.uuid end) as portname,s.visittype,s.smsmessage,( case when s.verifier_id > 0 then (select verifiercode from verifier v where v.verifier_id=s.verifier_id) else 'NA' end) as vercode,s.noofsms,(case when s.smsstatus=0 then 'outbox' else 'smsfailed' end) as smsstatus,0 as islocked,1 as sms,'' as lockedby, s.mobileno ,COALESCE(s.smsresponse,'-') as smsresponse from sms s where s.branch_id=val1 and s.smsstatus!=1 and s.isdeleted=0 and (s.activity = 1 or s.activity = 2) order by uid
Query124!C0L!update!C0L!update sms set senton='val2',sentby=val3,noofsms=(noofsms+val4),smsstatus=val5,smsresponse='val6',resend=(resend+1) where uid=val0;
Query125!C0L!procedure!C0L!select groupsms('val0','val1','val2',val3,val4)
Query126!C0L!select!C0L!select document_id,documenturl, to_char(processtime,'DD-MM-YYYY HH24:MI:SS') from app_documents where document_id in (select distinct document_id from main where val0 document_id > 0 order by document_id)
Query127!C0L!procedure!C0L!select case_pending('val0',val1,'val2',val3,val4,val5,'val6','val7')
Query128!C0L!update!C0L!update mailbox set senton='val0',sentby=val1,mailstatus=val2,response='val3',mailbody='val5' where mail_id=val4
Query129!C0L!select!C0L!select mail_id,fromemail,toemailid,ccemailid,receipent,mailsubject,to_char(senton,'DD/MM/YYYY HH24:MI:SS') as senton,mailstatus,response,mailbody,attachmentpath,sentby,emailtype,isresent,bank_branch_id,portfolio_id,archiveattachments,to_char(batch,'YYYY/MM/DD HH24:MI:SS') as batch,branch_id from emailbox m val0 order by batch desc
Query130!C0L!select!C0L!select uuid,mvcode,customername,apptype,visit from reporting_operator where upper(applno)=upper('val0') and portfolio_id=val1 and visit='val2' and uuid <> 'val3'
Query131!C0L!select!C0L!select ro.uuid,ro.portfolio_id,ro.portname,ro.mvcode,ro.applno,ro.customername,ro.apptype,ro.visit,(to_char(receivedon,'dd/MM/yyyy HH24:MI:SS')||' '||batch) as recdate,ro.opr,(select displayname||'-'||loginid from app_user where user_id=ro.opr) as doneby,(case when visit='R' then (select rlock from temp_reporting where uuid=ro.uuid) when visit='O' then (select olock from temp_reporting where uuid=ro.uuid) else (select plock from temp_reporting where uuid=ro.uuid) end) as clock from reporting_operator ro where ro.done=1 and (val0)
Query132!C0L!select!C0L!select d.uuid,d.mvcode,d.applno,d.customername,d.apptype,d.product,d.earlier,d.negative,to_char(d.deduperunon,'dd/MM/yyyy HH24:MI:SS') as deduperunon,d.bkbranchname,d.dedreport,(select queryid from bankreport where format_id=d.dedreport) as qid,d.name,d.portsupervisor,0 as temp from banklist_main_dedupe d where d.portfolio_id=val0 and d.dedupesend=0 and dedreport > 0 order by d.applno,d.apptype
Query133!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as receivedate,applno,upper(customername) cname,bank_branch_id,'DDUP Report' as label1,name as portname,to_char(receivedate,'dd/MM/yyyy') as receivedate,applno,customername,'' as blankcol1,'' as blank1,(case when earlier='Y' then earremarks else 'NO EARLIER MATCH FOUND' end) as earremarks,'' as blank2,(case when negative='Y' then negremarks else 'NO NEGATIVE MATCH FOUND' end) as negremarks,(case when negative='Y' then 'STATUS: NEGATIVE' else '' end) as label3,'' as blankcol2,'End of Report' as label4,to_char(deduperunon,'HH24:MI:SS') as dedtime,'Supervisor Name' as label5,'Agency Seal' as label6,'QR Code' as label7,portsupervisor,'images/signs/'||supervisor||'.png' as seal,mvcode||'-'||applno||'-'||customername||'-EAR-'||earlier||'-NEG-'||negative as bcode from banklist_main_dedupe d where portfolio_id not in (select portfolio_id from denied_process where process_id=13 and isdenied=1) and (val0) val1
Query134!C0L!select!C0L!select portfolio_id,portname from portfolio where portfolio_id not in (select portfolio_id from denied_process where process_id=13 and isdenied=1) and branch_id=val0
Query135!C0L!insert!C0L!insert into sys_event_log (msgtype,code,message,details,user_id,occuredon,ipaddr,branch_id) values ('val3','val2','val4','val5',val0,'val6','127.0.0.1',val1)
Query136!C0L!procedure!C0L!select hourlymis('val0','val1',val2,'val3','val4','val5','val6')
Query137!C0L!procedure!C0L!select receivedcases('val0', 'val1', val2, val3, val4, 'val5', 'val6', 'val7', 'val8')
Query138!C0L!procedure!C0L!select reportpending(val0, val1, val2, 'val3', 'val4', 'val5', 'val6')
Query139!C0L!procedure!C0L!select pendingcases(val0, val1, val2, 'val3', 'val4', 'val5', 'val6')
Query140!C0L!procedure!C0L!select phonenomis(val0,val1,'val2','val3','val4','val5','val6',val7,'val8','val9','val10')
Query141!C0L!procedure!C0L!select riskalertmis(val0,val1,val2,'val3','val4','val5','val6','val7',val8,'val9','val10','val11')
Query142!C0L!procedure!C0L!select redalertmis(val0,val1,'val2','val3','val4','val5','val6',val7,'val8','val9','val10')
Query143!C0L!select!C0L!select distinct user_id,displayname from phonenomis where branch_id=val0
Query144!C0L!select!C0L!select distinct sdoneby,(select displayname from app_user where user_id=sdoneby) as displayname from redalertmis where branch_id=val0
Query145!C0L!procedure!C0L!select vervisitmis('val0', 'val1', val2, 'val3', 'val4', 'val5', 'val6',val7)
Query146!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,(case when compcode='arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' else upper(maincompany) end) as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as repdoneby,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Scanned by: '||upper(sdonebyname) as sdonebyname,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)||'RESIDENCE ADDRESS PROOF : '||upper(proofdet)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Supervisor' as label47,portsupervisor,'Reason for negative' as blank1,'Residence Cum Office' as label48,'A' as label49,'Defaulter/Bad market reputation' as label50,'G' as label51,(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode,'Non target Area' as label51,'B' as label52,'Person does not exist' as label53,'H' as label54,'Outside Geographical Limits' as label55,'C' as label56,'Address not traceable/does not exist' as label57,'I' as label58,'Applicant of Family member not met' as label59,'D' as label60,'Detail mismatch' as label61,'J' as label62,'Door Locked' as label63,'E' as label64,'Negative neighbourhood check' as label65,'K' as label66,'Poor living conditions' as label67,'F' as lbl33,'Any other reason(not covered by above)' as label68,'L' as label69,'Shared/Bachelor Accomodtion (Applicable for Credit Card only)' as label70,'M' as label71,'Scanned by: '||upper(sdonebyname) as sdonebyuser,'Agency Verifier' as label45,'Agency Supervisor' as label46,(case when compcode='arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' else upper(maincompany) end) as maincomp,upper(rvername),upper(portsupervisor),(case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs,upper(status) as blank3 from banklist_main_residence r where (val0) val1
Query147!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,upper(aliasname)||'-OFFICE' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3)) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_19='-1' then 'NA' else upper(field30_19) end) as nmverfrm,(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as repdoneby,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as repdonebyname,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'Reason for negative' as blank2,'A' as label39,'Residence Cum Office' as label40,'G' as label41,'Detail Mismatch' as label43,(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'B' as label44,'Non Target Area' as label45,'H' as label46,'Designation Incorrect' as label47,'C' as label48,'Outsite Geographical Limits' as label49,'I' as label50,'No Business Activity' as label51,'D' as label52,'Entry Not Allowed' as label53,'J' as label54,'Negative Neighbour Check' as label55,'E' as label56,'Address Not Traceable' as label57,'K' as label58,'Defaulter/Bad Market Reputation' as label59,'F' as label60,'Applicant Does Not Work Here' as label61,'L' as label62,'Any Other Reason' as label63,'' as blk4,'Scanned by: '||upper(sdonebyname) as repdonebyuser,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,(case when compcode='arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' else upper(maincompany) end) as maincomp,overname,upper(portsupervisor),(case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs,upper(status) as blk6 from banklist_main_office o where (val0) val1
Query148!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,'images/port/'||portfolio_id||'.jpg' as axislogo,'Residence Verification Report' as title,'' as blank1,'Date of visit' as label1,visitdate,'Time of visit' as label2,visittime,'Product' as label3,upper(product) as product1,'File No.' as label4,upper(applno) as applno1,'Name of applicant' as label5,upper(customername) as customername,'Address' as label6,upper(raddr) as raddr,'Name of person met' as label7,upper(metperson) as metperson,'Relationship with applicant' as label8,(case when metrela='Father' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfather,'Father' as label9,(case when metrela='Mother' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmother,'Mother' as label10,(case when metrela='Sister' then 'images/tick.gif' else 'images/untick.jpg' end) as chksister,'Sister' as label11,(case when metrela='Wife' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwife,'Wife' as label12,(case when metrela='Son/Daughter' then 'images/tick.gif' else 'images/untick.jpg' end) as chkson,'Son/Daughter' as label13,'' as empty1,(case when metrela='Brother' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbrother,'Brother' as label14,(case when metrela='Self' then 'images/tick.gif' else 'images/untick.jpg' end) as chkself,'Self' as label15,(case when metrela='Relative' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrelative,'Relative' as label16,(case when metrela='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkothers,'Others Pls. Specify '||(case when metrela='Others' then ':'||upper(metrealoth) else '' end)as label17,'Ease of locating' as label18,(case when raccess='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkaccess,'Easy' as label19,(case when raccess='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdiff,'Difficult' as label20,(case when raccess='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as chkuntrace,'Untraceable' as label21,'Landmark' as label22,upper(field50_2) as landmark,'Ownership of residence' as label23,(case when rowner='Owned by Parents' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpowned,'Owned by Parents' as label24,(case when rowner='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chksowned,'Self Owned' as label25,(case when rowner='Owned by Relatives' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrelowned,'Owned by Relatives' as label26,'' as empty2,(case when rowner='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrented,'Rented' as label27,(case when rowner='Company Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcoacco,'Company Accomodation' as label28,(case when rowner='Paying Guest' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpguest,'Paying Guest' as label29,'No of years staying' as label30,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Stay confirmed by' as label31,(case when field30_5='Name Plate' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmp,'Name Plate' as label32,(case when field30_5='Neighbour' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneigh,'Neighbour' as label33,(case when field30_5='Security' then 'images/tick.gif' else 'images/untick.jpg' end) as chksec,'Security' as label34,'' as empty3,(case when field30_5='Person Met' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpmet,'Person Met' as label35,(case when field30_5='Could Not Confirm' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcnf,'Could Not Confirm' as label36,'Type of residence' as label37,(case when restype='Independent House' then 'images/tick.gif' else 'images/untick.jpg' end) as chkihouse,'Independent House' as label38,(case when restype='Flat/Part of Independent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfhouse,'Flat/Part of Independent' as label39,(case when restype='Chawl' then 'images/tick.gif' else 'images/untick.jpg' end) as chkchawl,'Chawl' as label40,'' as empty4,(case when restype='Bungalow' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbung,'Bunglow' as label41,(case when restype='Row House' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbung,'Row House' as label42,(case when restype='Temporary Shed' then 'images/tick.gif' else 'images/untick.jpg' end) as chktempsh,'Temporary Shed' as label43,'REMARKS: '||upper(remarks) as remarks,'Verifier''s name and signature' as label44,upper(rvername) as vername,'Agency manager''s name and sign' as label45,upper(portsupervisor) as portsupervisor,'Agency name' as label46,upper(maincompany) as label47,'Agency seal' as label90,'images/signs/'||supervisor||'.png' as singature,'' as blank2,'' as blank3,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,(case portfolio_id when 3 then 'PHOTOS' else '{SK!PTH15D@TA}' end) as lblphoto,(case portfolio_id when 3 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query149!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,'images/port/'||portfolio_id||'.jpg' as axislogo,'Office Verification Report' as title,'' as blank1,'Date of visit' as label1,visitdate,'Time of visit' as label2,visittime,'Product' as label3,upper(product) as product1,'File No.' as label4,upper(applno) as applno1,'Name of applicant' as label5,upper(customername) as customername,'Address' as label6,(coalesce(companyname||' ','')||upper(oaddr)) as oaddr,'Name of person met' as label7,upper(metperson) as metperson,'Type of employment' as label8,(case when category='Salaried' then 'images/tick.gif' else 'images/untick.jpg' end) as chksal,'Salaried' as label9,(case when category <> 'Salaried' then 'images/tick.gif' else 'images/untick.jpg' end) as chksal,'Self Employed' as label11,'Name of person met & His Designation' as label12,(case when metrela='Self' then 'images/tick.gif' else 'images/untick.jpg' end) as chkself,'Self' as label12,(case when metrela <> 'Self' then 'images/tick.gif' else 'images/untick.jpg' end) as chkOthr,('Other. Pls Specify: '||(case when (metrela <> 'Self' and metrela <> '-1' and metrela <> 'Others') then upper(metrela) when metrela='Others' then upper(metrealoth) else 'NA' end)) as label13,'Applicant working as' as label14,(case when appdesign = 'Assistant' then 'images/tick.gif' else 'images/untick.jpg' end) as chkass,'Assistant' as label15,(case when appdesign = 'Clerk' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclerk,'Clerk' as label16,(case when appdesign = 'Skilled Labour' then 'images/tick.gif' else 'images/untick.jpg' end) as chkslabr,'Skilled Labour' as label17,(case when appdesign = 'Supervisor' then 'images/tick.gif' else 'images/untick.jpg' end) as chksup,'Supervisor' as label18,'' as empty1,(case when appdesign = 'Jr.Management' then 'images/tick.gif' else 'images/untick.jpg' end) as chkjmgmt,'Jr.Management' as label19,(case when appdesign = 'Sr.Management' then 'images/tick.gif' else 'images/untick.jpg' end) as chksmgmt,'Sr.Management' as label20,(case when appdesign = 'Not Working' then 'images/tick.gif' else 'images/untick.jpg' end) as chkntwork,'Not Working' as label21,(case when appdesign = 'Self Employed' then 'images/tick.gif' else 'images/untick.jpg' end) as chksemp,'Self Employed' as label22,'' as empty2,(case when appdesign = 'Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chksemp,'Others Pls. Specify: '||(case when appdesign='Others' then upper(appdesignoth) else '' end) as label23,'Working Since' as label24,(case when category='Salaried' then ((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)||(case when (Field15_1<> '0' and Field15_1 <> '') then Field15_1||' DAY(S)' else '' end)) else '' end) as jobsince,'Office Ownership' as label25,(case when appdesign = 'Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chksownd,'Self Owned' as label26,(case when appdesign = 'Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkr,'Rented' as label27,(case when appdesign = 'Leased' then 'images/tick.gif' else 'images/untick.jpg' end) as chkl,'Leased' as label28,'' as empty3,(case when appdesign = 'Shared Premises' then 'images/tick.gif' else 'images/untick.jpg' end) as chksp,'Shared Premises' as label29,(case when appdesign = 'Business Centre' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbc,'Business Centre' as label30,(case when appdesign = 'Company Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkco,'Company Owned' as label31,'No of years in business' as label32,(case when category <> 'Salaried' then ((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)||(case when (Field15_1<> '0' and Field15_1 <> '') then Field15_1||' DAY(S)' else '' end)) else '' end) as bussince,'Nature of business' as label33,(case when compprof = 'Trading' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrd,'Trading' as label34,(case when compprof = 'Manufacturing' then 'images/tick.gif' else 'images/untick.jpg' end) as chkman,'Manufacturing' as label35,(case when compprof = 'Service' then 'images/tick.gif' else 'images/untick.jpg' end) as chkserv,'Service' as label36,'' as empty4,(case when compprof = 'Commission Agent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcomm,'Commission Agent' as label37,(case when compprof = 'Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chknoboth,'Others Pls. Specify: '||(case when compprof='Others' then upper(compprofoth) else '' end) as label38,'Office board seen' as label39,(case when bizboard = 'Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkyes,'Yes' as label40,(case when bizboard = 'No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkno,'No' as label41,'No of employees seen at the time of visit' as label42,field30_17 as empseen,'Stock level/Business activity seen at the time of visit' as label43,(case when busiact = 'Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgood,'High' as label44,(case when busiact = 'Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkavg,'Medium' as label45,(case when busiact = 'Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chklow,'Low' as label46,(case when busiact = 'NA' then 'images/tick.gif' else 'images/untick.jpg' end) as chknil,'NIL' as label47,'Business confirmed by' as label48,(case when field30_19 = 'Name Board' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgood,'Name Board' as label49,(case when field30_19='Neighbour' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneigh,'Neighbour' as label50,(case when field30_19='Security' then 'images/tick.gif' else 'images/untick.jpg' end) as chksec,'Security' as label51,'' as empty5,(case when field30_19='Person Met' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpmet,'Person Met' as label52,(case when field30_19='Could Not Confirm' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcnf,'Could Not Confirm' as label53,'REMARKS: '||upper(remarks) as remarks,'Verifier''s name and signature' as label44,upper(overname) as vername,'Agency manager''s name and sign' as label45,upper(portsupervisor) as portsupervisor,'Agency name' as label46,upper(maincompany) as label47,'Agency Seal' as aseal,'images/signs/'||supervisor||'.png' as singature,'' as blank2,'' as blank3,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(case portfolio_id when 3 then 'PHOTOS' else '{SK!PTH15D@TA}' end) as lblphoto,(case portfolio_id when 3 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query150!C0L!select!C0L!select t.uuid,t.product,t.maincompany,t.bkbranchname,to_char(t.receivedate,'DD/MM/YYYY') as receivedate,applno,upper(customername) as cname,t.bank_branch_id,'images/port/'||portfolio_id||'.jpg' as axislogo,'Tele Verification Report' as title,'' as blank1,'Date of calling' as label1,rattempt1,'Time of calling' as label2,rtime1,'Product' as label3,upper(product) as product1,'File No.' as label4,upper(applno) as applno1,'Name of applicant' as label5,upper(customername) as customername,'Residence Tele-Verification' as labeltitle,'Contact number' as label6,(case when rcontno is null or rcontno = '' then 'NOT INITIATED' else rcontno end) as rcontno,'Contacted' as label7,(case when rcontacted='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrcont,'Yes' as label8,(case when rcontacted='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrcont,'No' as label9,'' as label10,'' as label11,(case when rnotcontres='NOT RESPONDING' then 'images/tick.gif' else 'images/untick.jpg' end) as chknotresp,'Not picking up phone' as label12,(case when rnotcontres='WRONG NUMBER' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwn,'Wrong Number' as label13,(case when rnotcontres='SWITCHED OFF' then 'images/tick.gif' else 'images/untick.jpg' end) as chksw,'Switched Off' as label14,'' as label15,'' as label16,(case when rnotcontres='DISCONNECTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdisc,'Disconnected' as label17,(case when rnotcontres='ENGAGED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeng,'Engaged' as label18,(case when rnotcontres='LANDLINE NOT INITIATED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeng,'Landline Not Initiated' as label19,'Spoken to' as label20,upper(rcontpers) as rcontpers,'Relationship with applicant' as label21,(case when rcontrela='Father' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfather,'Father' as label22,(case when rcontrela='Mother' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmother,'Mother' as label23,(case when rcontrela='Sister' then 'images/tick.gif' else 'images/untick.jpg' end) as chksister,'Sister' as label24,(case when rcontrela='Wife' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwife,'Wife' as label25,(case when rcontrela='Son/Daughter' then 'images/tick.gif' else 'images/untick.jpg' end) as chkson,'Son/Daughter' as label26,'' as label27,(case when rcontrela='Brother' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbrother,'Brother' as label28,(case when rcontrela='Self' then 'images/tick.gif' else 'images/untick.jpg' end) as chkself,'Self' as label29,(case when rcontrela='Relative' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrelative,'Relative' as label30,(case when rcontrela='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkothers,'Others Pls. Specify '||(case when rcontrela='Others' then ':'||coalesce(upper(rcontrelaoth),'') else '' end)as label31,'No of years staying' as label32,((case when (rstayyrs<>'0' and rstayyrs<>'') then rstayyrs||' YEARS(S) ' else '' end)||(case when (rstaymnth <> '0' and rstaymnth <> '') then rstaymnth||' MONTH(S)' else '' end)) as stay,'Ownership of residence' as label33,(case when rowner='Owned by Parents' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpowned,'Owned by Parents' as label34,(case when rowner='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chksowned,'Self Owned' as label35,(case when rowner='Owned by Relatives' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrelowned,'Owned by Relatives' as label36,'' as label40,(case when rowner='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrented,'Rented' as label37,(case when rowner='Company Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcoacco,'Company Accomodation' as label38,(case when rowner='Paying Guest' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpguest,'Paying Guest' as label39,'Alternate contact no if any' as label41,coalesce(field30_1,'NA') as alternameno,'Telecaller''s name and signature' as label44,upper(telecaller) as vername,'Agency manager''s name and sign' as label45,upper(portsupervisor) as portsupervisor,'Agency name' as label46,upper(maincompany) as label47,'Agency Seal' as aseal2,'images/signs/'||supervisor||'.png' as singature,'' as blank2,'' as blank3,mvcode||'-'||applno||'-'||customername||'-RTV-'||(case when rcontno is null or rcontno ='' then 'NI' else roverallstat end) as bcode,'' as label48,'images/port/'||portfolio_id||'.jpg' as axislogo,'Tele Verification Report' as title,'' as blank1,'Date of calling' as label50,oattempt1,'Time of calling' as labe51,otime1,'Product' as label52,upper(product) as product1,'File No.' as label53,upper(applno) as applno1,'Name of applicant' as label54,upper(customername) as customername,'Office Tele-Verification' as labeltitle1,'Contact number' as label55,(case when ocontno is null or ocontno = '' then 'NOT INITIATED' else ocontno end) as ocontno,'Contacted' as label56,(case when ocontacted='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocont,'Yes' as label57,(case when ocontacted='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocont,'No' as label58,'' as label59,'' as label60,(case when onotcontres='NOT RESPONDING' then 'images/tick.gif' else 'images/untick.jpg' end) as chknotresp,'Not picking up phone' as label61,(case when onotcontres='WRONG NUMBER' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwn,'Wrong Number' as label62,(case when onotcontres='SWITCHED OFF' then 'images/tick.gif' else 'images/untick.jpg' end) as chksw,'Switched Off' as label63,'' as label15,'' as label16,(case when onotcontres='DISCONNECTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdisc,'Disconnected' as label64,(case when onotcontres='ENGAGED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeng,'Engaged' as label65,(case when onotcontres='LANDLINE NOT INITIATED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeng,'Landline Not Initiated' as label66,'Spoken to & His designation' as label67,coalesce(upper(ocontpers),'')||' ('||(case when ocontrela='Others' then coalesce(upper(ocontrelaoth),'') else ocontrela end)||')' as ocontpers,'Applicant working since' as label68,((case when (oworkyrs<>'0' and oworkyrs<>'') then oworkyrs||' YEARS(S) ' else '' end)||(case when (oworkmnth <> '0' and oworkmnth <> '') then oworkmnth||' MONTH(S)' else '' end)) as owork,'Applicant''s designation' as label69,(case when odesign is not null and odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Alternate contact no if any' as label70,coalesce(field30_2,'') as alternameno,'Telecaller''s name and signature' as label71,upper(telecaller) as vername,'Agency manager''s name and sign' as label72,upper(portsupervisor) as portsupervisor,'Agency name' as label73,upper(maincompany) as label74,'Agency Seal' as aseal,'images/signs/'||supervisor||'.png' as singature,'' as blank2,'' as blank3,mvcode||'-'||applno||'-'||customername||'-OTV-'||(case when ocontno is null or ocontno ='' then 'NI' else ooverallstat end) as bcode from banklist_main_telecalling t where (val0) val1
Query151!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Residence Verification Report' as lbltitle,'Exec Code :' as lblexec,rvercode,'Report Date :' as lblrpdate,to_char(now(),'DD/MM/YYYY HH24:MI:SS') as rpttime,'Applicaion Ref No.' as lblaplno,upper(applno) as applno1,'Agency Name' as lblagency,upper(maincompany) as lblmatrix,'MV Code' as lblmvcode,upper(mvcode) as mvcd, 'Applicant''s Name' as lblapname,upper(customername) as customername,'Co-Applicant(If any)' as lblcoifany,coalesce(sublist('select upper(customername) as field from main_mainopr where upper(applno)='''||upper(applno)||''' and receivedate='''||receivedate||''' and upper(apptype)=''CO-APPLICANT'' and portfolio_id='||portfolio_id,','),'') as coapp,'Residence Address' as lblraddr,upper(raddr) as raddr,'Address Confirmed' as lbladdrconf,upper(addrconfd) as addrconfd,'Landmark' as lbllndmrk,upper(field50_2) as landmark,'Date & Time of Visit' as lbldtvisit,coalesce(visitdate,' / / ')||' : '||coalesce(visittime,'00:00') as visitdate,'The following information is to be obtained from the applicant or anybody residing at the address :' as lblsection,'Person Contacted' as lblpcont,upper(metperson),'Relation with Applicant' as lblrel,(case when metrela = '-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Permanent Address :' as lblpaddr,upper(permadd) as permadd,'Resi Ph No.' as lblrph,rphone,'' as blank1,'' as blank2,'Off Ph No.' as lbloph,ophone,'Date of Birth / Age of applicant' as lbldob,(case when dob is null or length(dob) = 0 then age else dob end) as dob,'Years lived at current address' as lblstay,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residential Status' as lblrstatus,(case when rowner='-1' then 'NA' when rowner='Others' then upper(owneroth) else upper(rowner) end) as rowner,'Educational Qualification' as lbledu,upper(field30_17) as qual,'Marital Status' as lblmstatus,upper(maritial) as maritial,'No of Family Members' as lblfmem,totmem,'Working' as lblwork,earning,'Children' as lblchildren,children,'Dependent Adults' as lbldadults,field30_1,'If spouse working' as lblspswrk,upper(spswork) as spswork,'If yes Employment Details : ' as lblempdet,(case when spswork='Yes' then upper(spsempdet) else 'NA' end) as spsempdet,'Any Credit Card' as lblcc,upper(field30_2) as cc,'Card No.' as lblcno,upper(field30_3) as ccno,'Card Limit' as lblclimit,upper(field30_12) as cclimit,'Issuing Bank' as lblibank,upper(field50_3) as ibank,'Expiry Date' as lblexpdate,field30_10,'(Not applicable for credit cards)' as lblncc,'End user of Asset' as lbleuser,upper(Field30_11)as euser,'Location of Asset' as lbllast,upper(Field30_18) as lofasst,'Place of registration (for Auto)' as lblplc,upper(field30_19) as plc,'Present Vehicle' as lblpv,upper(field30_6) as pvehicle,'If availed finance Pl. Specify Financer Name' as lblfinancer,upper(field50_1) as financer,'Loan No.' as lblloanno,upper(field30_20) as loanno,'Asset' as lblasset,upper(field50_4) as asset,'EMI' as lblemi,upper(field30_8) as emi,'The following is based on verifier''s observation' as lblvobser,'How Co-operative was the customer' as lblcoop,upper(custbehav) as custbehav,'Neighbour''s Reference' as lblneighref,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neighref,'Name verified from' as lblnevfrm,upper(field30_5) as nvfrm,'Type of Residence' as lbltofres,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Locality of Residence' as lblloc,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of Locating address' as lbleloc,(case when raccess='-1' then 'NA' else upper(raccess) end) as raccess,'Construction of Residence' as lblconst,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Comment on Exteriors' as lblext,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area in sqft (approx)' as lblcarea,upper(carpetarea) as carpetarea,'Picture / Potrait of Political Leader Seen' as lblpol,coalesce(political,'')||coalesce(' - '||politicdet,'') as poldet,'Interior Conditions' as lblincon,upper(interior) as interor,'Assets seen at residence' as lblasset,upper(field150_1) as assetseen,'Other Details' as lblodet,((coalesce('Father Name: '||fathname,''))||(', Years in City: '||(case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity <> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end))||(coalesce(', Residence Proof: '||(case proof when '-1' then 'NA' when 'YES' then 'YES : '||upper(proofdet) else 'NO' end),''))||(coalesce(', Designation: '||design,''))||(coalesce(', Road Accessibility: '||accmode,''))||(coalesce(', Neighbour Check: '||(case when field30_9='-1' then 'NA' else upper(field30_9)||' - '||fieldtext_1 end),''))) as othdet,'Verifier''s Remarks' as lblverrem,upper(verremarks),'If the Applicant address is locked the following information is to be obtained from the neighbour' as lblcomnt,'Does the applicant stay at this residence' as lbldappstay,(case field30_13 when '-1' then 'NA' else upper(field30_13) end) as dappstay,'Approximate age of the applicant' as lblapxage,upper(field30_14) as apxage,'Approximate time, when applicat is available at home' as lblapxtime,upper(field30_15) as apxtime,'Number of family members in the house' as lblnooffam,upper(field30_16) as nooffammem,'STATUS : '||upper(status) as status,'Residence Cum Office' as lblrco,'images/untick.jpg' as blankrco,'Defaulter / Bad Market Reputation' as lblfraud,coalesce((case when negreason='Fraud' or negreason='Defaulter' then 'images/tick.gif' else 'images/untick.jpg' end),'') as def,'Non Targeted Area' as lblnta,coalesce((case when negreason='Negative Area' then 'images/tick.gif' else 'images/untick.jpg' end),'') as negarea,'Person Does Not Exist' as lblpdn,coalesce((case when negreason='No Such Person' then 'images/tick.gif' else 'images/untick.jpg' end),'') as nsp,'Outside Geographical Limits' as lblpdn,coalesce((case when negreason='OCL' then 'images/tick.gif' else 'images/untick.jpg' end),'') as ocl,'Address Not Traceable / Does Not Exist' as lblpdn,coalesce((case when negreason='Wrong Address' or negreason='Address Not Traceable' then 'images/tick.gif' else 'images/untick.jpg' end),'') as wadd,'Applicant or Family Member Not Met' as lblpdn,'images/untick.jpg' as asod,'Detail Mismatch' as lblpdn,coalesce((case when negreason='Detail Refused' then 'images/tick.gif' else 'images/untick.jpg' end),'') as drefused,'Door Locked' as lblpdn,coalesce((case when negreason='House Found Lock' then 'images/tick.gif' else 'images/untick.jpg' end),'') as hfl,'Negative Neighborhood Check' as lblpdn,coalesce((case when negreason='Negative Neighbour Check' then 'images/tick.gif' else 'images/untick.jpg' end),'') as nnc,'Poor Living Conditions' as lblpdn,'images/untick.jpg' as pls,'Any Other Reason (Not Covered by above)' as lblpdn,coalesce((case when negreason='Entry Not Allowed' or negreason='Low Stability' or negreason='Neighbour Not Possible' or negreason='Not Intrested' or negreason='Shifted' or negreason='Others' then 'images/tick.gif' else 'images/untick.jpg' end),'') as others,'Shared / Bachelor Accomodation (Applicable for Credit Cards Only' as lblbacc,(case when negreason='Bachelor Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as baccm,'Supervisor Remarks' as lblsrem,upper(remarks) as remarks,'Verifier''s Name & Signature' as lblvername,upper(rvername),'Agency Seal' as lblseal,'Team Leader / Supervisor Name' as lblteam,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'images/signs/'||supervisor||'.png' as sign,upper(portsupervisor) as supervisor from banklist_main_residence r where (val0) val1
Query152!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Employment / Business Verification Report' as lbltitle,'Excec Code: ' as lblexcec,upper(overcode) as vercode,'Report Date: ' as lblrepdate,to_char(now(),'DD/MM/YYYY HH24:MI:ss') as repdate,'Application Ref. No.' as lblappno,upper(applno) as applno1,'Agency Name' as lblagname,upper(maincompany) as lblmatrix,'MV Code' as lblmvcode,upper(mvcode) as mvcode1,'Applicant''s Name' as lblappname,upper(customername) as cname,'Co-applicant''s name (if any)' as lblcoapp,coalesce(sublist('select upper(customername) as field from main_mainopr where upper(applno)='''||upper(applno)||''' and receivedate='''||receivedate||''' and upper(apptype)=''CO-APPLICANT'' and portfolio_id='||portfolio_id,','),'') as coapp,'Office Address' as lbloaddr,upper(oaddr),'Address Confirmed' as lbladdconf,upper(addrconfd) as addrconfd,'Designation of the applicant' as lbldesig,(case appdesign when '-1' then 'NA' when 'Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Date & Time of Visit' as lbldtvisit,(visitdate||' : '||visittime) as dtvisit,'Following are based on information obtained from applicant / colleague' as lblcmnt,'Person Met' as lblpmet,upper(metperson) as metperson,'Designation of the person met' as lblpmet,(case metrela when '-1' then 'NA' when 'Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Telephone Number' as lbltno,ophone,'Ext No.' as lblextno,extension,'Mobile / Pager No.' as lblmobile,mobileno,'Number of years in present employment / Business' as lbnoyrs,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as jobsince,'Visiting card obtained' as lblviscard,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Total Experience in Employment / Business' as mfield,((case when (yrstot<>'0' and yrstot<>'') then yrstot||' YEARS(S) ' else '' end)||(case when (mnthtot<> '0' and mnthtot <> '') then mnthtot||' MONTH(S)' else '' end)) as totsince,'Name of the Company / Business' as lblcompany,upper(companyname) as companyname,'Type of Business' as lblbtype,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of Business' as lblnob,(case compprof when 'Others' then upper(compprofoth) else upper(compprof) end) as nob,'Product Dealt' as lblpdealt,upper(proddealt) as proddealt,'Office Ownership' as lblowner,(case ownership when '-1' then 'NA' when 'Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of Employees Working in Office / Business' as lblnoemp,totemp,'No of Branches' as lblbranch,totbranch,'(FOR SELF EMPLOYED) Average Monthly Turnover' as lblturnover,(case when upper(category) <> 'SALARIED' then turnover else 'NA' end) as turnover,'No of Customers per day' as lblcpday,(case when upper(category) <> 'SALARIED' then custperday else 'NA' end) as cpday,'(FOR SALARIED)' as lblsalaried,'Type of Job' as lbljobtype,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant wroking as' as lblwas,(case when upper(category)='SALARIED' then (case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) else 'NA' end) as appwas,'Applicant''s job Transferable' as lbljtransfer,(case when upper(category) = 'SALARIED' then (case transferable when '-1' then 'NA' else upper(transferable) end) else 'NA' end) as transfer,'Previous Employment details (if working for <1 year in current employment)' as lblpedet,'Name of the Company' as lblnofcomp,(case when upper(category) = 'SALARIED' then upper(companyname) else 'NA' end) as companyname,'Years worked in' as lblywin,(case when upper(category) = 'SALARIED' then upper(prevjobyrs) else 'NA' end) as pjobyrs,'Salary Drawn' as lblywin,(case when upper(category) = 'SALARIED' then upper(field30_21) else 'NA' end) as saldrawn,'The following are based on Verifier''s Observation:' as lblcmnt1,'Business Board seen outside Building / Office' as lblbboard,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Applicant''s name verified from' as lblnver,(case when field30_19='-1' then 'NA' else upper(field30_19) end) as nvfrom,'Type of Office' as lblotype,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of Office' as lblloca,(case locality when '-1' then 'NA' when 'Others' then upper(locaoth) else upper(locality) end) as locality,'Approx area of office (in sq. ft.)' as lblsqft,upper(field30_3) as carpetarea,'Construction of Office' as lblconstruction,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors' as lblext,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as ext,'Interiors' as lblint,(case when field30_20='-1' then 'NA' else upper(field30_20) end) as interior,'Ease of locating office' as lblease,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business Activity level' as lblbact,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of Employees sighted in Premises' as lblempseen,upper(field30_2) as empseen,'No of customers seen' as lblcseen,upper(custseen) as custseen,'Whether any display of affiliation to political party seen' as lblpolitical,(case political when '-1' then 'NA' when 'Yes' then upper(political)||coalesce(' - '||politicdet,'') else 'NO' end) as poldet,'Items seen in Premises (Specify in NOS)' as lblitmseen,'PC' as lblpc,field30_5,'Printers' as lblprint,field30_11,'AC' as lblac,field30_12,'' as lblblank3,'Xerox' as lblxerox,field30_13,'Telephone' as lbltel,field30_15,'FAX' as lblfax,field30_14,'Other Details' as othdet,'Father Name: '||upper(coalesce(fathname,''))||', '||'Reports To Designation: '||upper(coalesce(reportingto,''))||', '||(case when category <> '-1' then 'Applicant Category: '||upper(category) else '' end)||', '||(case when dob <> '' then 'Date of Birth: '||dob else '' end)||', '||'Common Resi & Office: '||upper(issameadd)||', '||'Neighbours Feedback: '||upper(fieldtext_1) as othdetdel, 'Verifier''s Remarks' as vremarks,upper(verremarks) as verrem,'STATUS : '||upper(status) as status, 'Residence Cum Office' as rco,(case when negreason='Residence Cum Office' then 'images/tick.gif' else 'images/untick.jpg' end) as imgrco, 'Detail Mismatch' as lbldmis,(case when negreason='Detail Mismatch' then 'images/tick.gif' else 'images/untick.jpg' end) as imgdmis, 'Non Targeted Area' as lblnta,(case when negreason='Non Target Area' then 'images/tick.gif' else 'images/untick.jpg' end) as imgnta, 'Applicant Does Not Work Here / Person Does Not Exist' as lblpde,(case when negreason='Applicant Does Not Work Here' then 'images/tick.gif' else 'images/untick.jpg' end) as imgpde, 'Outside Geographical Limits' as lblogl,(case when negreason='Outside Geographical Limits' then 'images/tick.gif' else 'images/untick.jpg' end) as ogl, 'Designation Incorrect' as lbldinc,(case when negreason='Designation Incorrect' then 'images/tick.gif' else 'images/untick.jpg' end) as imgdinc, 'Entry Not Allowed' as lblena,(case when negreason='Entry Not Allowed' then 'images/tick.gif' else 'images/untick.jpg' end) as imgena, 'No Business Activity / Infrastructure Seen' as lblnba,(case when negreason='No Business Activity' then 'images/tick.gif' else 'images/untick.jpg' end) as imgnba, 'Defaulter / Bad Market Reputation' as lbldef,(case when negreason='Defaulter /Bad Market Reputation' then 'images/tick.gif' else 'images/untick.jpg' end) as imgdef, 'Negative Neighborhood Check' as lblnegneg,(case when negreason='Negative Neighbour Check' then 'images/tick.gif' else 'images/untick.jpg' end) as imgnegneg, 'Address Not Traceable / Does Not Exists' as lblant,(case when negreason='Address Not Traceable' or negreason='Incomplete Address' then 'images/tick.gif' else 'images/untick.jpg' end) as imgant, 'Any Other Reason (Not Covered By Above)' as lblother,(case when negreason='Address Not Traceable' or negreason='Any Other Reason' or negreason='Shared/Bachelor Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as imgother, 'Supervisor Remarks' as lblsuprem,upper(remarks) as remarks,'Verifier''s Name & Signature' as lnlvsign,upper(overname) as overname,'Agency Seal' as lblaseal,'Team Leader/Supervisor Name' as lbltl,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'images/signs/'||supervisor||'.png' as sign,upper(portsupervisor) as psup from banklist_main_office o where (val0) val1
Query153!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'RESIDENCE VERIFICATION' as lbltitle,'REF NO.' as lblappno,upper(applno) as applno1,'Item' as lblitem,upper(product) as product1,'Date & Time of CPV' as lbldt,visitdate||' : '||visittime as visdate,'Customer''s Name' as lblcname,upper(customername) as customername,'Address' as lbladdr,upper(raddr) as raddr,'Person Met' as lblpmet,upper(metperson),'Relationship' as lblrela,(case metrela when '-1' then 'NA' when 'Others' then upper(metrealoth) else upper(metrela) end) metrela,'Phone Numbers' as lblphnno,(coalesce(rphone,'')||' '||(case when othphone is not null then '/'||othphone else '' end)) as phoneno ,'Mobile No.' as lblmobile,mobileno,'No of years at current address' as lblnoyears,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence status' as lblrstat,'Company Leased' as lblcleased,(case when rowner='Company Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcoacc,'Self Owned' as lblself,(case when rowner='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkself,'Finance Co (if Financed)' as lblfinance,upper(field50_1) as hfinco,'Rented' as lblrented,'Yes' as lblryes,(case when rowner='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrented,'No' as lblrno,(case when rowner <> 'Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chknorented,'Est. monthly rent (if Rented)' as lblestrent,upper(Field30_4) as estrent,'Other specify (for ownership other than person verified)' as lbloother,upper(owneroth) as owneroth,'Name of company where he/she is employed' as lblconame,upper(companyname) as companyname,'Designation' as lbldesign,upper(design) as design,'Office address' as lbloffaddr,upper(offaddr) as offaddr,'Tel no' as lbltno,phoneno,'Credit card' as lblcc,'Yes' as lblccyes,(case when field30_2='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkccyes,'No' as lblccno,(case when field30_2='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkccno,'Name of card' as lblnoc,upper(field30_19) as nofcard,'Card no' as lblccno,upper(field30_3) as ccno,'Vehicle owned' as lblvowned,'Two Wheeler' as lblvotw,(case when field30_6='Two Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvtw,'Four Wheeler' as lblvofw,(case when rowner='Four Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvfw,'Make' as lblmake,upper(field30_12) as make,'If financed, name of finance company' as lblfinv,upper(field50_3) as vfinco,'From whom is the asset being purchased' as lblasspur,upper(field30_11) as asspur,'Where will asset be located' as lblassloc,upper(field30_18) as assloc,'Is spouse working' as lblispswrk,'Yes' as lblspsyes,(case when spswork='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsyes,'No' as lblspsno,(case when spswork='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsno,'If yes, where' as lblspswhere,coalesce(upper(spscomp)||' ','')||coalesce(upper(spsempdet),'') as spsempdet,'Designation' as lblspsdesig,upper(spsdesign) as spsdesign,'No of dependents' as lbldepend,dependent,'Other earning member 1)' as lblothem1,upper(field30_7) as othem1,'Relationship' as lblothem1,upper(field30_8) as othemrel1,'Other earning member 2)' as lblothem2,upper(field30_10) as othem2,'Relationship' as lblothem2,upper(field30_13) as othemrel2,'OBSERVATIONS' as lblobsercmt,'1) Locating address' as lbllocaddr,'Easy' as lblloceasy,(case when raccess='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as loceasy,'Difficult' as lbllocdiff,(case when raccess='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as locdiff,'Untraceable' as lbllocunt,(case when raccess='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as locunt,'2) Landmarks 1.' as lbllnd1,upper(field50_5) as lnd1,'2.' as lbllnd1,upper(field50_6) as lnd2,'3) Approximate age of met person' as lblappage,upper(field30_14) as appxage,'4) Name verified from' as lblnvfrm,'Name Plate' as lblnmplt,(case when field30_5='Name Plate' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmplt,'Watchman' as lblsecu,(case when field30_5='Security' then 'images/tick.gif' else 'images/untick.jpg' end) as chksecu,'Neighbour' as lblneigh,(case when field30_5='Neighbour' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneigh,'5) Locality' as lblloc,'Posh' as lblposh,(case when locality='Posh' then 'images/tick.gif' else 'images/untick.jpg' end) as chkposh,'Upper Middle Class' as lblumc,(case when locality='Upper Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkumc,'Middle Class' as lblmc,(case when locality='Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmc,'Lower Middle Class' as lbllmc,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chklmc,'' as lbanmk1,'Residential' as lbllres,(case when locality='Residential' then 'images/tick.gif' else 'images/untick.jpg' end) as chklres,'Commercial' as lbllcomm,(case when locality='Commercial' then 'images/tick.gif' else 'images/untick.jpg' end) as chklcomm,'Undeveloped' as lbllund,(case when locality='Undeveloped' then 'images/tick.gif' else 'images/untick.jpg' end) as chklund,'Troubleprone' as lbltbpr,(case when locality='Troubleprone' then 'images/tick.gif' else 'images/untick.jpg' end) as chkltbpr,'6) Type of accomodation' as lbltyacco,'Individual House' as lblind,(case when restype='Independent House' then 'images/tick.gif' else 'images/untick.jpg' end) as chkind,'Flat' as lblflat,(case when restype='Flat/Part of Independent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkflat,'Bunglow' as lblbung,(case when restype='Bunglow' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbung,'Other' as lbloth,(case when restype='Others' or restype='Temporary Shed' then 'images/tick.gif' else 'images/untick.jpg' end) as chkoth,(case restype when 'Temporary Shed' then upper(restype) when 'Others' then upper(typeoth) else 'NA' end) as typeoth,'7) Furnishing' as lblfur,'High' as lblhigh,(case when furlevel='Upper Middle' then 'images/tick.gif' else 'images/untick.jpg' end) as chkhigh,'Medium' as lblmed,(case when furlevel='Middle' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmed,'Low' as lbllow,(case when furlevel='Lower Middle' then 'images/tick.gif' else 'images/untick.jpg' end) as chklow,'Poor' as lblpoor,(case when furlevel='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as ckpoor,'8) Durables visible' as lbldvis,'T.V' as lbltv,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chktv,'A.C' as lblac,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkac,'Telephone' as lbldtel,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chktel,'VCR' as lbldvcr,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvcr,'9) Is the item being financed visible' as lblitmfin,'Yes' as lblityes,(case when field30_15='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkitmfinys,'No' as lblitno,(case when field30_15='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkitmfinno,'10) Standing in locality' as lblstloc,'V.Good' as lblstvg,(case when field30_16='V.Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstvg,'Good' as lblstg,(case when field30_16='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstg,'Fair' as lblstf,(case when field30_16='Fair' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstf,'Poor' as lblstf,(case when field30_16='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstp,'11) Within municipal limit' as lblmlimit,'Yes' as lblmlyes,(case when field30_17='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmlyes,'No' as lblmlno,(case when field30_17='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmlno,'12) Accessibility' as lblaccess,'By all modes of transport' as lblbam,(case when accmode='By All Modes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbam,'By Two-wheelers only' as lblbtw,(case when accmode='By Two Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbtw,'Others' as lblboth,(case when accmode='By Four Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chkboth,(case when accmode='By Four Wheeler' then 'BY FOUR WHEELER' else 'NA' end) as byfwlr, 'If the address is different, then the revised address is' as lblrevaddr,(case when changeinadd='Yes' then upper(correctaddr) else 'NA' end) as correctaddr,'' as pagebreak,'Comments of supervisor: '||upper(remarks) as remarks,upper(rvername),'' as blank1,'Date recd.' as lbldtrec,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Verifier''s name' as lblvername,'Verifier''s Signature' as lblvsign,'Date sent' as lbldsent,to_char(now(),'DD/MM/YYYY') as sendon,'We hereby certify that the above verification regarding the particulars of the applicants have been carried out with due deligence and the information provided herein is true and accurate.' as lbldesclaimer,'(Please see the salaried/self-employed report for remarks and recommendation on the case.)' as lblcmnt3,'Positive' as lblpositive,(case when status='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpositive,'Negative' as lblnegative,(case when status='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as chkengative,'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'' as blank5,'' as blank6,'Authorised Signatory' as lblasign,upper(status) as repstat from banklist_main_residence r where (val0) val1
Query154!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'SALARIED VERIFICATION' as lbltitle,'REF NO' as lblapplno,upper(applno) as applno1,'Item' as lblitm,upper(product) as product1,'Date & Time of CPV' as lbldt,visitdate||' : '||visittime as visdate,'Customer Name' as lblcname,upper(customername) as cname1,'Address' as lbladdr,upper(oaddr) as oaddr,'Person met' as lblpmet,upper(metperson),'Relationship' as lblrel,(case metrela when '-1' then 'NA' when 'Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Customer designation' as lbldesig,upper(appdesign) as design,'Brief description of job responsibilities' as lblresponse,'Phone numbers',ophone,'Mobile No' as lblmobile,mobileno,'Type of organisation' as lblorgatype,'Proprietorship' as lblprop,(case when busitype='Proprietorship' or busitype='Self Employed' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprop,'Partnership' as lblpart,(case when busitype='Partnership' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpart,'Pvt Ltd.' as lblpl,(case when busitype='Private Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpl,'Pub Ltd.' as lblpubl,(case when busitype='Public Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpubl,'Govt.' as lblgov,(case when busitype='Government' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgov,'Nature of organisation' as lblnature,'Manufacturing' as lblmanu,(case when compprof='Manufacturing' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmanu,'Trading' as lbltrad,(case when compprof='Trading' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrad,'Service' as lblserv,(case when compprof='Trading' then 'images/tick.gif' else 'images/untick.jpg' end) as chkserv,'Others (specify)' as lblnoboth,(case when compprof='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chknoboth,(case when compprof='Others' then upper(compprofoth) else '' end) as othnob,'No of years experience' as lblexp,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as jobsince,'Total' as lbltot,((case when (yrstot<>'0' and yrstot<>'') then yrstot||' YEARS(S) ' else '' end)||(case when (mnthtot<> '0' and mnthtot <> '') then mnthtot||' MONTH(S)' else '' end)) as jobtot,'Details of previous employment' as lblprev,upper(prevjobdet) as prevjobdet,'Company covered under PF/ESI' as lblpfesi,'Yes' as lblesiyes,(case when field30_1='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkesiyes,'No' as lblesino,(case when field30_1='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkesino,'Residence address' as lblraddr,upper(field150_1) as raddr,'Residence Phone' as lblrphone,field30_2,'Mobile No' as rmobile,field30_3,'Residence Status' as lblrstatus,'Company Leased' as lblcles,(case when field30_4='Company Leased' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcles,'Self Owned' as lblrsown,(case when field30_4='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrsown,'Finance Co.(if financed)' as lblrfinco,upper(field50_1) as rfinco,'' as lblfco,'Rented' as lblrrent,'Yes' as lblrsyes,(case when field30_4='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrsno,'No' as lblrsno,(case when field30_4 <> 'Rented' and field30_4 <> 'NA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrsno,'Est. monthly rent (If Rented)' as lblesrent,upper(field30_5) as estrent,'' as blankestr,'Other specify (for ownership other than person verified)' as lblrsoth,upper(field30_6) as rsrentoth,'Is spouse working' as lblspswork,'Yes' as lblspsyes,(case when field30_7='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsyes,'No' as lblspsno,(case when field30_7='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsno,'If yes, where' as lblspswhere,upper(field50_2) as spswhere,'Address' as lblspsaddr,upper(field150_2) as spsaddr,'Designation' as lblspsdesig,upper(field30_8) as spsdesig,'Vehicle owned' as lblvowned,'Two Wheeler' as lbltw,(case when field50_5='Two Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chktw,'Four Wheeler' as lblfw,(case when field50_5='Four Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfw,'Make' as lblvmake,upper(field30_10) as vmake,'If financed, name of finance company' as lblvfinco,upper(field50_3) as vfinco,'Credit Card' as lblcc,'Yes' as lblccyes,(case when field30_11='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkccyes,'No' as lblccno,(case when field30_11='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkccno,'Use of asset for' as lblasstuse,'Personal Use' as lblpuse,(case when field30_12='Personal Use' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpuse,'Official Use' as lblouse,(case when field30_12='Official Use' then 'images/tick.gif' else 'images/untick.jpg' end) as lblouse,'For whom is the asset being purchased' as lblaspur,upper(field30_13) as asspur,'Where will the asset be located' as lblassloc,upper(field30_14) as assloc,'Any other financed assets' as lblassfin,upper(field30_15) as assfin,'Finance Co.' as lblassfinco,upper(field50_4) as assfinco,'OBSERVATIONS' as lblobsercmnt,'1) Landmarks 1)' as lbllndmrk,upper(field50_5) as lndmark1,'2' as lbllndmrk2,upper(field50_6) as lndmark2,'2) Locating address' as lbllocaddr,'Easy' as lblacceasy,(case when easeloc='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkacceasy,'Difficult' as lblaccdiff,(case when easeloc='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as chkaccdiff,'Untraceable' as lblaccuntr,(case when easeloc='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as chkaccuntr,'3) Locality' as lblloc,'Posh' as lblposh,(case when locality='Posh' then 'images/tick.gif' else 'images/untick.jpg' end) as chkposh,'Upper Middle Class' as lblumc,(case when locality='Upper Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkumc,'Middle Class' as lblmc,(case when locality='Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmc,'Lower Middle Class' as lbllmc,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chklmc,'' as lblblank,'Residential' as lblres,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkres,'Commercial' as lblcom,(case when locality='Commercial' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcom,'Undeveloped' as lblund,(case when locality='Undeveloped' then 'images/tick.gif' else 'images/untick.jpg' end) as chkund,'Troubleprone' as lbltprn,(case when locality='Troubleprone' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprn,'4) Type of office' as lbltoo,'Office Building' as lblob,(case when field30_16='Office Building' then 'images/tick.gif' else 'images/untick.jpg' end) as chkob,'Comm. Flat' as lblcf,(case when field30_16='Comm. Flat' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcf,'Shop' as lblshp,(case when field30_16='Shop' then 'images/tick.gif' else 'images/untick.jpg' end) as chkshp,'Other' as lbltoooth,(case field30_16 when 'Others' then upper(field30_17) when 'Residence' then upper(field30_16) else '' end) as chktoth,'5) Size of office' as lblsof,'Big' as lblsobig,(case when field30_18='Big' then 'images/tick.gif' else 'images/untick.jpg' end) as chksof,'Medium' as lblsomed,(case when field30_18='Medium' then 'images/tick.gif' else 'images/untick.jpg' end) as chksomed,'Small' as lblsosml,(case when field30_18='Small' then 'images/tick.gif' else 'images/untick.jpg' end) as chksosml,'6) No of employee' as lblnoemp,'Less than 5' as lbll5,(case when field30_19='Less than 5' then 'images/tick.gif' else 'images/untick.jpg' end) as chkl5,'5-25' as lbll525,(case when field30_19='5-25' then 'images/tick.gif' else 'images/untick.jpg' end) as chkl525,'25 & above' as lbl25abv,(case when field30_19='25 & above' then 'images/tick.gif' else 'images/untick.jpg' end) as chk25abv,'7) Automation level' as lblalev,'Fax' as lblfax,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfax, 'Telephone' as lbltphone,(case when chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chktphone,'Photostat' as lblpstat,(case when chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpstat,'Computers' as lblpc,(case when chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpc,'8) Furnishing' as lblfur,'High' as lblfurhigh,(case when field30_20='High' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurhigh,'Medium' as lblfurmed,(case when field30_20='Medium' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurmed,'Low' as lblfurlow,(case when field30_20='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurlow,'Poor' as lblfurpoor,(case when field30_20='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurpoor,'9) Level of activity' as lblactlev,'B.Busy' as lblvbusy,'images/untick.jpg' as chkvbusy,'Busy' as lblbusy,(case when busiact='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbusy,'Fair' as lblfair,(case when busiact='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfair,'Poor' as lblpoor,(case when busiact='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoor,'10) Within municipal limits' as lblmlimit,'Yes' as lblmlyes,(case when field30_21='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmlyes,'No' as lblmlno,(case when field30_21='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmlno,'11) Market reputation' as lblmrepo,'V.Good' as lblmrvg,(case when field30_22='V.Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmrvg,'Good' as lblmrg,(case when field30_22='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmrg,'Fair' as lblmrfair,(case when field30_22='Fair' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrfair,'Poor' as lblmrpoor,(case when field30_22='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrpoor,'12) Accessibility/Approachability' as lblappr,'By all modes of transport' as lblbyalmod,(case when field30_23='By all modes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbyalmod,'By Tow-wheelers only' as lblbytw,(case when field30_23='By Two-wheelers' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbytw,'Other' as lblbyoth,(case when field30_23='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbyoth,'' as pagebreak,'Supervisor remarks: '||upper(remarks) as remarks,'If the address is different, then the revised address is' as lblcraddr,(case when changeinadd='Yes' then upper(correctaddr) else 'NA' end) as craddr,upper(overname) as overname,'' as blank1,'Date recd' as lbldtrec,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Verifer''s Name' as lblvname,'Verifer''s Signature' as lblvsign,'Date sent' as lbldtsent,to_char(now(),'DD/MM/YYYY') as dtsent,'We hereby certify that the above verification regarding the particulars of the applicants of have been carried out with due deligence and the information provided herein is true and accurate' as lbldesclaimer,'Positive' as lblpsotive,(case when status='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as posstat,'Negative' as lblnegative,(case when status='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as negstat,'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'' as blank4,'' as naamkl,'Authorised Signatory' as lblasign,upper(status) as hidstat from banklist_main_office o where (val0) val1
Query155!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'SELF EMPLOYED VERIFICATION' as lbltitle,'REF NO' as lblapplno,upper(applno) as applno1,'Item' as lblitm,upper(product) as product1,'Date & Time of CPV' as lbldt,visitdate||' : '||visittime as visdate,'Customer Name' as lblcname,upper(customername) as cname1,'Address' as lbladdr,upper(oaddr) as oaddr,'Person met' as lblpmet,upper(metperson),'Relationship' as lblrel,(case metrela when '-1' then 'NA' when 'Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Name of business' as lblbname,upper(companyname),'Designation' as lbldesig,upper(appdesign) as design,'Phone numbers',ophone,'Mobile No' as lblmobile,mobileno,'Fax' as lblofax,'' as bnlanmkfa,'' as bnslanmkfa,'Any other Branch/Godown address' as lblbgaddr,upper(field50_3) as lblbgaddr,'Is the office self owned' as lblsowned, 'Yes' as lblsownedyes,(case when ownership='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chksownedo,'No' as lblsownedyes,(case when ownership <> 'Self Owned' and ownership <> '-1' then 'images/tick.gif' else 'images/untick.jpg' end) as chksowneno,'(if Rented) Estimated rent' as lblestrento,(case when ownership='Rented' then upper(field30_25) else '' end) as estrento,'Type of organisation' as lblorgatype,'Proprietorship' as lblprop,(case when busitype='Proprietorship' or busitype='Self Employed' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprop,'Partnership' as lblpart,(case when busitype='Partnership' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpart,'Pvt Ltd.' as lblpl,(case when busitype='Private Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpl,'Pub Ltd.' as lblpubl,(case when busitype='Public Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpubl,'Govt.' as lblgov,(case when busitype='Government' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgov,'Type of business activity' as lblnature,'Manufacturing' as lblmanu,(case when compprof='Manufacturing' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmanu,'Trading' as lbltrad,(case when compprof='Trading' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrad,'Service' as lblserv,(case when compprof='Trading' then 'images/tick.gif' else 'images/untick.jpg' end) as chkserv,'Others (specify)' as lblnoboth,(case when compprof='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chknoboth,(case when compprof='Others' then upper(compprofoth) else '' end) as othnob,'Nature of Business/Activity' as lbnactivy,upper(proddealt) as proddealt,'No of years in the business' as lblexp,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as jobsince,'If less than two years then earlier occupation' as lblprev,upper(prevjobdet) as prevjobdet,'Company covered under PF/ESI' as lblpfesi,'Yes' as lblesiyes,(case when field30_1='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkesiyes,'No' as lblesino,(case when field30_1='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkesino,'Residence address' as lblraddr,upper(field150_1) as raddr,'Residence Phone' as lblrphone,field30_2,'Mobile No' as rmobile,field30_3,'Residence Status' as lblrstatus,'Company Leased' as lblcles,(case when field30_4='Company Leased' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcles,'Self Owned' as lblrsown,(case when field30_4='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrsown,'Finance Co.(if financed)' as lblrfinco,upper(field50_1) as rfinco,'' as blankfcp,'Rented' as lblrrent,'Yes' as lblrsyes,(case when field30_4='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrsyes,'No' as lblrsno,(case when field30_4 <> 'Rented' and field30_4 <> 'NA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrsno,'Est. monthly rent (If Rented)' as lblesrent,upper(field30_5) as estrent,'' as blankestr,'Other specify (for ownership other than person verified)' as lblrsoth,upper(field30_6) as rsrentoth,'Is spouse working' as lblspswork,'Yes' as lblspsyes,(case when field30_7='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsyes,'No' as lblspsno,(case when field30_7='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsno,'If yes, where' as lblspswhere,upper(field50_2) as spswhere,'Address' as lblspsaddr,upper(field150_2) as spsaddr,'Designation' as lblspsdesig,upper(field30_8) as spsdesig,'Vehicle owned' as lblvowned,'Two Wheeler' as lbltw,(case when field50_5='Two Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chktw,'Four Wheeler' as lblfw,(case when field50_5='Four Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfw,'Make' as lblvmake,upper(field30_10) as vmake,'If financed, name of finance company' as lblvfinco,upper(field50_3) as vfinco,'Credit Card' as lblcc,'Yes' as lblccyes,(case when field30_11='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkccyes,'No' as lblccno,(case when field30_11='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkccno,'Use of asset for' as lblasstuse,'Personal Use' as lblpuse,(case when field30_12='Personal Use' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpuse,'Official Use' as lblouse,(case when field30_12='Official Use' then 'images/tick.gif' else 'images/untick.jpg' end) as lblouse,'For whom is the asset being purchased' as lblaspur,upper(field30_13) as asspur,'Where will the asset be located' as lblassloc,upper(field30_14) as assloc,'Any other financed assets' as lblassfin,upper(field30_15) as assfin,'Finance Co.' as lblassfinco,upper(field50_4) as assfinco,'OBSERVATIONS' as lblobsercmnt,'1) Landmarks 1)' as lbllndmrk,upper(field50_5) as lndmark1,'2' as lbllndmrk2,upper(field50_6) as lndmark2,'2) Locating address' as lbllocaddr,'Easy' as lblacceasy,(case when easeloc='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkacceasy,'Difficult' as lblaccdiff,(case when easeloc='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as chkaccdiff,'Untraceable' as lblaccuntr,(case when easeloc='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as chkaccuntr,'3) No of employee' as lblnoemp,'Less than 5' as lbll5,(case when field30_19='Less than 5' then 'images/tick.gif' else 'images/untick.jpg' end) as chkl5,'5-25' as lbll525,(case when field30_19='5-25' then 'images/tick.gif' else 'images/untick.jpg' end) as chkl525,'25 & above' as lbl25abv,(case when field30_19='25 & above' then 'images/tick.gif' else 'images/untick.jpg' end) as chk25abv,'4) Type of office' as lbltoo,'Office Building' as lblob,(case when field30_16='Office Building' then 'images/tick.gif' else 'images/untick.jpg' end) as chkob,'Comm. Flat' as lblcf,(case when field30_16='Comm. Flat' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcf,'Shop' as lblshp,(case when field30_16='Shop' then 'images/tick.gif' else 'images/untick.jpg' end) as chkshp,'Residence' as lblresid,(case when field30_16='Residence' then 'images/tick.gif' else 'images/untick.jpg' end) as chkresid,'Other' as lbltoooth,(case when field30_16='Other' then 'images/tick.gif' else 'images/untick.jpg' end) as chktoooth,(case when field30_16='Other' then upper(field30_17) else '' end) as chktoth,'5) Size of office' as lblsof,'Big' as lblsobig,(case when field30_18='Big' then 'images/tick.gif' else 'images/untick.jpg' end) as chksobig,'Medium' as lblsomed,(case when field30_18='Medium' then 'images/tick.gif' else 'images/untick.jpg' end) as chksomed,'Small' as lblsosml,(case when field30_18='Small' then 'images/tick.gif' else 'images/untick.jpg' end) as chksosml,'6) Locality' as lblloc,'Posh' as lblposh,(case when locality='Posh' then 'images/tick.gif' else 'images/untick.jpg' end) as chkposh,'Upper Middle Class' as lblumc,(case when locality='Upper Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkumc,'Middle Class' as lblmc,(case when locality='Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmc,'Lower Middle Class' as lbllmc,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chklmc,'' as blankloc,'Residential' as lblres,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkres,'Commercial' as lblcom,(case when locality='Commercial' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcom,'Undeveloped' as lblund,(case when locality='Undeveloped' then 'images/tick.gif' else 'images/untick.jpg' end) as chkund,'Troubleprone' as lbltprn,(case when locality='Troubleprone' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprn,'7) Automation level' as lblalev,'Fax' as lblfax,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfax, 'Telephone' as lbltphone,(case when chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chktphone,'Photostat' as lblpstat,(case when chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpstat,'Computers' as lblpc,(case when chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpc,'8) Furnishing' as lblfur,'High' as lblfurhigh,(case when field30_20='High' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurhigh,'Medium' as lblfurmed,(case when field30_20='Medium' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurmed,'Low' as lblfurlow,(case when field30_20='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurlow,'Poor' as lblfurpoor,(case when field30_20='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfurpoor,'9) Level of activity' as lblactlev,'B.Busy' as lblvbusy,'images/untick.jpg' as chkvbusy,'Busy' as lblbusy,(case when busiact='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbusy,'Fair' as lblfair,(case when busiact='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfair,'Poor' as lblpoor,(case when busiact='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoor,'10) Within municipal limits' as lblmlimit,'Yes' as lblmlyes,(case when field30_21='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmlyes,'No' as lblmlno,(case when field30_21='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmlno,'11) Market reputation' as lblmrepo,'V.Good' as lblmrvg,(case when field30_22='V.Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmrvg,'Good' as lblmrg,(case when field30_22='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmrg,'Fair' as lblmrfair,(case when field30_22='Fair' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrfair,'Poor' as lblmrpoor,(case when field30_22='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrpoor,'12) Accessibility/Approachability' as lblappr,'By all modes of transport' as lblbyalmod,(case when field30_23='By all modes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbyalmod,'By Tow-wheelers only' as lblbytw,(case when field30_23='By Two-wheelers' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbytw,'Other' as lblbyoth,(case when field30_23='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbyoth,'' as pagebreak,'Supervisor remarks: '||upper(remarks) as remarks,upper(overname) as overname,'' as blank1,'Date recd' as lbldtrec,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Verifer''s Name' as lblvname,'Verifer''s Signature' as lblvsign,'Date sent' as lbldtsent,to_char(now(),'DD/MM/YYYY') as dtsent,'We hereby certify that the above verification regarding the particulars of the applicants of have been carried out with due deligence and the information provided herein is true and accurate' as lbldesclaimer,'Positive' as lblpsotive,(case when status='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as posstat,'Negative' as lblnegative,(case when status='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as negstat,'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'' as blank4,'Authorised Signatory' as lblasign,upper(status) as statrep from banklist_main_office o where (val0) val1
Query156!C0L!procedure!C0L!select pendinguploads('val0','val1','val2',val3)
Query157!C0L!select!C0L!select portfolio_id,portname from portfolio where branch_id=val0 and portfolio_id in (select portfolio_id from bankreport_settings where val1>=1)
Query158!C0L!select!C0L!select portfolio_id,url,updateurl,urltype,queryid,domainname,serverip,serverid,'XX' as key, 'XX' as key1,method,tpquery from download_settings where portfolio_id=val0
Query159!C0L!select!C0L!select portfolio_id,url,updateurl,urltype,queryid,ftpserver,ftpserverip,serverid,ftpuser as key, ftppassword as key1,method,tpquery from upload_settings where portfolio_id=val0
Query160!C0L!select!C0L!select pu.onlinecaseid,mq.uuid,mq.branch,mq.customername,mq.apptype,mq.product,to_char(mq.addedon,'DD/MON/YYYY HH24:MI:SS AM') as addedon,(case when upper(mq.overallstatus)='NOT RECOMMENDED' or upper(mq.overallstatus)='NEGATIVE' or upper(mq.overallstatus)='UNSATISFACTORY' then ''||mq.overallstatus||'' else mq.overallstatus end) as overallstatus,pu.filetoupload,pu.uploaded as temp from matrixquery mq, pending_uploads pu where pu.uuid=mq.uuid and pu.uploaded=0 and pu.portfolio_id=val0
Query161!C0L!procedure!C0L!select uploadedreports('val0','val1',val2)
Query162!C0L!select!C0L!select colony_id,location,zone,city,pincode,belt_id,isactive from colony where colony_id=val0 and isactive=1
Query163!C0L!procedure!C0L!select updatecolony('val0','val1','val2','val3','val4',val5,val6,'val7',val8,val9,val10)
Query164!C0L!procedure!C0L!select changelogkey('val0','val1','val2',val3)
Query165!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'EHYLV:RSOD:YRUCC' as label1,'Check Word' as label2,upper(name) as ptname,'ANNEXURE-I' as label3,'FIELD INVESTIGATION REPORT(Strictly Private Confidential)' as label4,'Agency SL. No.' as label5,upper(mvcode) as mvcode,'Request Received On' as label6,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Branch Name' as label7,upper(bkbranchname) as branchname1,'Field Visit On' as label8,(coalesce(visitdate)||' '||coalesce(visittime)) as visidate,'Application No.' as label9,upper(applno) as applno3,' & Distance in Kms' as label10,'OFFICE' as label11,'RESI' as label12,'' as blank1,'' as blank2,'' as blank3,'' as blank4,'From Branch' as label13,upper(Field30_16) as distoff,upper(Field30_1) as distresi,'Applicant Name' as label14,upper(customername) as appname,'Proposed Guarantor / Surety Name' as label15,upper(Field30_4) as pgur,'Loan Sought' as label16,upper(field30_2) as loansought,'Loan Purpose' as label17,upper(field30_3) as loanpurp,'PERSONAL DETAILS' as label17,'EMPLOYMENT DETAILS (For Salaried Borrowers Only)' as label18,'Date of Birth' as label19,(case when dob is null or length(dob) < 10 then upper(age) else dob end) as dob,'Name of Employer' as label20,upper(compname) as compname,'Nationality' as label21,(case when upper(Field30_5)='INDIAN' then ''||Field30_5||'' else Field30_5 end) as indian,(case when upper(Field30_5)='NRI' then ''||Field30_5||'' else Field30_5 end) as nri,(case when upper(Field30_5)='FOREIGN' then ''||Field30_5||'' else Field30_5 end) as foreigner,'Designation' as label22,upper(design) as design,'No of Years in Residence' as label23,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Working Since' as label24,upper(field30_14) as worksince,'No of Years in City' as label25,((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity<> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)) as staycity,'Employer Phone No' as label26,phoneno,'Marital Status' as label27,(case when upper(maritial)='MARRIED' then ''||maritial||'' else maritial end) as married,(case when upper(maritial)='SINGLE' then ''||'Unmarried'||'' else 'Unmarried' end) as single,'Current Salary p.m.' as label28,upper(field30_10) as salary,'Earning Spouse' as label29,(case when upper(spswork)='YES' then ''||'Yes'||'' else 'Yes' end) as spswyes,(case when upper(spswork)='NO' then ''||'No'||'' else 'Yes' end) as spswno,'Previous Employer' as label30,upper(field30_11) as prevemp,'No of Dependents' as label31,dependent,'Designation' as label32,upper(design) as design1,'IT PAN/GIR' as label33,upper(Field30_6) as itpan,'Period of Service' as label34,upper(field30_13) as pofserv,'Credit Card #1' as label35,upper(field150_1) as cc1,'Credit Card #2' as label36,upper(field150_2) as cc2,'RESIDENCE VERIFICATION REPORT (FOR ALL BORROWERS)' as label37,'Applicant''s Residence Address' as label38,upper(raddr) as raddr,'Res. Phone No.' as label39,rphone,'Mobile No' as label40,mobileno,'Name of the Person Met' as label41,upper(metperson) as metperson,'Relationship with Applicant' as label42,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Name Verified From' as label43,'Name Plate' label44,(case when field30_15='Name Plate' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmp,'Security' label45,(case when field30_15='Security' then 'images/tick.gif' else 'images/untick.jpg' end) as chksec,'Neighbour' label46,(case when field30_15='Neighbour' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneigh,'Others' label47,(case when field30_15='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkoth,'Res Type' as label48,'Chawl' as label49,(case when restype='Chawl' then 'images/tick.gif' else 'images/untick.jpg' end) as chkchaw,'Flat' as label50,(case when restype='Flat/Part of Independent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkflat,'Independent House' as label51,(case when restype='Independent House' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindp,'Bangalow' as label51,(case when restype='Bungalow' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbang,'Area (in Sq.ft)' as label52,'< 400' as label53,(case when field30_18='<400' then 'images/tick.gif' else 'images/untick.jpg' end) as chk400,'400 to 800' as label54,(case when field30_18='400 to 800' then 'images/tick.gif' else 'images/untick.jpg' end) as chk800,'800 to 1200' as label55,(case when field30_18='800 to 1200' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1200,'>1200' as label56,(case when field30_18='>1200' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1300,'Accessibility' as label57,'Poor' as label58,(case when raccess='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoor,'Average' as label59,(case when raccess='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkavg,'Good' as label60,(case when raccess='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgood,'Excellent' as label61,(case when raccess='Excellent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkexce,'Location' as label62,'Seedy' as label63,(case when locality='Seedy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkseedy,'Low Income' as label64,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chklmc,'Middle Class' as label64,(case when locality='Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmc,'Posh' as label65,(case when locality='Posh' then 'images/tick.gif' else 'images/untick.jpg' end) as chkposh,'Ownership' as label66,'Rented' as label67,(case when rowner='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrented,'Co. Leased' as label68,(case when rowner='Company Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcacc,'Parental/Spouse' as label69,(case when rowner='Owned by Parents' then 'images/tick.gif' else 'images/untick.jpg' end) as chkobp,'Self Owned' as label69,(case when rowner='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkso,'If rented, p.m.' as label70,upper(field30_17) as estrent,'Visible Assets' as label71,'CTV' as label72,(case when upper(Chkfield5)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkctv,'Fridge' as label73,(case when upper(Chkfield6)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfrd,'Music System' as label74,(case when upper(Chkfield7)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkms,'AC' as label75,(case when upper(Chkfield8)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkac,'' as blanmsk,'VCR/D' as label76,(case when upper(Chkfield9)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvcr,'Carpet' as label77,(case when upper(Chkfield10)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcarp,'Washing MC' as label78,(case when upper(Chkfield11)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwm,'Reasonable Furnishing' as label79,(case when upper(Chkfield12)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrf,'Agency Name' as label80,upper(maincompany) as label81,'Neighbours Feedback',upper(fieldtext_1),'Supervisor Remarks',upper(remarks),'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'Authorised Signatory' as label82 from banklist_main_residence r where (val0) val1
Query166!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as ptname,'OFFICE VERIFICATION REPORT (For Borrowers in Business/Profession)' as label1,'Agency SL. No.' as mvcodelbl,upper(mvcode) as mvcodeo,'Request Received On' as lblrequest,to_char(receivedate,'DD/MM/YYYY') as recdate1,'Application No.' as lblapplno,upper(applno) as applnoo,'Applicant''s Name' as label2,upper(customername) as customername,'Office Address' as label3,upper(oaddr) as oaddr,'Office Ph. No.' as label4,ophone,'Mobile No.' as label5,mobileno,'Fax No.' as label6,'' as label7,'Designation of Applicant' as label7_1,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Name of Person Met' as label8,upper(metperson) as metperson,'Designation of the Person' as label9,(case metrela when 'Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Main Line of Activity' as label10,(case compprof when 'Others' then upper(compprofoth) else upper(compprof) end) as nob,'Secondary Line of Business/Profession' as label11,upper(field150_2) as seclinebusi,'Years of Commencement' as label12,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'No of Employees Working' as label13,totemp,'Area (in Sq. ft.)' as label14,'< 800' as label15,(case when field30_1='<800' then 'images/tick.gif' else 'images/untick.jpg' end) as chk800,'800 to 1200' as label16,(case when field30_1='800 to 1200' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1200,'1200 to 1500' as label17,(case when field30_1='1200 to 1500' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1500,'>1500' as label18,(case when field30_1='> 1500' then 'images/tick.gif' else 'images/untick.jpg' end) as chk11500,'Accessibility' as label,'Poor' as label19,(case when easeloc='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1poor,'Average' as label20,(case when easeloc='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as chkavg,'Good' as label21,(case when easeloc='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgood,'Excellent' as label22,'images/untick.jpg' as imgexcel,'Location' as label23,'Seedy' as label24,(case when locality='Seedy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkseedy,'Industrial' as label25,(case when locality='Industrial/Factory' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindus,'Commercial' as label26,(case when locality='Commercial' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcomm,'Business Centre' as label27,(case when locality='Business Centre' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbcent,'Ownership' as label28,(case when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,(case when ownership='Rented' then upper(field30_2) else '' end) as rentifrented,'Level of Activity' as label,upper(busiact) as busiact,'Visible Assets' as label29,'Fax' as label30,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfax,'Photocopier' as label31,(case when chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpcop,'Computers' as label32,(case when chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkppc,'Carpet' as label33,(case when chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpcarp,'' as lbsdlf,'AC' as label34,(case when chkfield5='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkac,'EPABX' as label35,(case when chkfield6='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkepbax,'Stock of Goods' as label36,(case when chkfield7='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstock,'EMPLOYER OFFICE VERIFICATION REPORT (FOR SALARIED BORROWERS)' as label37,'Applicant''s Employer-Name & Address' as label37,upper(oaddr) as oaddr1,'Office Phone No.' as label38,ophone,'Mobile No' as label39,mobileno,'Extn No.' as label40,extension,'Name of the Person Met' as label41,(case when category='Salaried' then upper(metperson) else '' end) as salmetp,'Designation of the Person Met' as label42,(case when category='Salaried' then (case when metrela='Others' then upper(metrealoth) else upper(metrela) end) else '' end) as salmetre,'Applicant''s Designation Confirmed?' as label43,(case when field30_5='Yes' then 'Yes' else 'Yes' end) as desigyes,(case when field30_5='No' then 'No' else 'No' end) as designo,'Applicant''s Experience Confirmed?' as label44,(case when field30_6='Yes' then 'Yes' else 'Yes' end) as expyes,(case when field30_6='No' then 'No' else 'No' end) as expno,'Remarks on Employer Visit' as label45,upper(field150_1) as roev,'OTHER INFORMATION COMMON TO BOTH SALARIED AND OTHER BORROWERS' as label46,'Vehicle Owned Details' as label47,'Model' as label48,'Regn. No.' as label49,'Loans Taken' as label50,'Financer Name' as label51,'Loan Outstanding/Closed' as label52,upper(field30_7) as mod1,upper(field30_8) as regno1,upper(field30_25) as ltaken1,upper(field30_10) as amt1,upper(field30_11) as fin1,upper(field30_12) as otcl1,upper(field30_13) as mod2,upper(field30_14) as regno2,upper(field30_15) as ltaken2,upper(field30_16) as amt2,upper(field30_17) as fin2,upper(field30_18) as otcl2,upper(field30_19) as mod3,upper(field30_20) as regno3,upper(field30_21) as ltaken3,upper(field30_22) as amt3,upper(field30_23) as fin3,upper(field30_24) as otcl3,'PERSONAL OPINION ON THE APPLICATION(If Met)/MARKET REPUTATION' as label53,'Put " Mark where applicable' as label54,(case when field30_3='Polished' then 'Polished' else 'Polished' end) as behavpol,(case when field30_3='Polite' then 'Polite' else 'Polite' end) as behavpolt,(case when field30_3='Aggressive' then 'Aggressive' else 'Aggressive' end) as behavagr,(case when field30_3='Rude' then 'Rude' else 'Rude' end) as behavrud,(case when field30_3='Over Friendly' then 'Over Friendly' else 'Over Friendly' end) as behavof,(case when field50_1='Excellent Reputation' then 'Excellent Reputation' else 'Excellent Reputation' end) as repoexc,(case when field50_1='Good Reputation' then 'Good Reputation & No Unfavourable Connection' else 'Good Reputation & No Unfavourable Connection' end) as repogood,(case when field50_1='Unfavourable Connection' then 'Unfavourable Connection' else 'Unfavourable Connection' end) as repounfav,(case when field50_1='Negative Reputation' then 'Negative Reputation' else 'Negative Reputation' end) as reponeg,(case when field50_1='Known To Have Adverse Connection' then 'Known To Have Adverse Connections/Negative Reputation' else 'Known To Have Adverse Connections/Negative Reputation' end) as repoadvcon,'Agency Name' as label80,upper(maincompany) as label81,'Neighbours Feedback',upper(fieldtext_1),'Supervisor Remarks',upper(remarks),'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'Authorised Signatory' as label82 from banklist_main_office o where (val0) val1
Query165_old!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'EHYLV:RSOD:YRUCC' as label1,'Check Word' as label2,'ANNEXURE-I' as label3,'FIELD INVESTIGATION REPORT(Strictly Private Confidential)' as label4,'Agency SL. No.' as label5,upper(mvcode) as mvcode,'Request Received On' as label6,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Branch Name' as label7,upper(bkbranchname) as branchname1,'Field Visit On' as label8,(coalesce(visitdate)||' '||coalesce(visittime)) as visidate,'Agency SL. No.' as label9,upper(mvcode) as mvcode1,' & Distance in Kms' as label10,'OFFICE' as label11,'RESI' as label12,'' as blank1,'' as blank2,'' as blank3,'' as blank4,'From Branch' as label13,upper(Field30_16) as distoff,upper(Field30_1) as distresi,'Applicant Name' as label14,upper(customername) as appname,'Proposed Guarantor / Surety Name' as label15,upper(Field30_4) as pgur,'Loan Sought' as label16,upper(field30_2) as loansought,'Loan Purpose' as label17,upper(field30_3) as loanpurp,'PERSONAL DETAILS' as label17,'EMPLOYMENT DETAILS (For Salaried Borrowers Only)' as label18,'Date of Birth' as label19,(case when dob is null or length(dob) < 10 then upper(age) else dob end) as dob,'Name of Employer' as label20,upper(compname) as compname,'Nationality' as label21,(case when upper(Field30_5)='INDIAN' then ''||Field30_5||'' else Field30_5 end) as indian,(case when upper(Field30_5)='NRI' then ''||Field30_5||'' else Field30_5 end) as nri,(case when upper(Field30_5)='FOREIGN' then ''||Field30_5||'' else Field30_5 end) as foreigner,'Designation' as label22,upper(design) as design,'No of Years in Residence' as label23,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Working Since' as label24,upper(field30_14) as worksince,'No of Years in City' as label25,((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity<> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)) as staycity,'Employer Phone No' as label26,phoneno,'Marital Status' as label27,(case when upper(maritial)='MARRIED' then ''||maritial||'' else maritial end) as married,(case when upper(maritial)='SINGLE' then ''||'Unmarried'||'' else 'Unmarried' end) as single,'Current Salary p.m.' as label28,upper(field30_10) as salary,'Earning Spouse' as label29,(case when upper(spswork)='YES' then ''||'Yes'||'' else 'Yes' end) as spswyes,(case when upper(spswork)='NO' then ''||'No'||'' else 'Yes' end) as spswno,'Previous Employer' as label30,upper(field30_11) as prevemp,'No of Dependents' as label31,dependent,'Designation' as label32,upper(design) as design1,'IT PAN/GIR' as label33,upper(Field30_6) as itpan,'Period of Service' as label34,upper(field30_13) as pofserv,'Credit Card #1' as label35,upper(field150_1) as cc1,'Credit Card #2' as label36,upper(field150_2) as cc2,'RESIDENCE VERIFICATION REPORT (FOR ALL BORROWERS)' as label37,'Applicant''s Residence Address' as label38,upper(raddr) as raddr,'Res. Phone No.' as label39,rphone,'Mobile No' as label40,mobileno,'Name of the Person Met' as label41,upper(metperson) as metperson,'Relationship with Applicant' as label42,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Name Verified From' as label43,'Name Plate' label44,(case when field30_15='Name Plate' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmp,'Security' label45,(case when field30_15='Security' then 'images/tick.gif' else 'images/untick.jpg' end) as chksec,'Neighbour' label46,(case when field30_15='Neighbour' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneigh,'Others' label47,(case when field30_15='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkoth,'Res Type' as label48,'Chawl' as label49,(case when restype='Chawl' then 'images/tick.gif' else 'images/untick.jpg' end) as chkchaw,'Flat' as label50,(case when restype='Flat/Part of Independent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkflat,'Independent House' as label51,(case when restype='Independent House' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindp,'Bangalow' as label51,(case when restype='Bungalow' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbang,'Area (in Sq.ft)' as label52,'< 400' as label53,(case when field30_18='<400' then 'images/tick.gif' else 'images/untick.jpg' end) as chk400,'400 to 800' as label54,(case when field30_18='400 to 800' then 'images/tick.gif' else 'images/untick.jpg' end) as chk800,'800 to 1200' as label55,(case when field30_18='800 to 1200' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1200,'>1200' as label56,(case when field30_18='>1200' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1300,'Accessibility' as label57,'Poor' as label58,(case when raccess='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoor,'Average' as label59,(case when raccess='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkavg,'Good' as label60,(case when raccess='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgood,'Excellent' as label61,(case when raccess='Excellent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkexce,'Location' as label62,'Seedy' as label63,(case when locality='Seedy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkseedy,'Low Income' as label64,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chklmc,'Middle Class' as label64,(case when locality='Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmc,'Posh' as label65,(case when locality='Posh' then 'images/tick.gif' else 'images/untick.jpg' end) as chkposh,'Ownership' as label66,'Rented' as label67,(case when rowner='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrented,'Co. Leased' as label68,(case when rowner='Company Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcacc,'Parental/Spouse' as label69,(case when rowner='Owned by Parents' then 'images/tick.gif' else 'images/untick.jpg' end) as chkobp,'Self Owned' as label69,(case when rowner='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkso,'If rented, p.m.' as label70,upper(field30_17) as estrent,'Visible Assets' as label71,'CTV' as label72,(case when upper(Chkfield5)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkctv,'Fridge' as label73,(case when upper(Chkfield6)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfrd,'Music System' as label74,(case when upper(Chkfield7)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkms,'AC' as label75,(case when upper(Chkfield8)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkac,'' as blanmsk,'VCR/D' as label76,(case when upper(Chkfield9)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvcr,'Carpet' as label77,(case when upper(Chkfield10)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcarp,'Washing MC' as label78,(case when upper(Chkfield11)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwm,'Reasonable Furnishing' as label79,(case when upper(Chkfield12)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrf,'Agency Name' as label80,upper(maincompany) as label81,'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'Authorised Signatory' as label82 from banklist_main_residence r where (val0) val1
Query166_old!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'OFFICE VERIFICATION REPORT (For Borrowers in Business/Profession)' as label1,'Applicant''s Name' as label2,upper(customername) as customername,'Office Address' as label3,upper(oaddr) as oaddr,'Office Ph. No.' as label4,ophone,'Mobile No.' as label5,mobileno,'Fax No.' as label6,'' as label7,'Designation of Applicant' as label7_1,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Name of Person Met' as label8,upper(metperson) as metperson,'Designation of the Person' as label9,(case metrela when 'Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Main Line of Activity' as label10,(case compprof when 'Others' then upper(compprofoth) else upper(compprof) end) as nob,'Secondary Line of Business/Profession' as label11,upper(field150_2) as seclinebusi,'Years of Commencement' as label12,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'No of Employees Working' as label13,totemp,'Area (in Sq. ft.)' as label14,'< 800' as label15,(case when field30_1='<800' then 'images/tick.gif' else 'images/untick.jpg' end) as chk800,'800 to 1200' as label16,(case when field30_1='800 to 1200' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1200,'1200 to 1500' as label17,(case when field30_1='1200 to 1500' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1500,'>1500' as label18,(case when field30_1='> 1500' then 'images/tick.gif' else 'images/untick.jpg' end) as chk11500,'Accessibility' as label,'Poor' as label19,(case when easeloc='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1poor,'Average' as label20,(case when easeloc='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as chkavg,'Good' as label21,(case when easeloc='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgood,'Excellent' as label22,'images/untick.jpg' as imgexcel,'Location' as label23,'Seedy' as label24,(case when locality='Seedy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkseedy,'Industrial' as label25,(case when locality='Industrial/Factory' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindus,'Commercial' as label26,(case when locality='Commercial' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcomm,'Business Centre' as label27,(case when locality='Business Centre' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbcent,'Ownership' as label28,(case when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,(case when ownership='Rented' then upper(field30_2) else '' end) as rentifrented,'Level of Activity' as label,upper(busiact) as busiact,'Visible Assets' as label29,'Fax' as label30,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfax,'Photocopier' as label31,(case when chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpcop,'Computers' as label32,(case when chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkppc,'Carpet' as label33,(case when chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpcarp,'' as lbsdlf,'AC' as label34,(case when chkfield5='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkac,'EPABX' as label35,(case when chkfield6='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkepbax,'Stock of Goods' as label36,(case when chkfield7='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstock,'EMPLOYER OFFICE VERIFICATION REPORT (FOR SALARIED BORROWERS)' as label37,'Applicant''s Employer-Name & Address' as label37,upper(oaddr) as oaddr1,'Office Phone No.' as label38,ophone,'Mobile No' as label39,mobileno,'Extn No.' as label40,extension,'Name of the Person Met' as label41,(case when category='Salaried' then upper(metperson) else '' end) as salmetp,'Designation of the Person Met' as label42,(case when category='Salaried' then (case when metrela='Others' then upper(metrealoth) else upper(metrela) end) else '' end) as salmetre,'Applicant''s Designation Confirmed?' as label43,(case when field30_5='Yes' then 'Yes' else 'Yes' end) as desigyes,(case when field30_5='No' then 'No' else 'No' end) as designo,'Applicant''s Experience Confirmed?' as label44,(case when field30_6='Yes' then 'Yes' else 'Yes' end) as expyes,(case when field30_6='No' then 'No' else 'No' end) as expno,'Remarks on Employer Visit' as label45,upper(field150_1) as roev,'OTHER INFORMATION COMMON TO BOTH SALARIED AND OTHER BORROWERS' as label46,'Vehicle Owned Details' as label47,'Model' as label48,'Regn. No.' as label49,'Loans Taken' as label50,'Financer Name' as label51,'Loan Outstanding/Closed' as label52,upper(field30_7) as mod1,upper(field30_8) as regno1,upper(field30_25) as ltaken1,upper(field30_10) as amt1,upper(field30_11) as fin1,upper(field30_12) as otcl1,upper(field30_13) as mod2,upper(field30_14) as regno2,upper(field30_15) as ltaken2,upper(field30_16) as amt2,upper(field30_17) as fin2,upper(field30_18) as otcl2,upper(field30_19) as mod3,upper(field30_20) as regno3,upper(field30_21) as ltaken3,upper(field30_22) as amt3,upper(field30_23) as fin3,upper(field30_24) as otcl3,'PERSONAL OPINION ON THE APPLICATION(If Met)/MARKET REPUTATION' as label53,'Put " Mark where applicable' as label54,(case when field30_3='Polished' then 'Polished' else 'Polished' end) as behavpol,(case when field30_3='Polite' then 'Polite' else 'Polite' end) as behavpolt,(case when field30_3='Aggressive' then 'Aggressive' else 'Aggressive' end) as behavagr,(case when field30_3='Rude' then 'Rude' else 'Rude' end) as behavrud,(case when field30_3='Over Friendly' then 'Over Friendly' else 'Over Friendly' end) as behavof,(case when field50_1='Excellent Reputation' then 'Excellent Reputation' else 'Excellent Reputation' end) as repoexc,(case when field50_1='Good Reputation' then 'Good Reputation & No Unfavourable Connection' else 'Good Reputation & No Unfavourable Connection' end) as repogood,(case when field50_1='Unfavourable Connection' then 'Unfavourable Connection' else 'Unfavourable Connection' end) as repounfav,(case when field50_1='Negative Reputation' then 'Negative Reputation' else 'Negative Reputation' end) as reponeg,(case when field50_1='Known To Have Adverse Connection' then 'Known To Have Adverse Connections/Negative Reputation' else 'Known To Have Adverse Connections/Negative Reputation' end) as repoadvcon,'Agency Name' as label80,upper(maincompany) as label81,'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'Authorised Signatory' as label82 from banklist_main_office o where (val0) val1
Query167!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'DEFAULTER DATA BASE CHECK' as lable1,'is the applicant/ Proposed Serety/ Guarantor/ Business entity found in the defaulter data base maintained by the agency?' as label2,'Yes' as label3,'No' as label4,'TELEPHONIC VERIFICATION REPORT (For All Borrowers)' as label5,'Application No' as apnolable,upper(applno) as applno1,'Name' as lablname,upper(customername) as custname1,'Type of enquiry' as label7,(case when rtv=1 then 'Residence' else 'Residence' end) as rtv,(case when otv=1 then 'Office' else 'Office' end) as otv,'Telephone number exists?' as label8,(case when rcontacted='Yes' then 'Yes' else 'Yes' end) as rnoexyes,(case when rcontacted='No' then 'No' else 'No' end) as rnoexno,(case when ocontacted='Yes' then 'Yes' else 'Yes' end) as onoexyes,(case when ocontacted='No' then 'No' else 'No' end) as onoexno,'Name confirmed?' as label9,(case when rnameconfd='Yes' then 'Yes' else 'Yes' end) as rnameyes,(case when rnameconfd='No' then 'No' else 'No' end) as rnameno,(case when onameconfd='Yes' then 'Yes' else 'Yes' end) as onameyes,(case when onameconfd='No' then 'No' else 'No' end) as onameno,'Address confirmed?' as label9,(case when raddrconfd='Yes' then 'Yes' else 'Yes' end) as raddryes,(case when raddrconfd='No' then 'No' else 'No' end) as raddrno,(case when oaddrconfd='Yes' then 'Yes' else 'Yes' end) as oaddrno,(case when oaddrconfd='No' then 'No' else 'No' end) as oaddrno,'VERIFICATION OF RESIDENTIAL TELEPHONE' as label10,'No of attempts made' as label11,(case when rtotattempt='1' then '1' else '1' end) as rat1,(case when rtotattempt='2' then '2' else '2' end) as rat2,(case when rtotattempt='3' then '3' else '3' end) as rat3,(case when rtotattempt='4' then '4' else '4' end) as rat4,(case when rtotattempt='5' then '5' else '5' end) as rat5,(case when rtotattempt='6' then '6' else '6' end) as rat6,(case when rtotattempt='7' then '7' else '7' end) as rat7,'Number called' as label12,rcontno,'Person contacted' as label13,upper(rcontpers) as rcontpers,'Relationship with applicant' as label14,(case when rcontrela='Others' then upper(rcontrelaoth) else upper(rcontrela) end) as rcontrela,'Loan application confirmed' as label15,(case when loanappconfd='Yes' then 'Yes' else 'Yes' end) as rlconfyes,(case when loanappconfd='No' then 'No' else 'No' end) as rlconfno,'Residence address confirmed' as label16,(case when raddrconfd='Yes' then 'Yes' else 'Yes' end) as raddryes1,(case when raddrconfd='No' then 'No' else 'No' end) as raddrno1,'Business/Employment details confirmed' as label17,(case when field30_6='Yes' then 'Yes' else 'Yes' end) as rbdetyes,(case when field30_6='No' then 'No' else 'No' end) as rbdetno,'VERIFICATION OFFICE TELEPHONE' as label18,'No of attempts made' as label19,(case when oattempt='1' then '1' else '1' end) as oat1,(case when oattempt='2' then '2' else '2' end) as oat2,(case when oattempt='3' then '3' else '3' end) as oat3,(case when oattempt='4' then '4' else '4' end) as oat4,(case when oattempt='5' then '5' else '5' end) as oat5,(case when oattempt='6' then '6' else '6' end) as oat6,(case when oattempt='7' then '7' else '7' end) as oat7,'Number called' as label20,ocontno,'Person contacted' as label21,upper(ocontpers) as ocontpers,'Designation of the person' as label22,(case when ocontrela='Others' then upper(ocontrelaoth) else upper(ocontrela) end) as ocontrela,'Loan application confirmed' as label23,(case when field30_5='Yes' then 'Yes' else 'Yes' end) as olconfyes,(case when field30_5='No' then 'No' else 'No' end) as olconfno,'Residence address confirmed' as label24,(case when field30_2='Yes' then 'Yes' else 'Yes' end) as raddryes2,(case when field30_2='No' then 'No' else 'No' end) as raddrno2,'Business/Employment details confirmed' as label25,(case when (onameconfd='Yes' and odesign <> 'NA') then 'Yes' else 'Yes' end) as obdetyes,(case when onameconfd='No' then 'No' else 'No' end) as obdetno,'OTHER REMARKS, IF ANY:' as label26,((case when rtv=1 then upper('RESIDENCE TVR REMARKS : '||rremarks) else '' end)||(case when otv=1 then upper('OFFICE TVR REMARKS : '||oremarks) else '' end)) as tvrem,'images/signs/'||supervisor||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-RTV-'||(case when rtv=1 then roverallstat else 'NI' end)||'-OTV-'||(case when otv=1 then ooverallstat else 'NI' end) as bcode,'' as blank2,'Authorised Signatory' as label27,'Name of verification agency' as label28,upper(maincompany) as label29 from banklist_main_telecalling t where (val0) val1
Query168!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'MATRIX DEBT RECOVERY SERVICES PVT LTD' as maincompany,trim(upper(coalesce(baddress1||' ',''))||upper(coalesce(baddress2||' ',''))||upper(coalesce(baddress3||' ',''))||upper(coalesce((case when bcity='-1' then '' else upper(' '||bcity) end),''))||upper(coalesce('-'||bpincode,''))) as baddress,upper(name) as pname,'PROPERTY VERIFICATION SHEET' as label1,'Aplication Ref. No.' as label2,upper(applno) as rapplno,'MV Code' as label3,upper(mvcode) as rmvcode,(apptype)||'''s Name' as label4,upper(customername) as custname,'Date of Visit' as label5,(coalesce(visitdate,'')||coalesce(' '||visittime)) as vistdate,'Property Address' as label6,upper(paddr) as paddr,'' as blank1,'Person Met' as label6,upper(field30_1) as metperson,'Relation with Applicant' as label7,upper(field50_2) as metrela,'Property Status' as label8,upper(field50_1) as pstatus,'Occupant Status' as label9,'Address Confirmed' as label10,upper(addrconfd) as addconfd,'' as blank2,'Confirmed By' as label11,upper(field30_4) as addconfdby,'DESCRIPTION' as label12,'Neighbour''s Reference Available for Sale' as label13,upper(field30_9) as neighref,'If Yes, Owner''s Name' as label14,upper(field30_11) as ownername,'Property Carpet Area in Sq. Ft.(approx)' as label15,upper(field30_5) as carparea,'Name Verified From' as label16,upper(field30_15) as nverfrom,'Type of Property' as label17,upper(field30_6) as proptype,'Ease of Locating Property' as label18,upper(field30_7) as easeloc,'Locality of Residence' as label19,upper(field30_8) as locality,'Estimated Value of Property' as label20,upper(field30_10) as estvalue,'' as blank3,'Status' as label21,upper(status) as status,'Final Remarks' as label22,upper(remarks) as remarks,'Portfolio Supervisor Name' as label23, upper(portsupervisor) as psupervisor,'Verifier''s Name & Sign' as label24,'Agency Seal' as label25,'Agency Manager''s Sign' as label26,upper(pvername) as pvername,'images/signs/'||sdoneby||'mdrs.png' as sign,mvcode||'-'||applno||'-'||customername||'-PROP-'||status as bcode,'Scanned by: '||upper(sdonebyname) as sdonebyname1 from banklist_main_property p where (val0) val1
Query169!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id, upper(maincompany),upper(baddress1)||upper(coalesce(' '||baddress2,''))||upper(coalesce(' '||baddress3,''))||upper(coalesce(' '||bcity))||upper(coalesce(' '||bpincode,'')) as baddress,upper(aliasname) as pname,'Tele Verification Report' as label1,'Appl. No.' as label2,upper(applno) as applno1,'Branch' as label3,upper(bkbranchname) as bkbranchname1,'Loan Amount' as label4,upper(loanamount) as loanamt,'Tenure' as label5,'' as blank1,'Residence Details' as label6,'Name' as label7,upper(customername) as cname1,'Address' as label8,upper(raddr),'Phone No' as label9,rphone,'Mobile No' as label10,upper(mobileno) as mobileno,'Contacted Phone No' as label11, upper(rcontno) as rcontno,'Date & Time of Call' as label12,(case when rstatus5='NA' then (case when rstatus4='NA' then (case when rstatus3='NA' then (case when rstatus2='NA' then coalesce(rattempt1,'')||coalesce(' '||rtime1,'') else coalesce(rattempt2,'')||coalesce(' '||rtime2,'') end) else coalesce(rattempt3,'')||coalesce(' '||rtime3,'') end) else coalesce(rattempt4,'')||coalesce(' '||rtime4,'') end) else coalesce(rattempt5,'')||coalesce(' '||rtime5,'') end) as dtofcall,'Contacted Person' as label13,upper(rcontpers) as rcontpers,'Relationship' as label14,(case when rcontrela='Others' then upper(rcontrelaoth) else upper(rcontrela) end) as contrela,'Res. Add as per Call' as label15,upper(rcorrectaddr) as rcorrectaddr,'Staying Since' as label16,((case when (rstayyrs<>'0' and rstayyrs<>'') then rstayyrs||' YEARS(S) ' else '' end)||(case when (rstaymnth <> '0' and rstaymnth <> '') then rstaymnth||' MONTH(S)' else '' end)) as rstay,'Res Status' as label17,(case when rowner='Others' then upper(rowneroth) else upper(rowner) end) as rowner,'Telecall Status' as label18,(case when upper(roverallstat)='SATISFACTORY' then 'POSITIVE' when upper(roverallstat)='UNSATISFACTORY' then 'NEGATIVE' else '' end) as rstatus,'No of Attempt' as label19,upper(rtotattempt) as rtotattempt,'Remarks' as label20,upper(rremarks) as rremarks,'Office Details' as label21,'Name' as label22,upper(customername) as cname2,'Address' as label23,upper(oaddr) as oaddr,'Phone No.' as label24,ophone,'Mobile No.' as label25,mobileno,'Contacted Phone No' as label26,upper(ocontno) as ocontno,'Date & Time of Call' as label112,(case when ostatus5='NA' then (case when ostatus4='NA' then (case when ostatus3='NA' then (case when ostatus2='NA' then coalesce(oattempt1,'')||coalesce(' '||otime1,'') else coalesce(oattempt2,'')||coalesce(' '||otime2,'') end) else coalesce(oattempt3,'')||coalesce(' '||otime3,'') end) else coalesce(oattempt4,'')||coalesce(' '||otime4,'') end) else coalesce(oattempt5,'')||coalesce(' '||otime5,'') end) as dtofcall1,'Contacted Person' as lblcontpers,upper(ocontpers) as ocontpers,'Designation' as label27,(case when odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Office Add as per Call' as label28,upper(ocorrectaddr) as ocorrectaddr,'Company Name' as lblcompname, upper(ocompname) as ocompname,'Nature of Biz' as label29,(case when onob='Others' then upper(onoboth) else upper(onob) end) as onob,'Designation/Dept' as label30,(case when odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Biz/Job Since' as label31,((case when (oworkyrs<>'0' and oworkyrs<>'') then oworkyrs||' YEARS(S) ' else '' end)||(case when (oworkmnth<> '0' and oworkmnth<> '') then oworkmnth||' MONTH(S)' else '' end)) as owork,'Telecall Status' as label32,(case when upper(ooverallstat)='SATISFACTORY' then 'POSITIVE' when upper(ooverallstat)='UNSATISFACTORY' then 'NEGATIVE' else '' end) as ooverallstat,'No of Attempt' as label33,oattempt,'Remarks' as label33,upper(oremarks) as oremarks,'Supervisor Name & Signature' as label38,'Agency Seal' as label39,'Agency Manager Signature' as label40,upper(portsupervisor) as psupervisor,'images/signs/'||sdoneby||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-RTV-'||(case when rtv=1 then roverallstat else 'NI' end)||'-OTV-'||(case when otv=1 then ooverallstat else 'NI' end) as bcode,'' as blank231,'Scanned by: '||upper(sdonebyname) as sdonebynames,'' as blank232 from banklist_main_telecalling t where (val0) val1
Query170!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as pimg,'Residence Verification Report' as label1,'Application No' as label2,upper(applno) as applno1,'Branch' as label3,upper(bkbranchname) as bkbranchnm,'Applicant''s Name' as label4,upper(customername) as cname1,'Residence Address with Landmarks' as label5,(upper(raddr)||coalesce(' '||field150_1,'')) as raddr,'Address Correct' as label6,(case when changeinadd='No' then 'images/tick.gif' else 'images/untick.jpg' end) as coryes,'Yes' as label7,(case when changeinadd='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as corno,'No' as label8,'Date of Visit' as label9,visitdate,'Time of Visit' as label10,visittime,'Person Contacted' as label10,upper(metperson) as metperson,'Relation with Applicant' as label11,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'' blank1,'Residential Status' as label12,'Educational Qualification' as label13,'Marital Status' as label14,(case when rowner='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) chkso,'Self Owned' as label15,(case when field30_1='Metric' then 'images/tick.gif' else 'images/untick.jpg' end) chkmetric,'Metric' as label16,(case when maritial='Single' then 'images/tick.gif' else 'images/untick.jpg' end) chksing,'Single' as label17,(case when rowner='Owned by Parents' then 'images/tick.gif' else 'images/untick.jpg' end) chkobp,'Owned by Parents' as label18,(case when field30_1='Under Graduate' then 'images/tick.gif' else 'images/untick.jpg' end) chkugrad,'Under Graduate' as label19,(case when maritial='Married' then 'images/tick.gif' else 'images/untick.jpg' end) chkmar,'Married' as label20,(case when rowner='Owned by Relatives' then 'images/tick.gif' else 'images/untick.jpg' end) chkobr,'Owned by Relatives' as label21,(case when field30_1='Post Graduate' then 'images/tick.gif' else 'images/untick.jpg' end) chkpgrad,'Post Graduate' as label22,'' as blank2,(case when rowner='Friend Owned' then 'images/tick.gif' else 'images/untick.jpg' end) chkobf,'Owned by Friends' as label23,(case when field30_1='Professional' then 'images/tick.gif' else 'images/untick.jpg' end) chkprof,'Professional' as label24,'No of Family Members' as label30,totmem,(case when rowner='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) chkrented,'Rented' as label25,(case when field30_1='Higher Secondary' or field30_1='Uneducated' then 'images/tick.gif' else 'images/untick.jpg' end) chkoth,'Others' as label26 ,'Working' as blank29,earning,(case when rowner='Company Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) chkcoacc,'Company Accomodation' as label27,'' as blank3,'Please sepcify type of Degree' as label28,'Children' as label31,children,(case when rowner='Paying Guest' then 'images/tick.gif' else 'images/untick.jpg' end) chkpguest,'Paying Guest' as label32,'' as blank4,(case when field30_1='Higher Secondary' or field30_1='Uneducated' then upper(field30_1) else 'NA' end) chkothqual,'Dependent Adults' as label34,dependent,(case when rowner='Lodge/Hotel' then 'images/tick.gif' else 'images/untick.jpg' end) chklodge,'Lodging' as label35,'' as blank5,'' as blank6,'images/signs/'||sdoneby||'.png' as singature,'No of Years at Current Address' as label36,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'' as blank8,'' as blank8_1,'' as blank8_2,'' as blank8_3,'Verifier''s Observation' as label37,'Scanned by: '||upper(sdonebyname) as sdonebyname,'How Co-operative was the Customer' as label38,'Neighbour Reference' as label39,'Name Verified From' as label40,(case when custbehav='Rude' then 'images/tick.gif' else 'images/untick.jpg' end) chkrude,'Rude' as label41,(case when Field30_9='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) chkpos,'Positive' as label42,(case when Field30_2='Neighbour' then 'images/tick.gif' else 'images/untick.jpg' end) chkneigh,'Neighbour' as label43,(case when custbehav='Polite' then 'images/tick.gif' else 'images/untick.jpg' end) chkpol,'Polite' as label44,(case when Field30_9='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) chkneg,'Negative' as label45,(case when Field30_2='Watchman' then 'images/tick.gif' else 'images/untick.jpg' end) chkwatch,'Watchman' as label46,'' as blank8,'' as blank9,'' as blank10,'' as blank11,(case when Field30_2='Name Plate' then 'images/tick.gif' else 'images/untick.jpg' end) chknp,'Name Plate' as label47,'' as blank14,'' as blank12,'' as blank13,'' as blank15,(case when Field30_2='Society Board' then 'images/tick.gif' else 'images/untick.jpg' end) chksb,'Society Board' as label48,'' as blank16,'' as blank17,'' as blank18,'' as blank19,(case when Field30_2='Company Board' then 'images/tick.gif' else 'images/untick.jpg' end) chkcb,'Company Board' as label49,'Type of Residence' as label50,'Comments on Locality' as label51,(case when restype='Independent House' then 'images/tick.gif' else 'images/untick.jpg' end) chkih,'Independent House' as label53,(case when locality='Upper Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) chkumc,'Upper Middle Class' as label54,(case when restype='Flat/Part of Independent' then 'images/tick.gif' else 'images/untick.jpg' end) chkflat,'Flat' as label55,(case when locality='Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) chkmc,'Middle Class' as label56,(case when restype='Multi-Tenant House' then 'images/tick.gif' else 'images/untick.jpg' end) chkmth,'Multi-Tenant House' as label57,(case when locality='Lower Middle Class' then 'images/tick.gif' else 'images/untick.jpg' end) chklmc,'Lower Middle Class' as label58,(case when restype='Temporary Shed' then 'images/tick.gif' else 'images/untick.jpg' end) chkts,'Temporary Shed' as label59,(case when locality='Village' then 'images/tick.gif' else 'images/untick.jpg' end) chkvil,'Upper Middle Class' as label60,(case when restype='Standing Chawl/Janta Flat' then 'images/tick.gif' else 'images/untick.jpg' end) chkchawl,'Standing Chawl' as label61,(case when locality='Slum' then 'images/tick.gif' else 'images/untick.jpg' end) chkslum,'Slums' as label62,'' as blank20,'' as blank21,(case when locality='Others' then 'images/tick.gif' else 'images/untick.jpg' end) chklooth,coalesce('Other ('||upper(locaoth)||')','Other') as label63,'' as blank22,'' as blank23,'' as blank24,'' as blank25,'Construction of Residence' as label64,'Comments on Exterior' as label65,'Carpet Area (in sq ft)' as label66,(case when construction='Pukka' then 'images/tick.gif' else 'images/untick.jpg' end) chkcopuk,'Pukka' as label67,(case when Chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcexgarden,'Garden' as label68,(case when Chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkbwall,'Building Wall' as label69,upper(carpetarea) as carpetarea,(case when construction='Semi-Pukka' then 'images/tick.gif' else 'images/untick.jpg' end) chkcopuk,'Semi-Pukka' as label70,(case when Chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkpatch,'Patchy' as label71,(case when Chkfield5='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkclean,'Clean' as label72,'' as blank26,(case when construction='Temporary' then 'images/tick.gif' else 'images/untick.jpg' end) chktempo,'Temporary' as label73,(case when Chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkbalc,'Balcony' as label74,(case when Chkfield6='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcwall,'Fence/Compound Wall' as label75,'' as blank27,'' as blank28, '' as lbank29,(case when Field30_8='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcpark,'Car Park' as label76,(case when Field30_10='X' then 'images/tick.gif' else 'images/untick.jpg' end) chksecu,'Security' as label77,'' as blank30,'' as blank31, '' as lbank32,(case when field30_11='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcextoth,'Others' as label78,'' as blank33,'' as blank34,'Interior Conditions' as label79,'Assets Seen at Residence' as label80,(case when Chkfield7='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkpainted,'Painted' as label81,(case when Chkfield13='X' then 'images/tick.gif' else 'images/untick.jpg' end) chktv,'Television' as label82,(case when Chkfield17='X' then 'images/tick.gif' else 'images/untick.jpg' end) chktwl,'Two-Wheeler' as label83,(case when Chkfield8='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcarp,'Carpeted' as label84,(case when Chkfield14='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkmus,'Music System' as label85,(case when Chkfield18='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkht,'Home Theatre System' as label86,(case when Chkfield9='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcurt,'Curtains' as label87,(case when Chkfield15='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkrefg,'Refigerator' as label88,(case when Chkfield19='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkpc,'Personal Computer' as label89,(case when Chkfield10='X' then 'images/tick.gif' else 'images/untick.jpg' end) chksofa,'Sofas' as label90,(case when Chkfield16='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkac,'Air Conditioner' as label92,(case when Chkfield20='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcar,'Car' as label91,(case when Chkfield11='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkblnd,'Blinds' as label93,'' as blank35,'' as blank36,'' as blank37,'' as blank38,(case when Chkfield12='X' then 'images/tick.gif' else 'images/untick.jpg' end) chkcln,'Clean' as label94,'' as blank39,'' as blank40,'' as blank41,'' as blank42,'' as pagebreak,'If the applicant''s address is locked the following information is to be obtained from the neighbours.' as label95,'Does the applicant stay at the residence' as label96,upper(field30_4) as appstayat,'Approximate age of the applicant' as label97,upper(Field30_5) as appxage,'Approximate time when the applicant is available at home' as label98,upper(Field30_6) as apptimeavail,'Number of family members in the home' as label99,upper(Field30_7) as nofammem,'Inspector''s Remarks' as label100,upper(remarks) as remarks,'Inspector''s Signature' as label101,upper(rvername) as rvername,'Agency Seal' as label202,'' as blank44,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'Scanned by: '||upper(sdonebyname) as sdonebynames,upper(status) as wmstatus from banklist_main_residence r where (val0) val1
Query171!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as pimg,'Employment / Business Verification Report' as label1,'Name of the Inspecting Officer' as label2,upper(overname) as overname,'Branch' as label3,upper(bkbranchname) as bkbranchname1,'Applicant''s Name' as label3,upper(customername) as cname1,'Applicant''s Designation' as label4,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Office Address with Landmark' as label5,upper(oaddr) as oaddr,'Address Confirmed' as label6,(case when addrconfd='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadconf,'Yes' as label7,(case when addrconfd='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadconfno,'No' as label8,'Date and Time of Visit' as label9,trim(coalesce(visitdate,'')||' '||coalesce(visittime,'')) as visitdate,'Person and Designation of the person met' as label10,trim(coalesce(upper(metperson),'')||''||coalesce(' ('||(case when metrela='Others' then upper(metrealoth) else upper(metrela) end)||')','')) as metperson,'Telephone' as label10,'Landline' as label11,'Mobile' as label12,'Visiting Card Obtained' as label13,(case when Field30_1='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvisyes,'Yes' as label14,(case when Field30_1='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvisno,'No' as label15,'' as blank1,ophone,mobileno,'' as blank2,'Number of years in present Employment / Business' as label16,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the Company / Business' as label17,upper(companyname) as companyname,'Type of Business' as label18,'Nature of Business' as label19,'Office Ownership' as label20,(case when busitype='Public Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpubltd,'Public Ltd.' as label21,(case when compprof='Professional' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprof,'Professional' as label22,(case when compprof='Manufacturing' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmnuf,'Manufacturer' as label23,(case when ownership='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkowned,'Owned' as label24,(case when busitype='Private Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpvtltd,'Pvt. Ltd.' as label25,(case when compprof='Trading' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrdr,'Trader/Shopkeeper Service Provider' as label26,(case when ownership='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrented,'Rented' as label27,(case when busitype='Partnership' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpart,'Partnership' as label28,'images/untick.jpg' as chkcagent,'Commercial Agent' as label29,(case when compprof='Broker' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbrok,'Broker' as label30,(case when ownership='Pagadi' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpag,'Pagadi' as label31,(case when busitype='Proprietorship' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprop,'Proprietorship' as label31,(case when compprof='LIC Agent' then 'images/tick.gif' else 'images/untick.jpg' end) as chklic,'LIC Agent' as label32,(case when compprof='Tutor/Personal Care' then 'images/tick.gif' else 'images/untick.jpg' end) as chktut,'Tutor/Personal Care' as label33,'' as blank5,(case when busitype='Others' or busitype='Government' or busitype='Self Employed' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbtoth,'Others' as label34,(case when compprof='STD/PCO (Specifiy)' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstd,'STD/PCO (Specifiy)' as label35,(case when compprof='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chknoboth,'Others' as label36,(case when compprof='Others' then upper(compprofoth) else '' end) as profoth,'For Self Employed Persons' as label37,'images/signs/'||sdoneby||'.png' as stamp,'Average Monthly Turnover' as label38,upper(turnover),'Number of Customers per day' as label39,custperday,'' as blank1_1,'' as blank1_2,'' as blank1_3,'For Salaried' as label40,'Scanned by: '||upper(sdonebyname) as repdonebyname,'Type of Job' as label41,'Applicant Working As' as label42,'Applicant''s Job Transferable' as label43,(case when jobtype='Permanent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkperm,'Permanent' as label44,(case when appdesign='Assistant' then 'images/tick.gif' else 'images/untick.jpg' end) as chkasst,'Assistant' as label45,(case when appdesign='Supervisor' then 'images/tick.gif' else 'images/untick.jpg' end) as chksup,'Supervisor' as label46,(case when transferable='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chktryes,'Yes' as label47,(case when transferable='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrno,'No' as label48,(case when jobtype='Probation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprob,'Probation' as label49,(case when appdesign='Clerk' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclerk,'Clerk' as label50,(case when appdesign='Jr.Management' then 'images/tick.gif' else 'images/untick.jpg' end) as chkjmgmt,'Junior Management' as label51,'' as blank6,(case when jobtype='Contract Employee' then 'images/tick.gif' else 'images/untick.jpg' end) as chkconemp,'Contract Employee' as label52,(case when appdesign='Typist' then 'images/tick.gif' else 'images/untick.jpg' end) as chktyp,'Typist' as label53,(case when appdesign='Sr.Management' then 'images/tick.gif' else 'images/untick.jpg' end) as chksmgmt,'Senior/Middle Management' as label54,'' as blank7,(case when jobtype='Temporary Employee' then 'images/tick.gif' else 'images/untick.jpg' end) as chktempt,'Temporary Employee' as label55,(case when appdesign='Stenographer' then 'images/tick.gif' else 'images/untick.jpg' end) as cksteno,'Stenographer' as label56,(case when appdesign='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdoth,'Others '||(case when appdesign='Others' then upper('('||appdesignoth||')') else '' end) as label57,'' as blank9,'' as blank10,'' as blank11,(case when appdesign='Skilled Labour' then 'images/tick.gif' else 'images/untick.jpg' end) as chksklb,'Skilled Labour' as label58,'' as blank12,'' as blank13,'Previous Employment Details' as label59,'Name of the Company' as label60,'Period Worked' as label61,'Salary Drawn' as label62,'' as blank14,'From' as label63,'To' as label64,'' as blank15,upper(prevjobdet) as prevjobdet, (case when prevjobyrs <> '0' then prevjobyrs||' Years' else '' end) as prevjobyrs,'' as blank16,'' as blank17,'' as blank18,'' as blank19,'' as blank20,'' as blank21,'' as blank22,'' as blank23,'' as blank24,'' as blank25,'The following are based on inspector''s observation' as label65,'Business board seen outside building / office' as label66,(case when bizboard='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbboardy,'Yes' as label67,(case when bizboard='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbboardn,'No' as label168,'Applicant''s name verified from' as label69,'Type of Office' as label70,'Locality of Office' as label71,(case when field30_6='Receptionist' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrecp,'Receptionist' as label72,(case when Field30_7='Independent Office' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindoff,'Independent Office' as label73,(case when Field30_7='Shop' then 'images/tick.gif' else 'images/untick.jpg' end) as chkshop,'Shop' as label74,(case when locality='Commercial' then 'images/tick.gif' else 'images/untick.jpg' end) as chklcom,'Commercial Complex' as label75,(case when field30_6='Colleague' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcolle,'Colleague' as label76,(case when Field30_7='Industry / Factory' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindfac,'Industry / Factory' as label77,(case when Field30_7='Residence Cum Office' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrcof,'Residence Cum Office' as label78,(case when locality='Small Scale Industrial Area' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindl,'Industrial Area' as label79,(case when field30_6='Security' then 'images/tick.gif' else 'images/untick.jpg' end) as chksecu,'Security' as label80,(case when Field30_7='Small Scale / Shed' then 'images/tick.gif' else 'images/untick.jpg' end) as chkscsh,'Small Scale / Shed' as label81,(case when Field30_7='Office Complex' then 'images/tick.gif' else 'images/untick.jpg' end) as chkofclx,'Office Complex' as label82,(case when locality='Plant' then 'images/tick.gif' else 'images/untick.jpg' end) as chkplant,'Plant' as label83,(case when field30_6='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkoths,'Others' as label84,(case when Field30_7='Shared Office' then 'images/tick.gif' else 'images/untick.jpg' end) as chkshoff,'Shared Office' as label85,(case when Field30_7='Clinic' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclinic,'Clinic' as label86,(case when locality='Shop/Office Complex' then 'images/tick.gif' else 'images/untick.jpg' end) as chksooc,'Shop/Office Complex' as label87,'' as blank26,'' as blank30,(case when Field30_7='Business Center' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbuscnt,'Business Center' as label88,(case when Field30_7='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chklosoth,'Others' as label89,(case when locality='Residential' then 'images/tick.gif' else 'images/untick.jpg' end) as chkresl,'Residential' as label90,'' as blank27,'' as blank28,'' as blank29,'' as blank30,'' as blank31,'' as blank32,(case when locality='Business Centre' then 'images/tick.gif' else 'images/untick.jpg' end) as chklocbscnt,'Business Center' as label91,'' as blank33,'Construction' as label92,'Exterior' as label93,'Interior' as label94,'Ease of locating office' as label95,'Business Activity' as label96,'No of Employees Seen' as label97,'No of Customers' as label98,(case when Field30_8='Pukka' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpukka,'Pukka' as label99,(case when Field30_11='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkextgood,'Good' as label100,(case when Chkfield9='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpainted,'Painted' as label101,(case when easeloc='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeasy,'Easy' as label102,(case when busiact='High' then 'images/tick.gif' else 'images/untick.jpg' end) as chkhigh,'High' as label103,upper(Field30_10) as empseen,upper(custseen) as custseen,(case when Field30_8='Semi - Pukka' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspukka,'Semi - Pukka' as label104,(case when Field30_11='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkavg,'Average' as label105,(case when Chkfield10='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpainted,'Carpeted' as label106,(case when easeloc='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdiffc,'Difficult' as label107,(case when busiact='Medium' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmed,'Medium' as label108,'' as blank34,'' as blank35,(case when Field30_8='Temporary' then 'images/tick.gif' else 'images/untick.jpg' end) as chktempo,'Shed-Temporary' as label109,(case when Field30_11='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoor,'Poor' as label110,(case when Chkfield11='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcurt,'Curtains' as label111,(case when easeloc='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as chkuntrace,'Untraceable' as label112,(case when busiact='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chklow,'Poor' as label113,'' as blank34,'' as blank35,'' as blank36,'Inspector''s Comments' as label114,upper(remarks) as remarks,'Signature of Inspector' as label115,upper(overname),'Agency Seal' as label202,'' as blank44,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'Scanned by: '||upper(sdonebyname) as repdonebynames,status as wmstatus from banklist_main_office o where (val0) val1
Query172!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as pimg,'Residence Tele Verification Report' as label1,'Date' as label2,(case when rstatus5='NA' then (case when rstatus4='NA' then (case when rstatus3='NA' then (case when rstatus2='NA' then coalesce(rattempt1,'')||coalesce(' '||rtime1,'') else coalesce(rattempt2,'')||coalesce(' '||rtime2,'') end) else coalesce(rattempt3,'')||coalesce(' '||rtime3,'') end) else coalesce(rattempt4,'')||coalesce(' '||rtime4,'') end) else coalesce(rattempt5,'')||coalesce(' '||rtime5,'') end) as dtofcall,'Location' as label3,upper(bkbranchname) as bkbranchname1,'Applicant''s Name' as label4,(case when rcontno is null or rcontno ='' then 'NOT INITIATED' else upper(customername) end) as custname1,'Contact Telephone No' as label4,(case when rcontno is null or rcontno ='' then 'NOT INITIATED' else rcontno end) as rcontno,'Type of loan applied for' as label5,upper(product) as loantype,'Name of the person spoken to' as label6,upper(rcontpers) as rcontpers,'Relationship with the applicant' as label7, (case when rcontrela='Others' then upper(rcontrelaoth) else upper(rcontrela) end) as rcontrela,'Name of the applicant confirmed at the given telephone No' as label8,(case when rnameconfd='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrnc,'Yes' as label9,(case when rnameconfd='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrncn,'No' as label10,'Tele-Calling Log' as label11,'Attempt' as label12,'1st' as label13,'2nd' as label14,'3rd' as label15,'4th' as label16,'5th' as label17,'Date of Calling' as label18,upper(rattempt1) as rattempt1,upper(rattempt2) as rattempt2,upper(rattempt3) as rattempt3,upper(rattempt4) as rattempt4,upper(rattempt5) as rattempt5,'Time of Calling' as label19,upper(rtime1) as rtime1,upper(rtime2) as rtime2,upper(rtime3) as rtime3,upper(rtime4) as rtime4,upper(rtime5) as rtime5,'Outcome' as label1239,upper(rstatus1) as rstatus1,upper(rstatus2) as rstatus2,upper(rstatus3) as rstatus3,upper(rstatus4) as rstatus4,upper(rstatus5) as rstatus5,'*Outcome : C (Contacted) CE (Constantly Engaged) NR (Not Responding)' as label20,'Other Remarks' as label21,upper(rremarks) as rremarks,'Signature of Verifier' as label22,upper(telecaller) as rtcallermn,'Name of Verifier' as label23,upper(telecaller) as rtcallers,'Agency Seal' as label202,'' as blank44,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RTEL-'||(case when rcontno is null or rcontno ='' then 'NI' else roverallstat end) as bcode,'' as linebreak,'/images/port/'||portfolio_id||'.png' as pimg,'Office Tele Verification Report' as label24,'Date' as label25,(case when ostatus5='NA' then (case when ostatus4='NA' then (case when ostatus3='NA' then (case when ostatus2='NA' then coalesce(oattempt1,'')||coalesce(' '||otime1,'') else coalesce(oattempt2,'')||coalesce(' '||otime2,'') end) else coalesce(oattempt3,'')||coalesce(' '||otime3,'') end) else coalesce(oattempt4,'')||coalesce(' '||otime4,'') end) else coalesce(oattempt5,'')||coalesce(' '||otime5,'') end) as dtoofcall,'Location' as label26,upper(bkbranchname) as bkbranchname1,'Verifier''s Name' as label27,upper(telecaller) as otcaller,'Name of the Company / Organization' as label28,upper(companyname) as ocompname,'Office Telephone No' as label29,(case when ocontno is null or ocontno = '' then 'NOT INITIATED' else upper(ocontno) end) as ocontno,'Extn No' as label30,(case when ocontno is null or ocontno = '' then 'NOT INITIATED' else upper(extension) end) as extno,'Applicant''s Name' as label31,(case when ocontno is null or ocontno = '' then 'NOT INITIATED' else upper(customername) end) as ocname1,'Designation' as label32,(case when odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Working Since' as label33,((case when (oworkyrs<>'0' and oworkyrs<>'') then oworkyrs||' YEARS(S) ' else '' end)||(case when (oworkmnth <> '0' and oworkmnth <> '') then oworkmnth||' MONTH(S)' else '' end)) as owork,'Department' as label34,upper(odepartment) as odepartment,'The following is based on Telephonic Conversation' as label35,'Name of the person spoken to' as label36,upper(ocontpers) as ocontpers,'Designation' as label37,(case when ocontrela='Others' then upper(ocontrelaoth) else upper(ocontrela) end) as ocontrela,'Relationship with the applicant' as label38,(case when ocontrela='Colleague' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcoll,'Colleague' as label39,(case when ocontrela='Partner' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpart,'Partner' as label40,'images/untick.jpg' as chksup,'Supervisor' as label41,(case when ocontrela='Others' or ocontrela='Care Taker' or ocontrela='Guard' or ocontrela='Receptionist' or ocontrela='Self' or ocontrela='Relative' then 'images/tick.gif' else 'images/untick.jpg' end) as chkreloth,'Others' as label42,'Name of the applicant confirmed at the given telephone number' as labelntol,(case when onameconfd='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as onamecony,'Yes' as lbloncyes,(case when onameconfd='No' then 'images/tick.gif' else 'images/untick.jpg' end) as onameconn,'No' as lbloncno,'Tele-Calling Log' as label111,'Attempt' as label121,'1st' as label131,'2nd' as label141,'3rd' as label151,'4th' as label161,'5th' as label171,'Date of Calling' as label181,upper(oattempt1) as oattempt1,upper(oattempt2) as oattempt2,upper(oattempt3) as oattempt3,upper(oattempt4) as oattempt4,upper(oattempt5) as oattempt5,'Time of Calling' as label191,upper(otime1) as otime1,upper(otime2) as otime2,upper(otime3) as otime3,upper(otime4) as otime4,upper(otime5) as otime5,'Outcome' as label211,upper(ostatus1) as ostatus1,upper(ostatus2) as ostatus2,upper(ostatus3) as ostatus3,upper(ostatus4) as ostatus4,upper(ostatus5) as ostatus5,'*Outcome : C (Contacted) CE (Constantly Engaged) NR (Not Responding)' as label2010,'Other Remarks' as label2110,upper(oremarks) as oremarks,'Signature of Verifier' as label2210,upper(telecaller) as otcallers,'Agency Seal' as label2025,'' as blank445,'images/signs/'||sdoneby||'.png' as osingature,mvcode||'-'||applno||'-'||customername||'-OTEL-'||(case when ocontno is null or ocontno ='' then 'NI' else ooverallstat end) as obcode,'Scanned by: '||upper(sdonebyname) as repdonebynames,'xx' as wmstatus from banklist_main_telecalling t where (val0) val1
Query173!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as portname1,'Residence Verification Report' as labeltitle,'Application ID' as applno1,upper(applno) as applno2,'Name' as label1,upper(customername) as cname1,'Product' as label2,upper(product) as product1,'Date / Time of Visit' as label3,trim(coalesce(visitdate,'')||' '||coalesce(visittime,'')) as visitdate,'Customer''s Name' as label4,upper(customername) as dispname,'Person Met' as label5,upper(metperson) as metperson,'Relationship' as lablerel,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Residence Address' as label6,upper(raddr) as raddr,'Phone No' as label7,trim(coalesce(rphone,'')||' '||coalesce(phoneno,'')) as phoneno,'Mobile No' as label8,mobileno,'If the address is different then revised address' as label9,upper(correctaddr) as correctaddr,'No of years at current address' as label10,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence status' as label11,(case when rowner='Others' then upper(owneroth) else upper(rowner) end) as rowner,'If rented, Rent' as label12,upper(Field30_7) as rentpaid,'Any additional income' as label13,(case when field30_1='-1' then 'NA' else upper(Field30_1) end) as addwork,'If yes, what the additional work' as label14,upper(Field50_1) as addwdet,'No of family members' as label15,totmem,'Loans/Liabilities' as label16,upper(Field30_2) as liab,'Locating address' as label17,upper(raccess) as raccess,'Asset' as label18,upper(Field30_3) as asset,'Locality' as label19,(case when field30_14='-1' then 'NA' else upper(field30_14) end) as locatype,'Financer' as label20,upper(field30_11) as financer,'Locality Type' as label21, (case when locality='Others' then upper(locality) else upper(locaoth) end) as locality,'Amount' as label22,upper(field30_4) as amount,'Accomodation' as label23,(case when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'EMI: Paid.Total' as label24,upper(field30_5) as emipaid,'Size of Residence' as label25,(case when field30_8='-1' then'NA' else upper(field30_8) end) as ressize,'Durable' as label26,(case when field30_6='-1' then 'NA' else upper(field30_6) end) as durable,'Within Geo Limit' as label27,upper(isocl) as isocl,'Third Party Confirmation' as label28,'Neigh Check 1' as label29,upper(Field30_9) as neigh1,'Remarks' as labelnrem1,upper(Fieldtext_1) as neighrem1,'Neigh Check 2' as label30,(case when field30_10='-1' then 'NA' else upper(Field30_10) end) as neigh2,'Remarks' as labelnrem2,upper(Fieldtext_2) as neighrem2,'Photographs' as lblphoto,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') as photographs,'Verifier Comments' as label31,upper(verremarks) as verremarks,'Dedupe Check (Agency)' as label32,(select coalesce((case when negative='Y' then 'NEGATIVE' else 'POSITIVE' end),'NA') as dedcheck from banklist_main_dedupe d where d.uuid=r.uuid) as dedupec,'Dedupe Check Remarks' as labeldc,(select coalesce(upper(negremarks),'NA') as negremarks from banklist_main_dedupe d where d.uuid=r.uuid) as negrem,'Supervisor Comments' as label33,upper(remarks),'CPV Result' as label34,upper(status) as status,'Area Type' as label35,(case when field30_12='-1' then 'NA' else upper(Field30_12) end) as areatype ,'','Agency Supervisor'as lbl,'','images/signs/'||sdoneby||'.png' from banklist_main_residence r where (val0) val1
Query174!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as portname1,'Office Verification Report' as labeltitle,'Application ID' as applno1,upper(applno) as applno2,'Name' as label1,upper(customername) as cname1,'Product' as label2,upper(product) as product1,'Date / Time of Visit' as label3,trim(coalesce(visitdate,'')||' '||coalesce(visittime,'')) as visitdate,'Customer''s Name' as label4,upper(customername) as dispname,'Person Met' as label5,upper(metperson) as metperson,'Relationship' as lablerel,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Designation' as label151,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Department' as label152,upper(department) as department,'Office Address' as label6,upper(oaddr) as oaddr,'Phone No' as label7,ophone,'Mobile No' as label8,upper(mobileno) as mobileno,'If the address is different then revised address' as label9,upper(correctaddr) as correctaddr,'No of years at current address' as label10,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Office Ownership' as label11,(case when ownership='Others' then upper(owneroth) else upper(ownership) end) as oowner,'If leased, lease amount and period' as label12,(case when ownership='Leased' then upper(field30_7) else 'NA' end) as leaseamt,'If Rented, rent amount' as label13,(case when ownership='Rented' then upper(field30_7) else 'NA' end) as rentamt,'Type of organisation' as label14,upper(busitype) as busitype,'Type of business activity' as label15,upper(proddealt) as proddealt,'If partnership/limited no of partners or directors' as label16,upper(Field30_1) as nodirect,'Type of Office' as label17,(case when field30_2='-1' then 'NA' else upper(field30_2) end) as offtype,'Locating address' as label18,upper(easeloc) as easeloc,'No of employees visible' as label19,field30_11,'Office furnishing level' as label20,(case when field30_3='-1' then 'NA' else upper(field30_3) end) as furlevel,'Visibility' as label21,(case when field30_4='-1' then 'NA' else upper(Field30_4) end) as visibility,'Stock level' as label22,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as stocklevel,'Within Geo limit' as label23,upper(isocl) as isocl,'MARKET CONFIRMATION' as label24,'Neigh Check 1' as label25,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neigh1,'Remarks' as label26,upper(fieldtext_1) as neighrem1,'Neigh Check 2' as label27,(case when field30_6='-1' then 'NA' else upper(field30_6) end) as neigh2,'Remarks' as label28,upper(fieldtext_2) as neighrem2,'Photographs' as lblphoto,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') as photographs,'Verifier Comments' as label29,upper(verremarks) as verremarks,'Dedupe Check (Agency)' as label30,(select coalesce((case when negative='Y' then 'NEGATIVE' else 'POSITIVE' end),'NA') as dedcheck from banklist_main_dedupe d where d.uuid=o.uuid) as dedupec,'Dedupe Check Remarks' as labeldc,(select coalesce(upper(negremarks),'NA') as negremarks from banklist_main_dedupe d where d.uuid=o.uuid) as negrem,'Supervisor Comments' as label33,upper(remarks),'CPV Result' as label34,upper(status) as status,'Area Type' as label35,(case when field30_8='-1' then 'NA' else upper(Field30_8) end) as areatype ,'','Agency Supervisor'as lbl,'','images/signs/'||sdoneby||'.png' from banklist_main_office o where (val0) val1
QueryOLD173!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as portname1,'Residence Verification Report' as labeltitle,'Application ID' as applno1,upper(applno) as applno2,'Name' as label1,upper(customername) as cname1,'Product' as label2,upper(product) as product1,'Date / Time of Visit' as label3,trim(coalesce(visitdate,'')||' '||coalesce(visittime,'')) as visitdate,'Customer''s Name' as label4,upper(customername) as dispname,'Person Met' as label5,upper(metperson) as metperson,'Relationship' as lablerel,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Residence Address' as label6,upper(raddr) as raddr,'Phone No' as label7,trim(coalesce(rphone,'')||' '||coalesce(phoneno,'')) as phoneno,'Mobile No' as label8,mobileno,'If the address is different then revised address' as label9,upper(correctaddr) as correctaddr,'No of years at current address' as label10,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence status' as label11,(case when rowner='Others' then upper(owneroth) else upper(rowner) end) as rowner,'If rented, Rent' as label12,upper(Field30_7) as rentpaid,'Any additional income' as label13,(case when field30_1='-1' then 'NA' else upper(Field30_1) end) as addwork,'If yes, what the additional work' as label14,upper(Field50_1) as addwdet,'No of family members' as label15,totmem,'Loans/Liabilities' as label16,upper(Field30_2) as liab,'Locating address' as label17,upper(raccess) as raccess,'Asset' as label18,upper(Field30_3) as asset,'Locality' as label19,(case when field30_14='-1' then 'NA' else upper(field30_14) end) as locatype,'Financer' as label20,upper(field30_11) as financer,'Locality Type' as label21, (case when locality='Others' then upper(locality) else upper(locaoth) end) as locality,'Amount' as label22,upper(field30_4) as amount,'Accomodation' as label23,(case when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'EMI: Paid.Total' as label24,upper(field30_5) as emipaid,'Size of Residence' as label25,(case when field30_8='-1' then'NA' else upper(field30_8) end) as ressize,'Durable' as label26,(case when field30_6='-1' then 'NA' else upper(field30_6) end) as durable,'Within Geo Limit' as label27,upper(isocl) as isocl,'Third Party Confirmation' as label28,'Neigh Check 1' as label29,upper(Field30_9) as neigh1,'Remarks' as labelnrem1,upper(Fieldtext_1) as neighrem1,'Neigh Check 2' as label30,(case when field30_10='-1' then 'NA' else upper(Field30_10) end) as neigh2,'Remarks' as labelnrem2,upper(Fieldtext_2) as neighrem2,'Verifier Comments' as label31,upper(verremarks) as verremarks,'Dedupe Check (Agency)' as label32,(select coalesce((case when negative='Y' then 'NEGATIVE' else 'POSITIVE' end),'NA') as dedcheck from banklist_main_dedupe d where d.uuid=r.uuid) as dedupec,'Dedupe Check Remarks' as labeldc,(select coalesce(upper(negremarks),'NA') as negremarks from banklist_main_dedupe d where d.uuid=r.uuid) as negrem,'Supervisor Comments' as label33,upper(remarks),'CPV Result' as label34,upper(status) as status,'Area Type' as label35,(case when field30_12='-1' then 'NA' else upper(Field30_12) end) as areatype ,'','Agency Supervisor'as lbl,'','images/signs/'||sdoneby||'.png' from banklist_main_residence r where (val0) val1
QueryOLD174!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as portname1,'Office Verification Report' as labeltitle,'Application ID' as applno1,upper(applno) as applno2,'Name' as label1,upper(customername) as cname1,'Product' as label2,upper(product) as product1,'Date / Time of Visit' as label3,trim(coalesce(visitdate,'')||' '||coalesce(visittime,'')) as visitdate,'Customer''s Name' as label4,upper(customername) as dispname,'Person Met' as label5,upper(metperson) as metperson,'Relationship' as lablerel,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Designation' as label151,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Department' as label152,upper(department) as department,'Office Address' as label6,upper(oaddr) as oaddr,'Phone No' as label7,ophone,'Mobile No' as label8,upper(mobileno) as mobileno,'If the address is different then revised address' as label9,upper(correctaddr) as correctaddr,'No of years at current address' as label10,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Office Ownership' as label11,(case when ownership='Others' then upper(owneroth) else upper(ownership) end) as oowner,'If leased, lease amount and period' as label12,(case when ownership='Leased' then upper(field30_7) else 'NA' end) as leaseamt,'If Rented, rent amount' as label13,(case when ownership='Rented' then upper(field30_7) else 'NA' end) as rentamt,'Type of organisation' as label14,upper(busitype) as busitype,'Type of business activity' as label15,upper(proddealt) as proddealt,'If partnership/limited no of partners or directors' as label16,upper(Field30_1) as nodirect,'Type of Office' as label17,(case when field30_2='-1' then 'NA' else upper(field30_2) end) as offtype,'Locating address' as label18,upper(easeloc) as easeloc,'No of employees visible' as label19,field30_11,'Office furnishing level' as label20,(case when field30_3='-1' then 'NA' else upper(field30_3) end) as furlevel,'Visibility' as label21,(case when field30_4='-1' then 'NA' else upper(Field30_4) end) as visibility,'Stock level' as label22,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as stocklevel,'Within Geo limit' as label23,upper(isocl) as isocl,'MARKET CONFIRMATION' as label24,'Neigh Check 1' as label25,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neigh1,'Remarks' as label26,upper(fieldtext_1) as neighrem1,'Neigh Check 2' as label27,(case when field30_6='-1' then 'NA' else upper(field30_6) end) as neigh2,'Remarks' as label28,upper(fieldtext_2) as neighrem2,'Verifier Comments' as label29,upper(verremarks) as verremarks,'Dedupe Check (Agency)' as label30,(select coalesce((case when negative='Y' then 'NEGATIVE' else 'POSITIVE' end),'NA') as dedcheck from banklist_main_dedupe d where d.uuid=o.uuid) as dedupec,'Dedupe Check Remarks' as labeldc,(select coalesce(upper(negremarks),'NA') as negremarks from banklist_main_dedupe d where d.uuid=o.uuid) as negrem,'Supervisor Comments' as label33,upper(remarks),'CPV Result' as label34,upper(status) as status,'Area Type' as label35,(case when field30_8='-1' then 'NA' else upper(Field30_8) end) as areatype ,'','Agency Supervisor'as lbl,'','images/signs/'||sdoneby||'.png' from banklist_main_office o where (val0) val1
Query175!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' - RESIDENCE VERIFICATION REPORT' as label1,'Application No.' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcode1,'Product' as label4,upper(product) as product1,'Applicant''s Name' as label5,upper(customername) as customername1,(case when portfolio_id=16 then 'Neo ID' else 'Loan Amount'end) as label6,(case when portfolio_id=16 then upper(bankcode) else upper(loanamount) end )as loanamount1,'Address Confirmed' as label7,upper(addrconfd) as addrconfd,'Receipt Date' as label8,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Address' as label9,upper(raddr) as raddr,'Date & Time of Visit' label10,trim(coalesce(visitdate||' ','')||coalesce(visittime,'')) as visitdate,'Report Date' as label11,to_char(sdoneon,'DD/MM/YYYY') as repdate,'PERSONAL DETAILS' as label12,'Person Contacted' as label13,upper(metperson) as metperson,'Relationship' as label14,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Company/Firm Name ,Address and Designation of Applicant' as label15,upper(trim(coalesce(companyname||' ','')||coalesce(oaddr||' ','')||coalesce('Designation-'||designation,''))) as addeisg,'Date of Birth' as label16,(case when dob is null or length(dob) < 10 then (case when age is not null and age <> '0' then age||' YEARS' else 'NA' end) else dob end) as dob,'Residential Status' as label17,(case when rowner='Others' then upper(owneroth) else upper(rowner) end) as rowner,'Years in City & Years in Current Residence' as label18,'Years in City : '||coalesce(((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity <> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)),'NA')||' Years in Current Add : '|| coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Residence Within City Limits' as label19,(case when upper(isocl)='YES' then 'NO' else 'YES' end),'Permanent Address & Phone No.' as label20,upper(permadd) as permadd,'Locality Type' as label21,(case when locality='Others' then upper(locaoth) else upper(locality) end) as localityt,'Locality' as label22,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Marital Status' as label23,upper(maritial) as marital,'Spouse Details' as label24,(case when maritial='Married' then upper(trim('Name : '||coalesce(spsname||' ','NA')||'Occupation : '||coalesce(spsdesign||' ','NA')||'Mobile No : '||coalesce(Field30_2,'NA'))) else 'NA' end) as spsdet,'Qualification' as label25,(case when Field30_1='-1' then 'NA' else upper(Field30_1) end) as qual,'Residence Address Proof' as label26,(case when proof='-1' then 'NA' else upper(coalesce(proof||' - ','')||(case when upper(proof)='YES' then upper(proofdet) else 'NA' end)) end) as proofdet,'Family Structure' as label27,upper(Field30_5) as famstruct,'No of Family Members Staying With Applicant' as label28,totmem,'No of Earning Members' as label29,earning,'Monthly Income and Details' as label30,'NA' as label31,'Dependents' as label32,dependent,'Existing Loan and Obligation Details' as label33,upper(Field50_2) as extloan,'Existing Vehicle Details' as label34,upper(Field50_3) as extveh,'Vehicle Reg. No.' as label35,upper(Field30_7) as regno,'Free/Finance Details' as label36,upper(Field50_4) as financer,'Other Loan Obligations' as label37,upper(Field50_5) as othloan,'*(for salaried profile office details and self employed business details to be mentioned) and telephone numbers' as label38,'OBSERVATIONS' as label39,'Type of Residence' as label40,(case when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Locality' as label41,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Area (in Sqft.)' as label42,upper(carpetarea) as carpetarea,'Society Board Seen' as label43,upper(socboard),'Accessibility & Distance from Bank' as label44,upper(raccess) as raccess,'Within City Limits' as label45,(case when upper(isocl)='YES' then 'NO' else 'YES' end) as isocl,'Construction of House' as label46,upper(construction) as construction,'Residence Entrance Motorable' as label47,upper(accmode) as accmode,'Prominent Landmark' as label48,upper(Field150_1) as plandmark,'Name Plate' as label49,upper(coalesce(nameplate||' - ','')||platedet) as nameplate,'Furnishing Details' as label50,upper(interior) as interior,'Car Park' as label51,(case when field30_8='-1' then 'NA' else upper(Field30_8) end) as carpark,'Residence Exterior Details' as label52,(case when Field30_9='-1' then 'NA' else upper(Field30_9) end) as exterior,'Type of Flooring' as label53,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as flooring,'Type of Roofing' as label54,(case when Field30_11='-1' then 'NA' else upper(Field30_11) end) as roofing,'No of Rooms and Approximate Size' as label55,upper(Field50_6) as roomsize,'Assets Seen' as label56,upper(Field150_2) as assetseen,'Standard of Living' as lablstandard,upper(furlevel) as furlevel,'Entry Permitted' as label57,(case when Field30_13='-1' then 'NA' else upper(Field30_13) end) as eperm,'Display of Any Political Party Affiliation Seen' as label58,upper(coalesce(political,'')||(case when upper(political)='YES' then coalesce(' - '||politicdet,'') else '' end)) as poldet,'Route Map' as label59,upper(Field150_3) as routemap,'' as linebreak,'NEIGHBOUR FEEDBACK' as lblnfeed,'Neigh. Check' as label60,'Neighbor-1' as label61,'Neighbor-2' as label62,'1. Name & Address' as label63,upper(Field150_5) as neigh1,upper(Field150_4) as neigh2,'Does Applicant Stay at Given Address' as label63,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as appstay1,(case when Field30_12='-1' then 'NA' else upper(Field30_12) end) as appstay2,'No of Years Applicant Been Staying' as label64,upper(field30_4) as noyrs1,upper(Field30_14) as noyrs2,'Ownership Status' as label65,(case when field30_6='-1' then 'NA' else upper(Field30_6) end) as owner1,(case when field30_15='-1' then 'NA' else upper(Field30_15) end) as owner2,'OTHERS DETAILS' as label66,'Concerns if Any and Details' as label67,upper(alertrem) as alertrem,'Verifier''s Remarks' as label68,upper(verremarks) as verremarks,'SUPERVISOR''S COMMENT' as label69,'Remarks' as label70,upper(remarks) as remarks,'Final Status' as label71,upper(status) as status,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,upper(rvername) as rvername,upper(reportdoneby) as reportdoneby,(case when portfolio_id=87 or portfolio_id=128 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,(case portfolio_id when 16 then 'Photographs' else '{SK!PTH15D@TA}' end),(case portfolio_id when 16 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query176!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' - OFFICE VERIFICATION REPORT' as label1,'Application No.' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcode1,'Product' as label4,upper(product) as product1,'Applicant''s Name' as label5,upper(customername) as customername1,'Co-Applicant''s Name (if any)' as label6,(case when upper(apptype)='APPLICANT' then coalesce(sublist('select customername as field from temp_reporting where trim(upper(applno))='''||trim(upper(o.applno))||''' and bank_branch_id='||o.bank_branch_id||' and upper(apptype) <> ''APPLICANT''',','),'NA') else 'NA' end) as coapps,'Request Receipt Date' as label7,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Report Issued Date' as label8,to_char(sdoneon,'DD/MM/YYYY') as repdate, 'Office Name, Address and Phone Number' as label9,upper(oaddr)||' '||coalesce('PH : '||ophone,'') as oaddr,'Date & Time of Visit' label10,trim(coalesce(visitdate||' ','')||coalesce(visittime,'')) as visitdate,'Prominent Landmark' as label11,upper(field50_1) as landmark,'Address Confirmed' as label12,upper(addrconfd) as addrconfd,'GENERAL DETAILS' as label13,'Name of Person Met' as label14,upper(metperson) as metperson,'Relationship With Applicant' as label15,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Name of the Company/Firm' as label16, upper(companyname) as companyname,'Designation/Role' as label17,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Phone Number' as label18,ophone,'Email-ID' as label19,upper(Field50_6) as emailid,'Visiting Card Collected' as label20,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as vcard,'No of Years in Biz/Job' as label21,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Type/Nature of Business' as label22,upper(busitype) as busitype,'Product Dealt' as label23,upper(proddealt) as proddealt,'No of Employees Seen' as label24,upper(Field30_4) as empseen,'Area of Office (in Sqft.)' as label25,upper(Field30_5) as carparea,'Type of Office/Business' as label26,upper(busitype) as busitype1,'Locality of Office/Business' as label27,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Common Office & Residence' as label28,(case when Field30_6='-1' then 'NA' else upper(field30_6) end) as isrco,'If Yes, Whether Distinct Entrance Available' as label29,(case when Field30_7='-1' then 'NA' else upper(field30_7) end) as distent,'Construction of Office' as label30,(case when Field30_8='-1' then 'NA' else upper(field30_8) end) as construction,'Exteriors' as label31,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as exteriors,'Interiors' as label32,upper(Field150_3) as interiros,'Business Level Activity' as label33,upper(busiact) as busiact,'Office Setup' as label34,upper(Field150_2) as offsetups,'Accessibility' as label35,upper(easeloc) as easeloc,'Route MAP' as label36,upper(Field150_1) as routemap,'SALARIED PROFILE' as label37,'Name of the Company' as label37,(case when (select category from main where mvcode= o.mvcode)='Salaried' then upper(companyname) else '' end) as companyname ,'Company Profile' as label38,(case when (select category from main where mvcode= o.mvcode)='Salaried' then upper(proddealt) else '' end) as proddealtsal,'Applicant Designation' as label39,(case when (select category from main where mvcode= o.mvcode)='Salaried' then (case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) else '' end) as appdesignsal,'Department' as label40,upper(appdept) as appdept,'Reporting To' as label41,upper(reportingto) as reportingto,'Employee Number' as label42,upper(Field30_11) as empno,'Applicant''s Job' as label43,upper(jobtype) as jobtype,'Years of Experience' as label44,(case when (select category from main where mvcode= o.mvcode)='Salaried' then ((case when (yrstot<>'0' and yrstot<>'') then yrstot||' YEARS(S) ' else '' end)||(case when (mnthtot<> '0' and mnthtot<> '') then mnthtot||' MONTH(S)' else '' end)) else '' end) as yrsexp,'Salary Details' as label45,upper(saldetail) as saldetail,'Transferable Job' as label46,upper(transferable) as transferable,'Total No of Employee' as label47,upper(totemp) as totemp,'Number of Branches' as label48,totbranch,'Previous Job Details If Current Job < 1 Year' as label49,upper(prevjobdet) as prevjobdet,'SELF-EMPLOYED PROFILE' as label50,'Person Met and Relationship With Business' as label51,(upper(metperson)||' ('||(case when metrela='Others' then upper(metrealoth) else upper(metrela) end)||')') as metpers1,'Nature of Business' as label52,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end) as compprof,'Business Board Seen' as label53,upper(bizboard) as bizboard,'Business Proof Verified' as label54,(case when upper(Field30_12)='-1' then 'NA' else upper(Field30_12) end) as bproof,'Business Proof Details' as label55,upper(Field50_2) as proofdet,'Business Ownership' as label56,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Business Premises' as label57,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Exteriors of the Business Premises' as label58,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as extofbus,'Interiors of the Business Premises' as label59,upper(Field150_3) as intbusse,'Total No of Employees' as label60,totemp,'Number of Employees Seen' as label61,upper(Field30_4) as empseense,'No of Customer Seen' as label62,custseen,'Average Billing Per Customer' as label63,upper(Field30_13) as bpc,'Number of Customers Per Day' as label64,custperday,'Average Monthly Turnover' as label65,upper(turnover) as turnover,'Stock & Machinery Details' as label66,upper(stockdet) as stockdet,'Peek Business Hours' as label67,upper(Field30_15) as pekbhour,'Market Holiday' as label68,(case when Field30_16='-1' then 'NA' else upper(Field30_16) end) as mkthol,'Level of Business Activity' as label69,upper(busiact) as busiact1,'Existing Vehicle Details' as label70,upper(Field50_3) as extveh,'Vehicle Reg. No.' as label71,upper(Field30_17) as regno,'Free/Finance Details' as label72,upper(Field50_5) as financer,'Other Loan Obligations' as label73,upper(Field50_4) as othloan,'Whether Affiliation to Any Political Party Visible' as label74,(case upper(political) when 'YES' then 'YES - '||upper(politicdet) when 'NO - '||upper(politicdet) then upper(political) else 'NA' end) as political,'NEIGHBOUR CHECK' as label75,'Neighbour Check 1' as label76,upper(Fieldtext_1) as neigh1,'Neighbour Check 2' as label77,upper(Fieldtext_2) as neigh2,'OTHER DETAILS' as label78,'Verifier''s Remarks' as label79,upper(verremarks) as verremarks,'Additional Income If Any and Details' as label80,upper(othsource) as othsource,'Any concerning Issue Noticed During Verification' as label81,upper(alertrem) as alertrem,'SUPERVISOR COMMENT' as label82,'Remarks' as label83,upper(remarks) as remarks,'Final Status' as label84,upper(status) as status,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,upper(rvername) as rvername,upper(reportdoneby) as reportdoneby,(case when portfolio_id=87 or portfolio_id=128 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(case portfolio_id when 16 then 'Photographs' else '{SK!PTH15D@TA}' end),(case portfolio_id when 16 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query177!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||'- CONSUMER FINANCE - TELE VERIFICATION REPORT' as label1,'Loan Product' as label2,upper(product) as product1,'Agency Name' as label3,(case portfolio_id when 113 then 'Arvee Bizpro Solutions Private Ltd.' else upper(maincompany) end) as maincomp,'Application No' as label4,upper(applno) as applno1,'MV Code' as label5,upper(mvcode) as mvcode1,'Applicant''s Name' as label6,upper(customername) as customername1,'Loan Amount' as label7,upper(loanamount) as loanamount1,'Tenure' as label8,'' as tenure,'RESIDENCE DETAILS' as label9,'Name' as label10,upper(customername) as customername2,'Address' as label11,upper(raddr)as raddr,'Phone No.' as label12,upper(rphone) as rphone,'Mobile No.' as label13,upper(mobileno) as mobileno1,'Contacted Phone No.' as label14,upper(rcontno) as rcontno,'Date & Time of Call' as label15,(case when rstatus5='NA' then (case when rstatus4='NA' then (case when rstatus3='NA' then (case when rstatus2='NA' then coalesce(rattempt1,'')||coalesce(' '||rtime1,'') else coalesce(rattempt2,'')||coalesce(' '||rtime2,'') end) else coalesce(rattempt3,'')||coalesce(' '||rtime3,'') end) else coalesce(rattempt4,'')||coalesce(' '||rtime4,'') end) else coalesce(rattempt5,'')||coalesce(' '||rtime5,'') end) as dtofcall,'Contacted Person' as label16,upper(rcontpers) as rcontpers,'Relationship' as label17, (case when rcontrela='Others' then upper(rcontrelaoth) else upper(rcontrela) end) as rcontrela,'Residence. Address as Per Call' as label18,upper(rcorrectaddr) as rcorrectaddr,'Staying Since' as label19,((case when (rstayyrs <> '0' and rstayyrs <> '') then rstayyrs||' YEARS(S) ' else '' end)||(case when (rstaymnth<> '0' and rstaymnth <> '') then rstaymnth||' MONTH(S)' else '' end)) as stay,'Staying With' as label20,upper(rstaywith) as rstaywith,'Ownership Status' as lblowner,(case when rowner='Others' then upper(rowneroth) else upper(rowner) end) as rowner,'No. of Attempt' as label22,rtotattempt,'' as blank1,'Attempt-1' as label23,'Attempt-2' as label24,'Attempt-3' as label25,'Attempt-4' as label26,'Attempt-5' as label27,'Date' as label28,rattempt1,rattempt2,rattempt3,rattempt4,rattempt5,'Time' as label28,rtime1,rtime2,rtime3,rtime4,rtime5,'Remarks' as label29,upper(rremarks) as rremarks,'TVR Status' as label30,upper(roverallstat) as rstatus,'TVR Done By-Name & Signature' as label31,upper(telecaller) as rtcaller,'OFFICE DETAILS' as label32,'Name' as label33,upper(customername) as customername3,'Address' as label34,upper(oaddr) as oaddr,'Phone No.' as label35, ophone,'Mobile No.' as label36,mobileno,'Contacted Phone No.' as label37,ocontno,'Date & time of Call' as label38, (case when ostatus5='NA' then (case when ostatus4='NA' then (case when ostatus3='NA' then (case when ostatus2='NA' then coalesce(oattempt1,'')||coalesce(' '||otime1,'') else coalesce(oattempt2,'')||coalesce(' '||otime2,'') end) else coalesce(oattempt3,'')||coalesce(' '||otime3,'') end) else coalesce(oattempt4,'')||coalesce(' '||otime4,'') end) else coalesce(oattempt5,'')||coalesce(' '||otime5,'') end) as odtofcall,'Contacted Person' as label39,upper(ocontpers) as ocontpers,'Designation/Relationship with Applicant' as label40, (case when ocontrela='Others' then upper(ocontrelaoth) else upper(ocontrela) end) as ocontrela,'Office. Address as Per Call' as label41,upper(ocorrectaddr) as ocorrectaddr,'Company Name' as label42,upper(companyname) as ocompanyname,'Nature of Biz' as label43,upper(onobdesc) as onobdesc,'Constitution' as label44,upper(oorgtype) as orgtype,'Employee Code' as label45,upper(Field30_2) as empcode,'Designation/Dept' as label46,(case when odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Biz/Job Since' as label47,((case when (oworkyrs<>'0' and oworkyrs<>'') then oworkyrs||' YEARS(S) ' else '' end)||(case when (oworkmnth<> '0' and oworkmnth <> '') then oworkmnth||' MONTH(S)' else '' end)) as yrsatjob,'Number of Employees/Workers' as label48,Field30_1,'Ownership' as label49,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as oowner,'If Salaried - Cadre' as label50,(case when Field30_10='-1' then 'NA' else upper(field30_10) end) as mgrnonmgr,'No. of Attempt' as label51,upper(oattempt) as ototattempt,'' as blank2,'Attempt-1' as label52,'Attempt-2' as label53,'Attempt-3' as label54,'Attempt-4' as label55,'Attempt-5' as label56,'Date' as label57,oattempt1,oattempt2,oattempt3,rattempt4,oattempt5,'Time' as label58,otime1,otime2,otime3,rtime4,otime5,'Remarks' as label59,upper(oremarks) as oremarks,'TVR Status' as label60,upper(ooverallstat) as ostatus,'TVR Done By-Name & Signature' as label61,upper(telecaller) as otcaller,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,'' as blanksp,upper(reportdoneby) as reportdoneby,(case when portfolio_id=87 or portfolio_id=128 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-OTEL-'||(case when ocontno is null or ocontno ='' then 'NI' else ooverallstat end) as obcode from banklist_main_telecalling t where (val0) val1
Query178!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case when portfolio_id=15 and upper(product)='HOME LOAN' then 'CAPRI GLOBAL HOUSING FINANCE LTD' else upper(name) end) as pname1,'RESIDENCE VERIFICATION REPORT' as title,'Application No' as label1,upper(applno) as applno1,'Agency Name' as label2,upper(maincompany) as maincompany,'MV Code' as label3,upper(mvcode) as mvcode1,'Applicant Name' as label4,upper(customername) as customername1,'Residence Address' as label5,upper(raddr) as raddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(Field50_1) as landmark,'Date of Visit' as label8,upper(visitdate) as visitdate,'Time of Visit' as label9,upper(visittime) as vistime,'The following information to be obtained from the applicant or anybody residing at address' as label10,'Person Contacted' as label11,upper(metperson) as metperson,'Relation with Applicant' as label12,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'DOB/Age' as label13,(case when dob <> '' then dob else (case when age <> '0' and age <> '' then age||' YEARS' else '' end) end) as dob,'Years Lived at Current Address' as label14,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Residence Status' as label15,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'Qualification' as label16,(case when Field30_1='-1' then 'NA' else upper(Field30_1) end) as qualification,'Marital Status' as label17,upper(maritial) as marital,'' as blank1,'Type of Degree' as label18,upper(field30_5) as typeofdeg,'No of Family Members' as label19,totmem,'' as blank2,'Working' as label20,earning,'' as blank3,'Children' as label21,children,'Any Credit Card' as label22,(case when upper(Field30_2)='-1' then 'NA' else upper(field30_2) end) as anycard,'Card No.' as label23,upper(Field30_3) as cardno,'Dependent Adult' as label24,dependent,'Card Limit' as label25,upper(field30_4) as climit,'Issuing Bank' as label26,upper(field50_3) as issuingbank,'Expiry Date' as label27,field30_6 as expdate,'Spouse Working' as label28,upper(spswork) as spswork,'If Yes, Employment Details' as label29,trim(upper(spscomp)||' '||upper(spsempdet)) as spsempdet,'The following is based on verifier''s observation' as label30,'How Co-Operative was the Applicant' as label31,upper(custbehav) as custbehav,'Neighbour''s Reference' as label32,(case when Field30_9='-1' then 'NA' else upper(Field30_9) end) as neref,'Name Verified From' as label33,(case when Field30_8='-1' then 'NA' else upper(Field30_8) end) as namverfrom,'Type of Residence' as label34,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Locality of Residence' as label35,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Ease of Location Address' as label36,upper(raccess) as raccess,'No. of Tenants' as label37,Field30_14,'Construction of Residence' as label38,upper(construction) as construction,'Comments of Exteriors' as label39,upper(Field50_2) as cmntext,'Carpet Area' as label40,upper(carpetarea) as carpetarea,'Interior Conditions' as label41,upper(interior) as interior,'Assets Seen at Residence' as label42,upper(Field150_2) as asstseen,'Picture/Portrait of Political Leader Seen' as label43,(upper(political)||''||(case when upper(political)='YES' then ' - '||upper(politicdet) else '' end)) as political,'Other Details' as label44,'' as blankothdet,'If the applicant address is locked the following information is to be obtained from the neighbour' as label45,'Does The Applicant Stays At This Rsidence' as label46,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as doesappstay,'Approximate Age Of The Applicant' as label47,Field30_11,'Approximate Time When Applicant is Available At Home' as label48,upper(Field30_12) as timewhenavai,'No Of Family Members In House' as label49,Field30_13 as netotmem,'Verifier''s Remarks' as label50,upper(verremarks)||'RESIDENCE ADDRESS PROOF : '||upper(proofdet) as verremarks,'TPC Remark' as label51,'TPC Comment' as label52,upper(remarks)as remarks,'Final Status' as label53,upper(status) as status,'Reason For Negative FI' as label54,upper(negreason) as negreason,'Verifier Name',upper(rvername),'Agency Seal' as label55,'Agency Manager Name & Signature' as label56,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode from banklist_main_residence r where (val0) val1
Query179!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case when portfolio_id=15 and upper(product)='HOME LOAN' then 'CAPRI GLOBAL HOUSING FINANCE LTD' else upper(name) end) as pname1,'OFFICE VERIFICATION REPORT' as title,'Application No' as label1,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcode1,'Applicant Name' as label4,upper(customername) as customername1,'Co-Applicant''s Name (if any)' as label5_1,(case when upper(apptype)='APPLICANT' then coalesce(sublist('select customername as field from temp_reporting where trim(upper(applno))='''||trim(upper(o.applno))||''' and bank_branch_id='||o.bank_branch_id||' and upper(apptype) <> ''APPLICANT''',','),'NA') else 'NA' end) as coapps,'Office Address' as label5,upper(oaddr) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Designation Of The Applicant' as label7,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Date of Visit' as label8,upper(visitdate) as visitdate,'Time of Visit' as label9,upper(visittime) as vistime,'The following information to be obtained from the applicant colleague' as label10,'Person Contacted' as label11,upper(metperson) as metperson,'Designation Of The Person Met' as label12,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Telephone Number' as label13,ophone,'Extn No' as label14,extension,'Mobile No' as label15,mobileno,'No Of Years In Present Employment/Business' as label16,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Visiting Card Obtained' as label16,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as viscard,'Office' as label17,upper(proddealt) as proddealt,'Area' as label18,upper(field30_4) as carpetarea,'Operating Since' as label19,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob1,'Name Of Company' as label20,upper(companyname) as companyname3,'Type of Business' as label21,upper(busitype) as busitype,'Nature Of Business' as label22,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof,'Other' as label23,'' as nobblank,'Average Monthly Turnover' as label24,upper(turnover) as turnover,'No Of Customer Per Day' as label25,custperday,'(FOR SALARIED)' as label26,'Type Of Job' as label27,upper(jobtype) as jobtype,'Applicant Working As' as label28,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign1,'Job Is Transferable' as label29,upper(transferable) as transferable,'Previous Employement Details (If Working For < 1 Year In Current Employment)' as label30,'Name Of Company' as label31,upper(prevjobdet) as prevjobdet,'Year Worked In' as label32,(case when prevjobyrs <> '0' and prevjobyrs <> '' then prevjobyrs||' YEAR(S)' else 'NA' end) as pjobyrs,'Salary Drawn' as label33,'' as salblank,'The following are based on verifiers observation' as label34,'Business Board Seen' as label35,upper(bizboard),'Appl Name Verified From' as label36,upper(Field30_7) as nameverfrom,'Type Of Office' as label37,upper(busitype) as busitype1,'No Of Emp Working' as label38,totemp,'No Of Branch' as label39,totbranch,'Construction Of Office' as label40,(case when Field30_8='-1' then 'NA' else upper(Field30_8) end) as construction,'Exterior' as label41,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as exterior,'Interiors' as label42,upper(Field150_2) as interiors,'Ease Of Locating Office' as label43,upper(easeloc) as easeloc,'Activity Level' as label44,upper(busiact) as busiact,'No Of Employee' as label45,totemp,'No Of Customer Seen' as label46,custseen,'Political Party Seen' as label47,(upper(political)||''||(case when upper(political)='YES' then ' - '||upper(politicdet) else '' end)) as political,'Items Seen In Premises' as label48,'AC-'||trim(field30_12),'PRINTER-'||trim(field30_11),'FAX-'||trim(field30_14),'PC-'||trim(field30_10),'TELEPHONE-'||trim(field30_15),'XEROX-'||trim(field30_13),'Other Details' as label49,upper(Field150_1) as otherasset,'Verifier''s Remark' as label50,upper(verremarks) as verremarks,'TPC Remark' as label51,'TPC Comment' as label52,upper(remarks) as remarks,'Final Status' as label53,upper(status) as status,'Reason For Negative FI' as label54,upper(negreason) as negreason,'Verifier Name',upper(overname),'Agency Seal' as label55,'Agency Manager Name & Signature' as label56,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode from banklist_main_office o where (val0) val1
Query180!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(upper(name)||(CASE PORTFOLIO_ID WHEN 119 THEN '' WHEN 166 THEN '' ELSE ' ('||upper(product)||')' END)) as pname1,'RESIDENCE VERIFICATION REPORT' as label1,'[Strictly Private & Confidential]' as label2,'Date of request' as label3,to_char(receivedate,'DD/MM/YYYY') as requestdate,'Application ID' as label4,upper(applno) as applno1,'Applicant''s name' as label5,upper(customername) as customername2,'Residence address' as label6,upper(raddr) as raddr,'Telephone' as label7,rphone,'Mobile' as label8,mobileno,'Details of premises visited' as label9,'1. Locating address' as label10,upper(raccess) as raccess,'2. Landmark' as label11,upper(Field50_1) as landmark,'3. Building type' as label12,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'4. Name on the society address board' as label13,upper(socboarddet) as socboarddet,'5. Name plate on door' as label14,(case upper(nameplate) when 'YES' then 'YES - '||upper(platedet) when 'NO' then 'NO' else 'NA' end) as nameplate,'6. Ownership detail' as label15,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'7. No of years at current residence' as label16,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'8. No of rooms' as label17,Field30_1 as noofrooms,'9. Construction type' as label18,(case when upper(construction)='OTHERS' then upper(constoth) else upper(construction) end) as construction,'10. Carpet area' as label19,upper(carpetarea) as carpetarea,'11. Locality' as label20,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'12.Date of birth' as label21,dob,'13. Age' as label22,(case when age <> '0' and age <> '' then age else 'NA' end) as age,'14. Education highest' as label23,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as qualification,'15. Marital status' as label24,upper(maritial) as maritial,'16. If spouse working' as label25,upper(spswork) as spswork,'Designation' as label26,upper(spsdesign) as spsdesign,'Company' as label27,upper(spscomp) as spscomp,'17. No of family members' as label28,totmem,'18. No of adults' as label29,field30_4,'19. No of dependent' as label30,dependent,'20. No of working' as label31,earning,'21. Person contacted at site' as label32,upper(metperson) as metperson,'22. Relation with the customer' as label33,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'23. Residence interior details' as label34,upper(interior) as interior,'24. Residence exterior details' as label35,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as extdet,'25. Residence assets details' as label36,upper(field150_1) as assetdet,'' as blank1,'Net assets market value >' as label37,'26. Political leader portrait' as label38,(upper(political)||''||(case when upper(political)='YES' then ' - '||upper(politicdet) else '' end)) as political,'27. Have you ever applied for a loan with '||upper(name) as label39,(case when Field30_5='-1' then 'NA' else upper(Field30_5) end) as evrappl,'28. Customer approach' as label40,upper(custbehav) as custbehav,'29. Address confirmed' as label41,upper(addrconfd) as addrconfd,'30. Door Locked' as label42,(case when Field30_6='-1' then 'NA' else upper(Field30_6) end) as doorlocked,'Neighbour reference check' as label43,'31. Neighbour name' as label44,upper(fieldtext_1) as neighrem,'32. Relation with the customer' as label45,upper(field30_7) as relwithcust,'33. Address verified' as label46,(case when field30_8='-1' then 'NA' else upper(field30_8) end) as addrver,'34. Ownership detail' as label47,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as neowner,'35. No of years at current residence' as label48,upper(Field30_11) as becurstay,'36. No of family members' as label49,Field30_12 as netotmem,'37. Any connection with' as label50,(case when Field30_14='-1' then 'NA' else upper(Field30_14) end) as anyconnec,'38. Customer attitude' as label51,(case when Field30_13='-1' then 'NA' else upper(Field30_13) end) as neatt,'39. Approx. time of availability' as label52,upper(Field30_15) as appxtimeavail,'40. Neighbour reference' as label53,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neref,'Visit date' as label54,visitdate,'Visit time' as label55,visittime,'Any findings/variations' as label54,(case when upper(redalert)='YES' then upper(alertrem) else 'NO' end) as anyfind,'Agency remarks/comments' as label55,upper(remarks) as remarks,'Report (Positive/Negative)' as label56,upper(status) as status,'Verifier''s Signature' as label57,upper(rvername) as rvername,'Agency Supervisor' as label58,upper(reportdoneby) as spervisor,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,(case when portfolio_id = 92 or portfolio_id = 119 or portfolio_id = 166 then 'Photographs' else '' end),(case when portfolio_id = 92 or portfolio_id = 119 or portfolio_id = 166 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '' end) as photographs from banklist_main_residence r where (val0) val1
Query181!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(upper(name)||(CASE PORTFOLIO_ID WHEN 119 THEN '' WHEN 166 THEN '' ELSE ' ('||upper(product)||')' END)) as pname1,'OFFICE VERIFICATION REPORT' as label1,'Strictly Private & Confidential' as label2,'Date of request' as label3,to_char(receivedate,'DD/MM/YYYY') as requestdate,'Application ID' as label4,upper(applno) as applno1,'Applicant''s name' as label5,upper(customername) as customername2,'Company Name' as label6,upper(companyname) as compname1,'Office address' as label7,upper(oaddr) as paddr,'Telephone' as label8,ophone,'Ext' as label9,extension,'Mob' as label10,mobileno,'Address verified' as label11,upper(addrconfd) as addrconfd,'Nature of business/profession' as label12,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as nob,'Nature of work' as label13,upper(proddealt) as proddealt,'Person contacted at site' as label14,upper(metperson),'Relation with the customer' as label15,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Contacted person designation' as label16,upper(Field30_1) as contpdesig,'No of people seen at office' as label17,Field30_2 as peopseen,'No of years at current job' as label18,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Office ownership status' as label19,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Business activity level' as label20,upper(busiact) as busiact,'Designation of applicant' as label21,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Job status' as label22,upper(jobtype) as jobtype,'Manpower category' as label23,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as mpowcat,'Office transferable' as label24,(case when Field30_17='-1' then 'NA' else upper(Field30_17) end) as offtransfer,'Building type' as label25,(case when Field30_11='-1' then 'NA' else upper(field30_11) end) as buildtype,'Locating' as label26,upper(easeloc) as easeloc,'Locality' as label27,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Construction type' as label28,(case when Field30_4='-1' then 'NA' else upper(Field30_4) end) as consttype,'Carpet area (in Sqr.ft)' as label29,(case when Field30_5='-1' then 'NA' else Field30_5 end) as carparea,'Political leader potrait' as label30,(upper(political)||''||(case when upper(political)='YES' then ' - '||upper(politicdet) else '' end)) as political,'Average turnover' as label31,upper(turnover) as turnover,'Average customer per day' as label32,custperday,'No of branches' as label33,totbranch,'Business board seen when visited' as label34,upper(bizboard) as bizboard,'No of mentioned employees' as label35,totemp,'No of customer seen at office' as label36,custseen,'Visiting card collected' as label37,(case when Field30_6='-1' then 'NA' else upper(Field30_6) end) as viscard,'Previous Job Profile' as label38,'Company name' as label39,upper(prevjobdet) as prevjobdet,'No of months worked' as label40,(case when prevjobyrs <> '0' then prevjobyrs|| 'YEAR(S)' else 'NA' end) as pjobyrs,'Annual gross income (in Rs.)' as label41,upper(Field30_8) as angrossinc,'Office Product/Service details' as label42,'Product or Service' as label43,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as prodserv,'Product or Service name' as label44,upper(proddealt) as prodealt,'Office assets details' as label45,upper(Field30_12) as offasstdet,'Office interior details' as label46,(case when Field30_13='-1' then 'NA' else upper(Field30_13) end) as intdet,'Office exterior details' as label47,(case when Field30_14='-1' then 'NA' else upper(Field30_14) end) as oextdet,'Door locked' as label48,(case when Field30_15='-1' then 'NA' else upper(Field30_15) end) as dlocked,'Reference check' as label49,'Name of the person contacted' as label50,upper(fieldtext_1) as neighrem,'Address verified' as label51,upper(addrconfd) as addrconfd,'Neighbour reference' as label52,upper(field30_9) as neref,'Visit date' as label53,visitdate,'Visit time' as label54,visittime,'Any Findings/Variations' as label55,(case when upper(redalert)='YES' then upper(alertrem) else 'NO' end) as redalert,'Agency Remarks/Comments' as label56,upper(remarks) as remarks,'Report (Positive/Negative)' as label57,upper(status) as status,'Verifier''s Signature' as label58,upper(overname) as overname,'Agency Supervisor' as label59,upper(reportdoneby) as doneby,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(case when portfolio_id = 92 or portfolio_id = 119 or portfolio_id = 166 then 'Photographs' else '' end),(case when portfolio_id = 92 or portfolio_id = 119 or portfolio_id = 166 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '' end) as photographs from banklist_main_office o where (val0) val1
Query182!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' OFFLINE VERIFICATION FORMAT FOR RESIDENCE' as title,'Visit Date' as rvisdate,visitdate,'Visit Time' as rvistime,visittime,'Los ID' as label1,upper(applno) as applno1,'Applicant name' as label2,upper(customername) as customername2,'Residence address' as label3,upper(raddr) as raddr,'Locality of address' as label4,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Name plate name' as label5,(case when upper(nameplate)='YES' then upper(platedet) else upper(nameplate) end) as nameplate,'Society board name' as label6,(case when upper(socboard)='YES' then 'YES - '||upper(socboarddet) else upper(socboard) end) as socbard,'Residence type' as label7,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Negative area' as label8,(case when Field30_1='-1' then 'NA' else upper(Field30_1) end) as negarea,'Resi stability' as label9,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'TPC feedback (Mandatory)' as label10,upper(fieldtext_1) as neighrem,'Name of the person contacted' as label11,upper(metperson) as metperson,'Relation with applicant' as label12,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Verification match' as label13,upper(status) as status,'Visit proof' as label14,upper(proofdet) as proofdet,'Verification remarks' as label15,upper(remarks) as remarks,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'Agency Seal','images/signs/'||sdoneby||'.png' as singature from banklist_main_residence r where (val0) val1
Query183!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' OFFLINE VERIFICATION FORMAT FOR OFFICE' as title,'Visit Date' as rvisdate,visitdate,'Visit Time' as rvistime,visittime,'Los ID' as label1,upper(applno) as applno1,'Applicant name' as label2,upper(customername) as customername2,'Office address' as label3,upper(oaddr) as oaddr,'Name on board' as label4,upper(Field150_1) as nameonboard,'Nature of business' as label5,(case when upper(compprof)='OTHERS' then upper(compprofoth)|| '('||upper(proddealt)||')' else upper(compprof) end) as nob,'Office stability' as label6,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Locality of office' as label7,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Applicant designation' as label8,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Business activity' as label9,upper(busiact) as busiact,'Area in Sq.ft' as label10,upper(Field30_1) as carparea,'Status' as lbl,upper(status),'TPC feedback (Mandatory)' as label11,upper(fieldtext_1) as neighrem,'Verification remarks' as label12,upper(remarks) as remarks,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'Agency Seal','images/signs/'||sdoneby||'.png' as singature from banklist_main_office o where (val0) val1
Query184!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case portfolio_id when 111 then 'CAPRI GLOBAL CAPITAL LIMITED' when 83 then upper(name) else (CASE WHEN portfolio_id=36 or portfolio_id=37 THEN 'SAMMAAN' ELSE upper(aliasname) END) end) as pname2,upper(product)||' - FCI REPORT' as label1,'' as bcell1,'Application ref no' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcdoe1,'' as bcell2,'Applicant''s name' as label4,upper(contactperson) as custname1,'' as bcell3,'Address' as label5,upper(paddr) as paddr,'' as bcell4,'Product (Home Loan/ Home Equity)' as label6,upper(product) as product1,'I' as bcell5,'GENERAL DETAILS' as label7,'' as bcell6,'A' as bcell7,'Name of the borrower' as label8,upper(Field30_1) as browname,'B' as bcell8,'Date and time of visit' as label9,(visitdate||' '||visittime) as visittime,'C' as bcell9,'Name of all occupants of property' as label10,upper(Field30_2) as alloccup,'C' as bcell10,'Name of the reported owner' as label11,upper(Field30_3) as reptowner,'E' as bcell11,'Occupancy status (Self Occupied/Vancant/Rented/Seller Occupied)' as label12,upper(Field30_4) as occustat,'F' as bcell12,'Number plate visible (Yes/No)' as label13,(case when Field30_5='-1' then 'NA' else upper(Field30_5) end) as numplate,'G' as bcell13,'Location of the property' as label14,upper(Field150_1) as locofprop,'H' as bcell15,'Boundaries of the property' as label15,upper(Field30_6) as bofprop,'' as bcell15,'II' as bcell16,'QUESTIONNAIRE' as label16,'' as bcell17,'A' as bcell18,'Type of area' as label18,(case when Field30_7='-1' then 'NA' else upper(Field30_7) end) as aretype,'B' as bcell19,'Category of the Locality/Area' as label19,(case when Field30_8='-1' then 'NA' else upper(Field30_8) end) as loccat,'C' as bcell20,'Classification of Locality/Area' as label,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as loclclass,'D' as bcell21,'Feasibility of the civic amenties like school, hospital, markets etc' as label21,(case when Field30_11='-1' then 'NA' else upper(Field30_11) end) as feasbility,'E' as bcell22,'Type of property' as label22,(case when Field30_12='-1' then 'NA' else upper(Field30_12) end) as proptype,'F' as bcell23,'Road facilities and nature of road' as label23,(case when Field30_13='-1' then 'NA' else upper(Field30_13) end) as roadnature,'G' as bcell24,'Water facilities' as label24,(case when Field30_14='-1' then 'NA' else upper(Field30_14) end) as waterfac,'H' as bcell25,'Underground sewerage system' as label25,(case when Field30_15='-1' then 'NA' else upper(Field30_15) end) as sewsys,'I' as bcell26,'Commercial potentially of the property' as label26,(case when Field30_16='-1' then 'NA' else upper(Field30_16) end) as commpoten,'J' as bcell27,'Any sentimental/social issue which may affect the value' as label27,upper(Field50_6) as anysentsoc,'K' as bcell28,'Property visited from inside' as label28,(case when Field30_18='-1' then 'NA' else upper(Field30_18) end) as visfromins,'L' as bcell29,'Approachability' as label29,(case when field30_17='-1' then 'NA' else upper(Field50_6) end) as easeloc,'M' as bcell30,'Nearby landmark' as label30,upper(Field150_2) as nlandmark,'N' as bcell31,'Interiors conditions' as label31,upper(Field30_19) as intcond,'O' as bcell32,'Comments on exterior' as label32,upper(field50_1) as extcomm,'P' as bcell33,'Adverse comments (if any)' as label33,upper(Field250_1) as advcomm,'' as bcell34,'Q' as bcell35,'Name and address of at least 2 local people who are contacted for verifying the title and market value' as label35,'Neighbour No. 1' as label36,'Neighbour No. 2' as label37,'' as bcell37,'Name' as label38,upper(Field30_22) as nename1,upper(Field30_25) as nename2,'' as bcell38,'Address' as label39,upper(Field150_3) as neaddr1,upper(Field150_4) as neaddr2,'' as bcell39,'Phone number' as label40,upper(field50_2) as neph1,upper(field50_4) as neph2,'' as bcell40,'Occupancy as per neighbour (name/duration of stay)' as label41,upper(field50_3) as neocc1,upper(field50_5) as neocc2,'' as bcell41,'Ownership as per neighbour' as label42,upper(field30_21) as neownr1,upper(field30_24) as neownr2,'' as bcell42,'Any dispute in property (Yes/No)' as label43,(case when field3_1='-1' then 'NA' else upper(field3_1) end) as dispu1,(case when field3_2='-1' then 'NA' else upper(field3_2) end) as dispu2,'' bcell43,'R' as bcell44,'Dedupe match found' as label44,(case when upper(field3_3)='YES' then (select coalesce((case when negative='Y' then 'YES' else 'NO' end),'NA') as dedcheck from banklist_main_dedupe d where d.uuid=p.uuid) else 'NO' end) as dedupc,'S' as bcell45,'Property confirmed (Yes/No)' as label45,(case when Field3_4='-1' then 'NA' else upper(Field3_4) end) as propconfd,'' as blankl1,'CERTIFICATE' as label46,'I/We '||upper(pvername)||' (Names of the authorized visitor of FCI agency), have inspected the above property on the dates mentioned and based on the market enquiry/inspection of the property, state as under' as declaration,'STATUS' as label47,upper(status) as status,'SUPERVISOR''S REMARKS' as label48,upper(remarks) as remarks,'Scanned By' as label49,upper(reportdoneby) as supname,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,upper(pvername) as rvername,upper(reportdoneby) as reportdoneby,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-PROP-'||status as bcode,(case when portfolio_id = 37 or portfolio_id = 187 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case when portfolio_id = 37 or portfolio_id = 187 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''P'' and uuid='''||p.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,upper(p.status) as hstatus from banklist_main_property p where (val0) val1
Query185!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(CASE WHEN portfolio_id=36 or portfolio_id=37 THEN 'SAMMAAN' ELSE upper(aliasname) END) as pname2,'CREDIT SELLER VERIFICATION/INSPECTION REPORT' as label1,'' as bcell1,'Application ref no' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcdoe1,'' as bcell2,'Applicant''s name' as label4,upper(customername) as custname1,'I' as bcell5,'GENERAL DETAILS' as label7,'' as bcell6,'a' as bcell7,'Name of seller' as label7,upper(Field30_1) as nameofseller,'b' as bcell8,'Date and time of visit' as label8,(visitdate||' '||visittime) as visittime,'c' as bcell9,'Person contacted during visit' as label9,upper(field30_2) as metperson,'d' as bcell10,'Relationship of person contacted with Seller (if different)' as label10,upper(field30_3) as relationwapp,'e' as bcell11,'Address visited' as label11,upper(Field150_1) as visadd,'f' as bcell12,'Permanent address' as label12,upper(Field150_2) as permadd,'g' as bcell13,'Property address (as per seller)' as label13,upper(Field150_3) as propaddr,'h' as bcell14,'Contact number of seller (Landline+Mobile both)' as label14,upper(Field30_4) as landnmob,'' as blankline,'II' as bcellii,'QUESTIONNAIRE' as lblques,'a' as bcell15,'Category of the locality' as label15,(case when Field30_5='-1' then 'NA' else upper(Field30_5) end) as loccat,'b' as bcell16,'Classification' as label16,(case when Field30_6='-1' then 'NA' else upper(Field30_6) end) as classfic,'c' as bcell17,'How muc co-operative was the seller' as label17,(case when Field30_7='-1' then 'NA' else upper(Field30_7) end) as selcoop,'d' as bcell18,'Identity checked' as label18,upper(field50_3) as idproof,'e' as bcell19,'Address proof checked' as label19,upper(field50_4) as adrprof,'f' as bcell20,'Proposed date of transaction/registration' as label20,Field30_11 as dtoftran,'g' as bcell21,'Name of buyer' as label21,upper(Field30_12) as buyername,'h' as bcell22,'Registration amount' as label22,upper(Field30_13) as regamount,'i' as bcell23,'Occupancy status of the property' as label23,(case when Field30_14='-1' then 'NA' else upper(Field30_14) end) as occstat,'j' as bcell24,'In case of a floor: Which other floors are already sold by seller' as label24,upper(Field30_15) as solbysel,'k' as bcell25,'In case of a floor: Who will keep the original prior documents' as label25,upper(Field30_16) as keepodoc,'l' as bcell26,'Adverse comments (if any)' as label26,upper(Field250_1) as advcom,'m' as bcell27,'Name and address of at least2 local people who are contacted for verifying the title and market value' as label27,'Neighbour No. 1' as lbln1,'Neighbour No. 2' as lbln2,'' as bcellnm,'Name' as lblname,upper(field30_8) as nename1,upper(field30_10) as nename2,'' as bcelladr,'Address' as neaddr,upper(field150_4) as neaddr1,upper(field150_5) as neaddr2,'' as bcellph,'Phone number' as nelbphno,upper(field30_17) as neph1,upper(field30_20) as neph2,'' as bcellocc,'Occupancy as per neighbour (name/duration of stay' as lbldurstay,upper(field50_1) as neocc1,upper(field50_2) as neocc2,'' as bcellownr,'Ownership as per neighbour' as lblneownr,upper(field30_18) as neownr1,upper(field30_21) as meownr2,'n' as bcell44,'Dedupe match found' as label44,(case when upper(field3_3)='YES' then (select coalesce((case when negative='Y' then 'YES' else 'NO' end),'NA') as dedcheck from banklist_main_dedupe d where d.uuid=p.uuid) else 'NO' end) as dedupc,'' as blankl1,'CERTIFICATE' as label46,'I/We '||upper(pvername)||' (Names of the authorized visitor of FCI agency), have inspected the above property on the dates mentioned and based on the market enquiry/inspection of the property, state as under' as declaration,'STATUS' as label47,upper(status) as status,'SUPERVISOR''S REMARKS' as label48,upper(remarks) as remarks,'Scanned By' as label49,upper(reportdoneby) as supname,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,upper(pvername) as rvername,upper(reportdoneby) as reportdoneby,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OTH-'||status as bcode,(case portfolio_id when 36 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case portfolio_id when 36 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''P'' and uuid='''||p.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,upper(p.status) as hstatus from banklist_main_property p where (val0) val1
Query186!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname2,'RESIDENCE FCI REPORT' as label1,upper(maincompany) as maincompany,'Application Ref. No.' as label2,upper(applno) as applno1,'CW Code' as label3,upper(mvcode) as mvcode1,'Applicant''s name' as label4,upper(customername) as custname1,'Co-Applicant''s name (if any)' as label5,(case when upper(apptype)='APPLICANT' then coalesce(sublist('select customername as field from temp_reporting where trim(upper(applno))='''||trim(upper(r.applno))||''' and bank_branch_id='||r.bank_branch_id||' and upper(apptype) <> ''APPLICANT''',','),'NA') else 'NA' end) as coapps,'Residence address' as label6,upper(raddr) as raddr,'Address confirmed' as label7,upper(addrconfd) as label8,'Loan amount' as label8,upper(loanamount) as loanamount1,'Tenure' as label9,'' as blankten,'Date & Time of visit' as label10,(visitdate||' '||visittime) as visittime,'Applicant stays' as label11,'' as blank2,'Origin Place','' as orgplace,'PERSONAL DETAILS' as label12,'Person contacted' as label13,upper(metperson) as metperson,'Relationship' as label14,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Years at current add.' as label15,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Years in city' as label16,coalesce(((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity <> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)),'NA') as rcitystay,'Residential status' as label17,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'Date of birth' as label18,dob,'Ownership Proof','NOT SHOWN' as ownproof,'Marital status' as label19,upper(maritial) as maritial,'Spouse details' as label20,(case when upper(spswork)<>'YES' then upper(spsdesign) else upper('Company: '||coalesce(spscomp,'NA')||', Designation: '||coalesce(spsdesign,'NA')||', Details: '||coalesce(spsempdet,'NA')) end) as spsdesig,'Dependents' as label21,dependent,'Qualification' as label22,(case when Field30_1='-1' then 'NA' else upper(Field30_1) end) as qual,'Family structure' as label23,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as famstr,'Existing vehicle detaiils' as label24,upper(Field50_3) as extvehdet,'Permanent address' as label25,upper(permadd) as permadd,'Residence proof' as label26,upper(proofdet) as proofdet,'Income group' as label27,upper(Field50_1) as incgroup,'OBSERVATION' as label28,'Type of residence' as label29,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Locality' as label30,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Area (in sqft.)' as label31,upper(carpetarea) as carparea,'Standard of living' as label32,upper(furlevel) as furlevel,'Furnishing details' as lblfurdet,upper(Field150_2) as furdet,'Name plate' as label33,(upper(nameplate)||' - '||upper(platedet)) as nameplate,'Exterior details' as label34,upper(Field30_4) as extdet,'Landmark' as label35,upper(Field50_2) as landmark,'Construction' as label36,(case when upper(construction)='OTHERS' then upper(constoth) else upper(construction) end) as construction,'NEIGHBOUR FEEDBACK' as label37,'Neigh. Check 1' as label38,upper(Fieldtext_1) as neighrem1,'Neigh. Check 2' as label39,upper(Fieldtext_2) as neighrem2,'OTHER DETAILS' as label40,'Other details' as label41,upper('Father name: '||fathname||', Company name: '||coalesce(compname,'NA')||', Designation: '||coalesce(design,'NA')),'Verifier''s remarks' as label42,upper(verremarks) as verremarks,'SUPERVISOR''S COMMENT' as label43,'RISK/CREDIT ALERT' as label44,(case when upper(redalert)='YES' then upper(alertrem) else 'NO' end) as riskalert,'STATUS' as label47,upper(status) as status,'FINAL REMARKS' as label48,upper(remarks) as remarks,'Scanned By' as label49,upper(reportdoneby) as supname,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,(case when (upper(rvername)='VINAY SOLANKI' and upper(name)='HDFC LTD') then 'VIKAS CHANDEL' else upper(rvername) end) as rvername,upper(portsupervisor) as reportdoneby,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'Version 1.0' as versiondet,(case portfolio_id when 38 then 'Photographs' else '' end),(case portfolio_id when 38 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '' end) as photographs from banklist_main_residence r where (val0) val1
Query187!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname2,'OFFICE FCI REPORT' as label1,upper(maincompany) as maincompany,'Application Ref. No.' as label2,upper(applno) as applno1,'CW Code' as label3,upper(mvcode) as mvcode1,'Applicant''s name' as label4,upper(customername) as custname1,'Co-Applicant''s name (if any)' as label5,(case when upper(apptype)='APPLICANT' then coalesce(sublist('select customername as field from temp_reporting where trim(upper(applno))='''||trim(upper(o.applno))||''' and bank_branch_id='||o.bank_branch_id||' and upper(apptype) <> ''APPLICANT''',','),'NA') else 'NA' end) as coapps,'Office address' as label6,upper(oaddr) as oaddr,'Address confirmed' as label7,upper(addrconfd) as label8,'Loan amount' as label8,upper(loanamt) as loanamount1,'Tenure' as label9,upper(tenure) as blankten,'Date & Time of visit' as label10,(visitdate||' '||visittime) as visittime,'Vendor to be empanelled' as label11,'' as blank2,'Origin Place' as lbl,upper((select field1 from main where uuid=o.uuid)),'GENERAL DETAILS' as label12,'Met person' as label13,upper(metperson) as metperson,'Designation' as label14,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Name of the company' as lblncomp,upper(companyname) as companyname1,'Years at current add.' as label15,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Type of business' as label16,upper(busitype) as busitype,'Product dealt in' as label17,upper(proddealt) as proddealt,'No of employees seen' as label18,Field30_2 as empseen,'Area (in SQFT)' as label19,upper(Field30_3) as carparea,'Common office & resi' as label20,(case when Field30_4='-1' then 'NA' else upper(Field30_4) end) as isrco1,'If yes, whether distinct' as label21,(case when Field30_5='-1' then 'NA' else upper(Field30_5) end) as iywdist,'SALARIED CATEGORY' as label22,'Applicant''s designation' as label23,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Department' as label24,upper(appdept) as appdept,'Reporting to' as label25,upper(reportingto) as reportto,'Company profile' as label26,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof,'Job confirmed from' as label27,upper(jobconfby) as jobconfby,'Salary details' as label28,upper(saldetail) as saldetail,'Previous job details if current job < 1 year' as label29,upper(prevjobdet) as prevjobdet,'Office setup' as label30,upper(Field150_1) as offsetup,'Total no of employee' as label31,totemp,'Employee(s) seen' as label31_1,Field30_2,'BUSINESS CATEGORY' as label32,'Appl''s designation' as label33,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign1,'Nature of business' as label34,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof1,'Total No. of employee' as label35,totemp as totemp1,'Business activity' as label36,upper(busiact) as busiact,'Type of company' as label37,upper(busitype) as busitype1,'Office ownership' as label38,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Locality of office' as label39,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Accessibility' as label40,upper(easeloc) as easeloc,'No of customer seen' as label41,custseen,'Business board seen' as label42,upper(bizboard) as bizboard,'Office setup details' as label43,upper(Field150_1) as offsetup1,'Stock & Machinery details' as label44,upper(stockdet),'NEIGHBOUR FEEDBACK' as label45,'Neigh. Check 1' as label46,upper(Fieldtext_1) as neighrem1,'Neigh. Check 2' as label47,upper(Fieldtext_2) as neighrem2,'WORK EXPERIENCE' as lblwexp,'' as blankline,'OTHER DETAILS' as label48,'Other details' as label49,upper('Date of birth: '||dob||', Bank details: '||coalesce(bank,'NA')||', Turnover: '||coalesce(turnover,'NA')),'Verifier''s remarks' as label50,upper(verremarks) as verremarks,'SUPERVISOR''S COMMENT' as label51,'RISK/CREDIT ALERT' as label52,(case when upper(redalert)='YES' then upper(alertrem) else 'NO' end) as riskalert,'STATUS' as label53,upper(status) as status,'FINAL REMARKS' as label54,upper(remarks) as remarks,'Scanned By' as label55,upper(reportdoneby) as supname,'Verifier''s Name & Signature' as label56,'Supervisor''s Name & Signature' as label57,'Agency Seal' as label58,(case when (upper(overname)='VINAY SOLANKI' and upper(name)='HDFC LTD') then 'VIKAS CHANDEL' else upper(overname) end) as rvername,upper(portsupervisor) as reportdoneby,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'Version 1.0' as versdet,(case portfolio_id when 38 then 'Photographs' else '' end),(case portfolio_id when 38 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '' end) as photographs from banklist_main_office o where (val0) val1
Query188!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'COMPANY PROFILE VERIFICATION REPORT' as label1,'AGENCY DETAILS' as label2,'Ref. No.' as label3,upper(applno) as applno1,'Verifier name' as label4,upper(overname) as overname,'Agency name' as label5,upper(maincompany) as agencyname,'Report date' as label6,visitdate,'Location' as label7,upper(bcity) as bcity,'Time of visit' as label7,visittime,'TRACK DETAILS' as label8,'Received on' as label9,to_char(receivedate,'DD/MM/YYYY') as receivedon,'Feedback received on' as label10,visitdate,'Sent to field on' as label11,to_char(receivedate,'DD/MM/YYYY') as fieldsenton,'Feedback sent on' as label12,to_char(sdoneon,'DD/MM/YYYY') as feedsenton,'COMPANY DETAILS' as label13,'Company name' as label14,upper(companyname) as companyname,'Address' as label15,upper(oaddr) as oaddr,'Telephone numbers' as label16,'1.' as label17,'2.' as label18,'3.' as label19,'' as blanktel,upper(ophone) as tel1,upper(field30_1) as tel2,upper(field30_2) as tel3,'FAX number' as label20,upper(field30_3) as faxno,'Contact person''s name given' as label21,(contactperson) as contactperson,'REPORT SECTION' as label22,'I. CONTACT PERSON' as label23,'' as bcell1,'Name' as label24,upper(metperson) as metperson,'Designation' as label25,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Extension No' as label26,upper(Field30_4) as extnno,'Direct number' as label27,upper(Field30_5) as directno,'EMail ID' as label28,upper(Field30_6) as emailid,'II. COMPANY DETAILS FOUND' as label29,'' as bcell222,'Registration number' as label30,upper(Field30_7) as regno,'Authorized capital' as label31,upper(Field30_8) as authcapt,'Date of incorporation' as label32,Field30_10,'EMail' as label33,upper(Field30_11) as emailcomp,'Constitution' as label34,upper(Field30_12) as constitution,'Partner''s / Director''s / CEO''s name(s)' as label35,'S.No.' as label36,'Name' as label37,'Title' as label38,'' as bcell2,'1' as label39,upper(Field30_13) as dname1,upper(Field30_14) as dtitle1,'' as bcell3,'2' as label40,upper(Field30_15) as dname2,upper(Field30_16) as dtitle2,'' as bcell4,'3' as label41,upper(Field30_17) as dname3,upper(Field30_18) as dtitle3,'' as bcell5,'4' as label42,upper(Field30_19) as dname4,upper(Field30_20) as dtitle4,'' as bcell6,'5' as label43,upper(Field30_21) as dname5,upper(Field30_22) as dtitle5,'Number of employees' as label44,totemp,'Mode of payment to employees' as label45,'' as bcell7,(case when Field50_1='1-' then 'NA' else upper(Field50_1) end) as modeofpay,'' as bcell8,'Name of bank, If bank credit' as label46,'' as bcell9,upper(Field50_2) as banknamecred,'' as blankline1,'Any other branches' as label47,(case when field30_23='-1' then 'NA' else upper(Field30_23) end) as anyothbranch,'' as bcell10,'1' as label48,'2' as label49,'3' as label50,'4' as label51,'If yes, List them out' as label52,upper(field50_11) as branch1,upper(field50_12) as branch2,upper(field50_13) as branch3,upper(field50_14) as branch4,'Nature of business' as label53,upper(proddealt) as proddealt,'Date of last AGM' as label54,Field50_15 as dtagm,'Area where situated' as label55,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Area in SQ. FT.' as label56,upper(Field30_24) as carparea,'Head office details' as label57,upper(Field150_1) as headoffdet,'Interiors' as label58,upper(Field150_2) as intdet,'Premise type' as label59,(case when Field30_25='-1' then 'NA' else upper(Field30_25) end) as premtype,'Name board seen' as label60,upper(bizboard) as bizboard,'PAN No.' as label61,upper(panno) as panno,'TAN No.' as label62,upper(Field50_4) as tanno,'Documentry proof' as label63,upper(Field50_5) as docproof,'Company profile' as label64,(case when Field50_6='-1' then 'NA' else upper(Field50_6) end) as compprofile,'Reputation' as label65,(case when Field50_7='-1' then 'NA' else upper(Field50_7) end) as comprepo,'Neighborhood check' as label66,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neref,'ROC check' as label67,upper(Field50_8) as roccheck,'Telephone check' as label68,upper(field50_9) as telcheck,'Domain check' as label69,upper(field50_10) as domcheck,'Verifier remarks :' as label70,upper(verremarks) as verremarks,'Supervisor remarks:' as label71,upper(remarks) as remarks,'Overall result' as label72,upper(status) as status,'Verifier sign and date' as label73,(upper(overname)||coalesce(' ('||visitdate||')','')) as vsnd,'Proprietor/Supervisor sign' as label74,upper(reportdoneby) as repdoneby,'Sign and Date' as label75,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(case when portfolio_id= 39 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphoto,(case when portfolio_id= 39 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query189!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as logo,'Merchant Residence Report' as label1,'Investigation Details' as label2,'Refrence No.' as label3,upper(applno) as applno1,'Merchant Legal Name' as label4,upper(customername) as customername1,'Residence Adddress' as label5,upper(raddr) as raddr,'Contact Person' as label6,upper(contactperson) as contactperson,'Phone No.' as label7,rphone,'Met Person' as label8,upper(metperson) as metperson,'Designation' as label9,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Verifiers Remarks' as label10,upper(verremarks) as verremarks,'Status' as label11,upper(status) as status,'Final Remarks' as label12,upper(remarks) as remarks,'Signature of Investigator' as label12,upper(rvername) as rvername,'' as blankcell,'Authorised Signatory' as label13,'Date' as label14,to_char(sdoneon,'DD/MM/YYYY') as donedate,'' as bcell2,'' as bcell3,'Consultant Seal' as label15,'' as bcell4,'' as bcell5,'' as bcell6,'' blankrow,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode from banklist_main_residence r where (val0) val1
Query190!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as logo,'MERCHANT PRE-SIGN UP RISK REPORT' as label1,'Merchant Establishment Site Verification Report' as label2,'Merchant Name:' as label3,upper(customername) as customername1,'Application Ref No:' as label4,upper(applno) as applno1,'' margin1,'Trading Name (If Any):' as label5,upper(customername) as customername2,'' as margin2,'Contact Person:' as label6,upper(contactperson) as contactperson,'Telephone No:' as label7,upper(rphone) as ophone,'' as margin3,'Person Met:' as label8,upper(metperson) as metperson,'Designation:' as label9,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'' as margin4,'Address:' as label10,upper(oaddr) as oaddr,'' as margin5,'' as blankrow,'City:' as label11,upper(ocity) as ocity,'Pincode:' as label12,upper(opincode) as opincode,'State:' as label13,'' as bcellstate,'' as margin6,'' brow1,'Locality:' as label14,(case when upper(locality)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcomm,'Commercial' as lblcomm,(case when upper(locality)='RESIDENTIAL' then 'images/tick.gif' else 'images/untick.jpg' end) as chkres, 'Residential' as lblres,(case when upper(locality)='HIGHWAY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkhigh,'Highway' as highway,(case when upper(locality)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpmall,'Posh Mall' as lblpmall,(case when upper(locality)='SHOPPING CENTER' then 'images/tick.gif' else 'images/untick.jpg' end) as chksc,'Shopping Center' as lblsc,'' as bcellloc1,(case when upper(locality)='GALA TYPE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgtype,'Gala Type' as lblgtype,(case when upper(locality)='REMOTE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrem,'Remote' as lblremote,(case when upper(locality)='SENSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chksensit,'Sensitive' as lblsenset,(case when upper(locality)='RUNNING SHOP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkshop,'Running Shop' as lblrshop,(case when upper(locality)='SLUM/CHAWL' then 'images/tick.gif' else 'images/untick.jpg' end) as chkslm,'Slum' as lblslum,'Appearance:' as lblappearance,(case when upper(Field30_1)='EXCELLENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkexce,'Excellent' as lblexcellent,(case when upper(Field30_1)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgood,'Good' as lblgood,(case when upper(Field30_1)='SEMI FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chksfur,'Semi Furnished' as lblsfur,(case when upper(Field30_1)='UNFURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkufur,'Unfurnished' as lblufur,(case when upper(Field30_1)='SHABBY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkshab,'Shabby' as lblshab,'Stock Level:' as labelstklevel,(case when upper(Field30_2)='VERY GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvgood,'Very Good' as lblvgood,(case when upper(Field30_2)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstkgood,'Good' as lblstkgood,(case when upper(Field30_2)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstkavg,'Average' as lblstkavg,(case when upper(Field30_2)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstklow,'Low' as lblstklow,(case when upper(Field30_2)='-1' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstkna,'NA' as lblstkna,'Activity:' as labelactivity,(case when upper(busiact)='VERY GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactvgood,'Very Good' as lblactvgood,(case when upper(busiact)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactgood,'Good' as lblactgood,(case when upper(busiact)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactavg,'Average' as lblactavg,(case when upper(busiact)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactlow,'Low' as lblactlow,(case when upper(busiact)='NA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactna,'NA' as lblactna,'Premises:' as lablepremises,(case when upper(ownership)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpremown,'Owned' as lblpremown,(case when upper(ownership)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpremrent,'Rented' as lblpremrent,(case when upper(ownership)='LEASED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpremleased,'Leased' as lblpremleased,(case when upper(ownership)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpremoth,'Others' as lblpremoth,'Ownership:' as labelownership,(case when upper(busitype)='PROPRIETORSHIP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownprop,'Proprietary' as lblownprop,(case when upper(busitype)='PARTNERSHIP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownpart,'Partnership' as lblownpart,(case when upper(busitype)='PRIVATE LIMITED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownpvt,'Private Ltd' as lblownpvt,(case when upper(busitype)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownoth,'Others' as lblownoth,'Narration:' as labelnarration,(case when upper(Field30_3)='HUB CPV' then 'images/tick.gif' else 'images/untick.jpg' end) as chkonarhcp,'HUB CPV' as lblnarrhcp,(case when upper(Field30_3)='SPOKE CPV' then 'images/tick.gif' else 'images/untick.jpg' end) as chkonarscp,'SPOKE CPV' as lblnarrscp,(case when upper(Field30_3)='REDO CPV' then 'images/tick.gif' else 'images/untick.jpg' end) as chkonarrdcp,'REDO CPV' as lblnarrrdcp,(case when upper(Field30_3)='RECPV' then 'images/tick.gif' else 'images/untick.jpg' end) as chkonarecp,'RECPV' as lblnarrecp,'Is the Shop or Merchant premises under Renovation/Under Construction:' as lblstate1,(case when upper(Field30_4)='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkucyes,'YES' as lblucyes,(case when upper(Field30_4)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkucno,'No' as lblucno,'No of employee seen at the time of visit:' as lblempseen,Field30_5 as empseen,'' as margin7,'Knowledge of staff in card acceptance procedures:' as labelknowofstaff,(case when upper(Field30_6)='-1' then 'NA' else upper(Field30_6) end) as accept,'' as margin8,'Nature of business/Type of goods sold:' as labelnob,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof,'' as margin9,'No. of years in business' as lblnoyrs,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'' as margin10,'Already accepting cards' as lblalrdy,(case when upper(Field30_7)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkacyes,'No' as lblacno,(case when upper(Field30_7)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkacyes,'Yes' as lbluacyes,'If yes-Acquirer name:' as labelacname,upper(Field30_8) as acrname,'EDC Since:' as lbledc,upper(Field30_10) as edcsince,'' as margin11,'Part of any Chain/Group' as labelcgrp,(case when upper(Field30_11)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcgno,'No' as lblcgno,(case when upper(Field30_11)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcgyes,'Yes' as lblucgyes,'If yes-Please mention name & address of sister concern:' as lbalesisconc,upper(Field150_1) as sisconc,'Date of last AGM:' as labellagm,Field30_12 as lagmdt,'Remarks/Observations:' as labelrem,upper(remarks) as remarks,'Date of visit:' as lbldvisit,visitdate,'Time of visit:' as lbltov,visittime,'Field executive name:' as labelfexce,upper(overname) as overname,'' as margin13,'Agency name:' as lblagcname,upper(maincompany),'' as margin14,'Agency final recommendation(Tick appropriate box below)' as lbldesc,(case when upper(status)='POSITIVE' or upper(status)='RECOMMENDED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatpos,'Recommended' as lblstatpos,(case when upper(status)='NEGATIVE' or upper(status)='NOT RECOMMENDED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatneg,'Recommended' as lblstatneg,(case when upper(status)='RTM' or upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatrtm,'RTM' as lblstatrtm,'Agency Stamp & Signature' as lblstmp,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'Final Recommendation (For Bnak''s Purpose)' as lblfnrem,'images/untick.jpg' as lblutickpos,'Positive','images/untick.jpg' as lblutickmrm,'Refer to MRM','images/untick.jpg' as lblutickneg,'Negative','Bank Officer Remarks:' as lblborem,'' as blankcellbor,'' as margin15,'' as margin16,'' as blankrowbor,'' as margin17,'' as margin18,'' as blankrowbor1,'' as margin19,'Bank Officer Name:' as lblbon,'' as boname,'' as margin20,'Bank Officer Signature:' as lblbosig,'' as bosignature,'' as margin21,upper(status) as wtrmrkstatus from banklist_main_office o where (val0) val1
Query191!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as logo,'Merchant Post Investigation Report' as label1,'Investigation Details' as label2,'Date referred for investigation' as label3,upper(Field10_1) as dforinv,'Investigation carried out by' as label4,upper(Field30_1) as invcarrout,'Nature of fraud' as label5,upper(Field30_2) as noffraud,'Pre-Investigation details' as preivdet,(case when Field3_1='-1' then 'NA' else upper(Field3_1) end) as preinvdet,'Card number' as label6,upper(Field30_3) as cardno,'Cardholder/Add on cardholder name' as label7,upper(Field150_1) as choldname,'Credit card/Debit card' as label8,(case when Field3_2='-1' then 'NA' else upper(Field3_2) end) as ccyn,'Fraud amount' as label9,upper(Field10_2) as famount,'Customer Investigation' as label10,'Cardholder contacted on' as label11,upper(Field10_3) as cconton,'Mode of contact (Personal/Office/Residence)' as label12,(case when Field10_4='-1' then 'NA' else upper(Field10_4) end) as modofcont,'Place of contact, if personal visit made (Office/Residence)' as label13,upper(Field100_1) as pofcont,'Documents collected from customer' as label14,upper(Field30_4) as dcolfcust,'POD copy shown to customer' as label15,upper(Field10_5) as podcopyshown,'Applicable only for NR cases' as label16,'' as bcell99,'Customer investigation feedback' as label17,upper(Field250_1) as cusinvfeed,'Merchant Investigation' as label18,'Sl.No.' as label19,'Description' as label20,'Remarks' as label21,'Additional Remarks' as label22,'1' as label23,'Name of the merchant' as label24,'' as bcell1,upper(Field50_1) as nmofmer,'2' as label24,'Misused amount' as label25,'' as bcell2,upper(Field10_6) as misamnt,'3' as label26,'Date of transaction' as label27,'' as bcell3,Field10_7 as dot,'4' as label28,'Merchant visited' as desc4,(case when Field3_3='-1' then 'NA' else upper(Field3_3) end) as rem4,upper(Field30_5) as adrem4,'5' as label29,'Charge slip collected' as desc5,(case when Field3_4='-1' then 'NA' else upper(Field3_4) end) as rem5,upper(Field30_6) as adrem5,'6' as label30,'Signature matching with the records' as desc6,(case when Field3_5='-1' then 'NA' else upper(Field3_5) end) as rem6,upper(Field50_3) as adrem6,'7' as label31,'Docs collected' as desc7,(case when Field3_6='-1' then 'NA' else upper(Field3_6) end) as rem7,upper(Field100_2) as adrem7,'8' as label32,'Any clues from the docs/description provided by the merchant' as desc8,(case when Field3_7='-1' then 'NA' else upper(Field3_7) end) as rem8,upper(Field150_2) as adrem8,'9' as label33,'CCTV available' as desc9,(case when Field3_8='-1' then 'NA' else upper(Field3_8) end) as rem9,upper(Field30_7) as adrem9,'10' as label34,'Vehicle number noted' as desc10,(case when Field3_9='-1' then 'NA' else upper(Field3_9) end) as rem10,upper(Field20_1) as adrem10,'11' as label35,'Recovery possibility' as desc11,(case when Field3_10='-1' then 'NA' else upper(Field3_10) end) as rem11,upper(Field50_2) as adrem11,'Signature of investigator:' as label36,upper(pvername) as pvername,'Authorized Signatory' as label37,'Date:' as label38,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Consultant Seal' as label39,'Received and Reviewed by' as label40,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OTH-'||status as bcode,upper(status) as hiddentext from banklist_main_property p where (val0) val1
Query192!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname1,'EXTERNAL VERIFICATION REPORT-RESIDENCE' as label1,'Application refrence No.' as label2,upper(applno) as applno1,'Agency name' as label3,upper(maincompany) as agency,'Applicant name' as label4,upper(customername) as customername1,'Residence address' as label5,upper(raddr) as raddr,'Address confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_1) as lndmark,'Date/Time of visit' as label8,(visitdate||' '||visittime) as dtofvisit,'Telephone no' as label9,rphone,'Mobile no' as label10,mobileno,'E-mail' as label11,upper(field50_2) as emailid,'PAN No.' as label12,upper(field30_12) as panno,'Passport No.' as label13,upper(field30_11) as paasport,'Permanent address' as label14,upper(permadd) as label15,'Present address' as label16,upper(raddr) as raddr,'Own/Rented/Leased' as label17,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'The following information is to be obtained from the applicant or any body residing at the address:' as label18,'Person met' as label19,upper(metperson) as metperson,'Relation with applicant' as label20,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of birth/Age of the applicant' as label21,(case when dob is null or dob='' then (case when age is not null and age <> '' then age||' YEAR(S)' else 'NA' end) else dob end) as dob,'Years lived at current residence' as label22,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Residence' as label23,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rstat,'Locating the address' as label24,upper(raccess) as raccess,'Visible items' as label25,'TV' as label26,(case when upper(chkfield1)='X' then 'images/blackcheck.png' else 'images/blankcell.png' end) as chktv,'Music System' as label27,(case when upper(chkfield2)='X' then 'images/blackcheck.png' else 'images/blankcell.png' end) as chkms,'Computer' as label28,(case when upper(chkfield3)='X' then 'images/blackcheck.png' else 'images/blankcell.png' end) as chkpc,'Fridge' as label29,(case when upper(chkfield4)='X' then 'images/blackcheck.png' else 'images/blankcell.png' end) as chkfridge,'' as bcell1,'If any other' as label30,upper(field50_3) as othasset,'Approach to residence' as label31,upper(accmode) as accmode,'Interior walls' as label32,(case when field30_2='-1' then 'NA' else upper(field30_2) end) as intwall,'Furniture' as label33,upper(interior) as interior,'Name plate sighted' as label34,(case when upper(nameplate)='YES' then upper(platedet) else upper(nameplate) end) nameplate,'images/signs/'||sdoneby||'.png' as singature1,'Area' as label35,upper(carpetarea) as carpetarea,'Flooring' as label36,(case when upper(Field30_5)='-1' then 'NA' else upper(field30_5) end) as flooring,'Room type' as label37,upper(Field30_6) as roomtype,'Type of roof' as label38,(case when Field30_7='-1' then 'NA' else upper(Field30_7) end) as rooftype,'Type of house' as label40,(case when upper(construction)='OTHERS' then upper(constoth) else upper(construction) end) as construction,'Locality' as label41,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Is residence within city limits' as label42,(case upper(isocl) when 'NO' then 'YES' when 'YES' then 'NO' else 'NA' end) as withinlimit,'Supervisor: '||upper(sdonebyname) as repdoneuser,'Document obtained as proof of visit to the residence' as label43,(case when upper(proof)='YES' then upper(proofdet) else upper(proof) end) as proofdet,'Neighbors verification' as label44,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neref,'Comments' as label45,upper(fieldtext_1) as necommt,'Field executive comments' as label46,upper(verremarks) as verremarks,'Rating' as label47,upper(Field30_10) as rating,'Educational qualification' as label48,(case when upper(field30_1)='-1' then 'NA' else upper(field30_1) end) as eduqual,'Marital status' as label49,upper(maritial) as maritial,'No. of family members' as label50,totmem,'No. of family members working' as label51,earning,'No. of dependents/children' as label52,dependent,'Father/Spousename' as label53,upper(fathname) as fathname,'Is spouse working' as label54,(case when upper(spswork)='YES' then 'YES - Company: '||upper(spscomp)||', Designation: '||upper(spsdesign)||', Other details:'||upper(spsempdet) else upper(spswork) end) as spswork,'Any credit card' as label55,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as cc,'Card No.' as label56,upper(Field30_4) as cardno,'Card limit' as label57,upper(Field30_8) as cardlimit,'Issuing bank' as label58,upper(field50_4) as isuibank,'Expiry date' as label59,upper(field30_13) as expdate,'End user of asset' as label60,upper(field30_14) as endusrasst,'Present vehicle' as label61,upper(field30_15) as pvehicle,'Finance type' as label62,upper(field30_16) as ftype,'Make' as label63,upper(field30_17) as make,'Bank' as label64,upper(field50_5) as bank,'Loan No.' as label65,upper(field30_18) as laonno,'Asset' as label66,upper(field30_19) as ast,'EMI' as label67,upper(Field30_20) as emi,'The following is based on verifier''s observation' as label68,'How co-operative is the customer' as label69,upper(custbehav) as custbehav,'Neighbor reference' as label70,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neref1,'Name of the neighbor' as label71,upper(fieldtext_1) as nerem1,'Name verified from' as label72,(case when Field30_21='-1' then 'NA' else upper(Field30_21) end) as nverfrm,'Type of residence' as label73,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Location of residence' as label74,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label75,upper(raccess) as raccess1,'Construction of residence' as label76,(case when upper(construction)='OTHERS' then upper(constoth) else upper(construction) end) as construction1,'Exteriors of the residence' as label77,upper(field30_22) as exteriors,'Carpet area of the house (sq.feet)' as label78,upper(carpetarea) as carparea1,'Interiors of the residence' as intofres,upper(interior) as interior1,'Assets seen at the residence' as label79,upper(Field50_3) as othasset,'Whether picture of political party seen (Y) or (N)' as label80,(upper(political)||''||(case when upper(political)='YES' then ' - '||upper(politicdet) else '' end)) as political,'INCOME TAX RETURN VERIFICATION' as label81,'Name/Designation of the person contacted in ITO office' as label82,upper(Field50_7) as label83,'Year of return' as label83,'NA' as yorbcell1,'NA' as yorbcell2,'NA' as yorbcell3,'Ward No./Circle No.' as label84,'NA' as wnobcell1,'NA' as wnobcell2,'NA' as wnobcell3,'Date of filing' as label85,'NA' as dofbcell1,'NA' as dofbcell2,'NA' as dofbcell3,'Receipt number' as label86,'NA' as rnobcell1,'NA' as rnobcell2,'NA' as rnobcell3,'Income filed' as label87,'NA' as ifbcell1,'NA' as ifbcell2,'NA' as ifbcell3,'Name of ITO' as label88,'NA' as noibcell1,'FOR SALARIED ONLY:' as lblforsal,'SALARY SLIP, SALARY CERTIFICATE/ PAY SLIP/ FORM16/ 16A VERIFICATION REPORT' as forsal1,'Total income as per papers' as label89,'NA' as totinc,'Overall computation correct' as label90,'NA' as overallcomp,'Income calculations correct' as label91,'NA' as inccalc,'In case of Form 16/16A tax payable is correct' as label92,'NA' as taxpaybl,'Gross annual income' as label93,'NA' as grsaninc,'DETAILS IN THE DOCUMENT CONFIRMED AS OK' as label94,'Seal of the organization' as label95,'NA' as orgseal,'Signature of the issuing authority' as label96,'NA' as authsig,'Document as per the standard format' as label97,'NA' as docstfrmt,'Date on the SS/SP/SC/PS' as label98,'NA' as ssdt,'Amount on the SS/SP/SC/PS' as label99,'NA' as ssamt,'Address of the application' as label100,'NA' as appaddr,'If the applicant address is locked the following information is to be obtained from the neighbour' as label101,'Does the applicant stay at the given address' as label102,(case when field30_23='-1' then 'NA' else upper(field30_23) end) as doesappstay,'Approximate age' as label103,upper(field30_24) as appxage,'Approximate time when the applicant is at home' as label104,upper(field50_6) as appxtime,'No. of family members of the applicant' as label105,upper(field30_25) as netotmem,'Final Stauts' as label106,upper(status) as status,'Negative Reason' as label107,upper(negreason) as negreason,'Remarks: - '||upper(coalesce(remarks,'NOT INITIATED')) as remarks,'Scanned By' as label108,upper(reportdoneby) as sdoneby,'Verifier''s Name & Signature' as label109,'Agency Manager''s Signature' as label110,'Agency Seal' as label111,upper(rvername) as rvername,upper(portsupervisor) as reportdoneby,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'' as blank,'Supervisor:'||upper(sdonebyname) as stampncont,'For vehicle loans only' as label112,'Wheather licence available if Yes' as label113,'A' as label114,'Licence number' as label115,'' as licnumber,'B' as label116,'Licence issuing authority' as label117,'' as licauth,'C' as label118,'Date of issue/Last renewed' as label119,'' as licren,'D' as label120,'Valid upto' as label121,'' as vupto,upper(status) as watermark from banklist_main_residence r where (val0) val1
Query193!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname1,'EXTERNAL VERIFICATION REPORT-BUSINESS' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,upper(oaddr) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Leftover service' as lbllovr,'' as bcelllovr,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'VERIFIER''S OBSERVATION' as lblvobsrv,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'images/signs/'||sdoneby||'.png' as singature1,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Scanned by: '||upper(sdonebyname) as sdbyname,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'INCOME TAX RETURN VERIFICATION' as label81,'Name/Designation of the person contacted in ITO office' as label82,upper(Field50_7) as label83,'Year of return' as label83,'NA' as yorbcell1,'NA' as yorbcell2,'NA' as yorbcell3,'Ward No./Circle No.' as label84,'NA' as wnobcell1,'NA' as wnobcell2,'NA' as wnobcell3,'Date of filing' as label85,'NA' as dofbcell1,'NA' as dofbcell2,'NA' as dofbcell3,'Receipt number' as label86,'NA' as rnobcell1,'NA' as rnobcell2,'NA' as rnobcell3,'Income filed' as label87,'NA' as ifbcell1,'NA' as ifbcell2,'NA' as ifbcell3,'Name of ITO' as label88,'NA' as noibcell1,'FOR SALARIED ONLY:' as lblforsal,'SALARY SLIP, SALARY CERTIFICATE/ PAY SLIP/ FORM16/ 16A VERIFICATION REPORT' as forsal1,'Total income as per papers' as label89,'NA' as totinc,'Overall computation correct' as label90,'NA' as overallcomp,'Income calculations correct' as label91,'NA' as inccalc,'In case of Form 16/16A tax payable is correct' as label92,'NA' as taxpaybl,'Gross annual income' as label93,'NA' as grsaninc,'DETAILS IN THE DOCUMENT CONFIRMED AS OK' as label94,'Seal of the organization' as label95,'NA' as orgseal,'Signature of the issuing authority' as label96,'NA' as authsig,'Document as per the standard format' as label97,'NA' as docstfrmt,'Date on the SS/SP/SC/PS' as label98,'NA' as ssdt,'Amount on the SS/SP/SC/PS' as label99,'NA' as ssamt,'Address of the application' as label100,'NA' as appaddr,'REMARKS AND OBSERVATION' as label101,upper(remarks) as remarks,'Final Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Scanned By' as lblscby,upper(reportdoneby) as repdoneby,'Verifier''s Name & Signature' as label40,'Agency Manager''s Signature' as label41,'Agency Seal' as lblagseal,upper(overname) as overname,upper(portsupervisor) as reportdoneby,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'' as blankrw,'Scanned by: '||upper(sdonebyname) as sdbyandcont,upper(status) as watermark from banklist_main_office o where (val0) val1
Query194!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname1,'RESIDENCE VERIFICATION REPORT' as label1,'Agency' as label2,upper(maincompany) as agencyname,'MV Code' as label3,upper(mvcode) as mvcodem,'Received Date' as label4,to_char(receivedate,'DD/MM/YYYY') as recdate,'Application No' as label5,upper(applno) as applno2,'Product' as label6,upper(product) as product1,'Loan Amount' as label7,upper(loanamount) as loanamount,'Visit Date' as label8,visitdate,'Visit Time' as label9,visittime,'Report Date' as label10,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Applicant''s Name' as label11,upper(customername) as custname1,'Occupation' as label12,upper(category) as category1,'Address' as label13,upper(raddr) as raddr,'Met Person' as label14,upper(metperson) as metperson,'Relation' as label15,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Ownership' as label16,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'Stay at Curr Address' as label17,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Marital Status' as label18,upper(maritial) as marital,'Total Family Members' as label19,totmem,'Total Earning Members' as label20,earning,'Spouse Working' as label21,upper(spswork) as spswork,'Spouse Employment Details' as label22,upper(spsempdet) as spsempdet,'Residence Proof' as label23,upper(proofdet) as resproof,'Ease of Location' as label24,upper(raccess) as raccess,'Locality' as label25,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Residence Type' as lblrtype,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Living Standard' as label26,upper(furlevel) as living,'Neighbour Reference' as label27,(case when upper(field30_9)='-1' then 'NA' else upper(field30_9) end) as neref,'Neighbour Feedback' as label28,upper(fieldtext_1) as nerem,'Any Political Links' as label29,upper(political) as political,'If Yes, Details' as label30,upper(politicdet) as politicdet,'Verifier Remarks' as label31,upper(verremarks) as verrem,'Credit Alert' as label32,upper(riskremarks) as riskremarks,'Final Status' as label33,upper(status) as status,'Remarks' as label34,upper(remarks) as remarks,'Scanned By' as label35,upper(reportdoneby),'Agency Seal','images/signs/'||sdoneby||'.png' as singature from banklist_main_residence r where (val0) val1
Query195!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname1,'OFFICE VERIFICATION REPORT' as label1,'Agency' as label2,upper(maincompany) as agenname,'MV Code' as label3,upper(mvcode) as mvcode1,'Received Date' as label4,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Application No' as label5,upper(applno) as applno1,'Product' as label6,upper(product) as product1,'Loan Amount' as label7,upper(loanamount) as loanamount,'Visit Date' as label8,visitdate,'Visit time' as label9,visittime,'Report Date' as label10,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Applicants Name' as label11,upper(customername) as customername2,'Occupation' as label12,upper(category) as category1,'Address' as label13,upper(oaddr) as oaddr,'Met Person' as label14,upper(metperson) as metperson,'Relation' as label15,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Ownership' as label16,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Job/Biz at Curr Add' as label17,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Designation'as label18,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Department' as label19,upper(appdept) as appdept,'Reporting To' as label20,upper(reportingto) as reportingto,'Salary' as label21,upper(saldetail) as saldetail,'NOB' as label22,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof,'Product Dealt' as label23,upper(proddealt) as proddealt,'Total Employee' as label24,totemp,'Branch' as label25,totbranch,'Job Transferable',upper(transferable) as jobtransfer,'Board Seen' as label26,upper(bizboard) as bizboard,'Previous Job Details, if less than 1 year' as label26,upper(prevjobdet) as prevjobdet,'Ease of Access' as label27,upper(easeloc) as easeloc,'Locality' as label28,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Organisation Type' as label29,upper(busitype) as orgtype,'Neighbour Reference' as label30,(case when upper(field30_9)='-1' then 'NA' else upper(field30_9) end) as neref,'Neighbour Feedback' as label31,upper(fieldtext_1) as negrem,'Any Political Links' as label32,upper(political) as political,'If Yes, Details' as label33,upper(politicdet) as politicdet,'Verifier Remarks' as label34,upper(verremarks) as verremarks,'Credit Alert' as label35,upper(riskremarks) as riskremarks,'Final Status' as label36,upper(status) as status,'Remarks' as label37,upper(remarks) as remarks,'Scanned By' as label38,upper(reportdoneby) as doneby,'Agency Seal'as lbl,'images/signs/'||sdoneby||'.png' as singature from banklist_main_office o where (val0) val1
Query196!C0L!procedure!C0L!select indusindupload('val0','val1','val2')
Query197!C0L!select!C0L!select SEQ_ID,INIT_DTL_ID,verification_type from VR_RECORDS_RECEIVED where APPLICATION_NO='val0'
Query199!C0L!update!C0L!update pending_uploads set uploaded=0 where uuid='val0'
Query200!C0L!procedure!C0L!select axisccupload('val0','val1')
Query201!C0L!select!C0L!select uuid,product,cb.companyname AS maincompany,pb.bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,mo.bank_branch_id,'RIC REPORT FORMAT-HDFC BANK LTD' as lable1,'Product:' as label2,upper(product) as product1,'Sampled Date:' as label3,to_char(receivedate,'DD/MM/YYYY') as sampledate,'Please find enclosed the RIC feedback for the case' as label4,'Completed Date:' as label5,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Sampled by us:' as label6,'Mandatory' as inp1,'Referred to us:' as label7,'' as blank,'File No.:' as label8,upper(applno) as applno1,'Applicant Name:' as label9,upper(customername) as custname1,'Vehicle Model:' as label10,'NA' as inp2,'Loan Amount:' as label11,upper(loanamount) as loanamount,'DMA / Dealer:' as label12,'NA' as inp3,'DME -' as label13,'N/A' as inp4,'Office Name:' as label14,coalesce(mo.companyname,'NA') as compname,'Co-Applicant:' as label15,coalesce(sublist('select upper(customername) as field from main_mainopr where upper(applno)='''||upper(applno)||''' and receivedate='''||receivedate||''' and upper(apptype)=''CO-APPLICANT'' and portfolio_id='||mo.portfolio_id,','),'') as coapp,'Verification Type:' as label16,upper(product) as product2,'BS' as label17,'ITR' as label18,'SC' as label19,'SS' as label20,'F16' as label21,'ID Proof' as label22,'Res. Proof' as label23,'Profile Check' as label24,'Office Proof' as label25,'Others' as label26,'' as bl1,'' as bl2,'' as bl3,'' as bl4,'' as bl5,'' as bl6,'' as bl7,(case when upper(overallstatus)='RECOMMENDED' then 'P' else 'N' end) as overallstat,'' as bl8,'' as bl9,'RA-Risk Alert' as label27,(case when upper(overallstatus)='RECOMMENDED' then 'P-Positive' else 'P-Positive' end) as positive,(case when upper(overallstatus)='NOT RECOMMENDED' then 'N-Negative' else 'N-Negative' end) as negative,'X-Failed' as label28,'RIC Status - ' as label29,upper(overallstatus) as ricstatus,'' as bl10,(case when upper(overallstatus)='NOT RECOMMENDED' then '1. Not Recommended' else '1. Not Recommended' end) as ricneg,'A. Risk Alert' as label30,(case when upper(overallstatus)='NOT RECOMMENDED' then 'B. Negative' else 'B. Negative' end) as ricneg1,(case when upper(overallstatus)='RECOMMENDED' then '2. Recommended' else '2. Recommended' end) as ricpos,'3. Failed' as label31,'' as bl11,'Reasons for Rejection: (Tick whichever appropriate)' as label32,'images/untick.jpg' as chk1,'Forged Document' as label33,'images/untick.jpg' as chk2,'Adverse Profile' as label34,'images/untick.jpg' as chk3,'Office / Residence profile not satisfactory' as label35,'images/untick.jpg' as chk4,'Mismatch of Address' as label36,'images/untick.jpg' as chk5,'Misrepresentation of facts / false details' as label37,'images/untick.jpg' as chk6,'Profile Mismatch' as label38,'images/untick.jpg' as chk7,'Political connection' as label39,'images/untick.jpg' as chk8,'Police Influence' as label40,'images/untick.jpg' as chk9,'Others' as label41,'Additional remarks if any:' as label42,(case when rv=1 then (select 'Residence Remarks : '||upper(remarks) from banklist_main_residence where uuid=mo.uuid) else '' end) as rrem,'' as rremblank,(case when ov=1 then (select 'Office Remarks : '||upper(remarks) from banklist_main_office where uuid=mo.uuid) else '' end) as orem,'' as oremblank,(case when pv=1 then (select 'Property Remarks : '||upper(remarks) from banklist_main_property p where uuid=mo.uuid) else '' end) as prem,'' as bprem,'' as bline,'For Matrix Credit Risk Controls PVT. LTD.' as label43,'' as bline1,'Signature and date' as label44,mvcode||'-'||applno||'-'||customername||'-RIC-'||overallstatus as bcode,'images/signs/'||(select supervisor from portfolio where portfolio_id=mo.portfolio_id)||'.png' as singature,'Version 1.0' as label45 from main_mainopr mo, company_branch_detail cb,portfolio_bank_branch pb where mo.bank_branch_id = pb.portbranch_id and mo.branch_id = cb.branch_id and upper(apptype)='APPLICANT' and (upper(product)='PROFILE CHECK' or upper(product)='COMPANY PROFILE' or upper(product)='LAP' or upper(product)='DISCREET') and (val0) val1
Query202!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as pimg,upper(name) as label1,'' as bcell1,'EXTERNAL DE-DUP REPORT' as label2,'Applicantion /CAS NO.' as label3,upper(applno) as applno1,'Applicant / Customer Name' as label4,upper(customername) as custname1,'Dedup Report (please tick if any)' as label4,'Positive (Please specify the details)' as label5,'' as bcell2,'' as bcell3,'Negative','' as bcell4,'' as bcell5,'Dedup Matched With (Please tick if any)' as label6,'Name' as label7,(case when (negremarks is not null and strpos(negremarks,'SAME CUSTOMER NAME AND DOB') > 0) then 'images/blackcheck.png' else 'images/blankcell.png' end) as namefound,'Date of Birth' as label8,(case when (negremarks is not null and strpos(negremarks,'SAME CUSTOMER NAME AND DOB') > 0) then 'images/blackcheck.png' else 'images/blankcell.png' end) as dobfound,'Address' as label9,(case when (negremarks is not null and (strpos(negremarks,'WITH SAME OFFICE ADDRESS') > 0 or strpos(negremarks,'SAME RESIDENCE ADDRESS') > 0)) then 'images/blackcheck.png' else 'images/blankcell.png' end) as addfound,'Phone No' as label10,(case when (negremarks is not null and (strpos(negremarks,'WITH SAME MOBILE NUMBER') > 0 or strpos(negremarks,'WITH SAME OFFICE PHONE') > 0 or strpos(negremarks,'WITH SAME RESIDENCE PHONE') > 0)) then 'images/blackcheck.png' else 'images/blankcell.png' end) as phonefound,'Applicant Residence Address' as label11,upper(raddr) as raddr,'Applicant Offfie Address',upper(oaddr) as oaddr,'Type of Default :-(Please tick if any)' as label12,'' as bcell6,'Loan Type' as label13,'Sanction Amount' as label14,'Disabused Amount' as label15,'Loan Tenure' as label17,'EMI Paid' as label24,'EMI Pending' as label18,'Current Bucket' as label19,'Current Outstanding' as label20,'' as bcell7,'Personal Loan' as label21,'' as label22,'' as label23,'' as label24,'' as label25,'' as label26,'' as label27,'' as label28,'Loan''s' as label29,'Home Loan' as label30,'' as label31,'' as label32,'' as label33,'' as label34,'' as label35,'' as label36,'' as label37,'(Please tick if any)' as label38,'Education Loan' as label39,'' as label40,'' as label41,'' as label42,'' as label43,'' as label44,'' as label45,'' as label46,'' as label47,'Car Loan' as label48,'' as label49,'' as label50,'' as label51,'' as label52,'' as label53,'' as label54,'' as label55,'' as label56,'Auto Loan' as label57,'' as label58,'' as label59,'' as label60,'' as label61,'' as label62,'' as label63,'' as label64,'' as label65,'Card Type' as label67,'Limit Sanction' as label68,'Limit Used' as label69,'Card Vintage' as label70,'Last 3 Months String' as label71,'Current String' as labelcurstr,'Current Bucket' as label72,'Current Outstanding' as label73,'Credit Card''s' as label74,'Gold Card' as label75,'' as label76,'' as label77,'' as label78,'' as label79,'' as label80,'' as label81,'' as label82,'(Please tick if any)' as label83,'Silver Card' as label84,'' as label85,'' as label86,'' as label87,'' as label88,'' as label89,'' as label90,'' as label91,'' as label92,'Other Card' as label93,'' as label94,'' as label95,'' as label96,'' as label97,'' as label98,'' as label99,'' as label100,'' as label101,'Add On Card' as label102,'' as label103,'' as label104,'' as label105,'' as label106,'' as label107,'' as label108,'' as label218,'OD Limit''s' as label109,'OD Against' as label110,'Sanction Amount' as label111,'Disabused Amount' as label112,'Loan Tenure' as label113,'EMI Paid' as label114,'EMI Pending' as label115,'Current Bucket' as label116,'Current Outstanding' as label117,'(Please tick if any)' as label118,'Stock' as label119,'' as label120,'' as label121,'' as label122,'' as label123,'' as label124,'' as label125,'' as label126,'' as label127,'Assets' as label128,'' as label129,'' as label130,'' as label131,'' as label132,'' as label133,'' as label134,'' as label135,'Telcom Defaulter' as label136,'' as label137,'Observation / Summary' as label139,coalesce((case when (earremarks is null or length(earremarks) < 10) then 'NO EARLIER DEDUPE FOUND' else replace(upper(earremarks),'
','') end),'NO EARLIER DEDUPE FOUND') as earremarks,'' as bcellfrem,coalesce((case when (negremarks is null or length(negremarks) < 10) then 'NO NEGATIVE DEDUPE FOUND' else replace(upper(negremarks),'
','') end),'NO NEGATIVE DEDUPE FOUND') as negativeremarks,'images/signs/'||supervisor||'.png' as sign,(mvcode||'-'||applno||'-'||customername||'-EAR-'||earlier||'-NEG-'||negative) as bcode from banklist_main_dedupe d where (val0) val1
Query203!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,UPPER(PRODUCT)||' - Property Verification Report' as label1,'Application Ref. No.' as label2,upper(applno) as applno1,'Agency Name' as label3,(case when compcode='mcrc' then upper(maincompany) else 'Arvee Bizpro Solutions Pvt. Ltd.' end) as agency,'Applicant''s Name' as lblappnm1,upper(Field50_10) as appnm1,'MV Code' as lblmvc,upper(mvcode) as mvcodesd,'Applicant''s Name- Purchaser' as label4,upper(field50_1) as custname1,'Name of Seller' as label5,upper(field50_8) as sellername,'Property Address' label6,(upper(paddr1)||' '||coalesce(upper(paddr2),'')||' '||upper(paddr3)) as propadd,'Address Confirmed' as label7,(case when upper(addrconfd)='YES' then 'Yes' else 'Yes' end) as adconfyes,(case when upper(addrconfd)='NO' then 'No' else 'No' end) as adconfno,'Landmark' as label8,upper(Field50_2) as landmark1,'Date of Visit' as lblvisdate,visitdate,'Time of Visit' as lblvtime,visittime,'Request Date' as lblreqdate,to_char(receivedate,'DD/MM/YYYY') as reqdate,'Submit Date' as lblsdate,to_char(sdoneon,'DD/MM/YYYY') as subdate,'The following is based on the verifier''s observation' as lblstate,'Property Identified' as label9,(case when upper(Field3_1)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpiyes,'Yes' as piyes,(case when upper(Field3_1)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpino,'No' as pino,'In case of plot' as label10,'If yes, how was the property identified Door no' as label11,'If No','Has the plot been demarcated by a stone marking /fencing /boundary' as lable12,'Developed urban area in existence' as label13,'' as bcell1,'' as bcell2,(case when upper(Field3_2)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as demaryes,'Yes' as lbdemaryes,(case when upper(Field3_2)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as demarno,'No' as lbdemarno,(case when upper(Field3_3)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as duayes,'Yes' as lbduyes,(case when upper(Field3_3)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as duano,'No' as lbduano,(case when upper(Chkfield_1)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chknp,'Name Plate' as lblnp,(case when upper(Chkfield_8)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpat,'Property not Traceable' as pat,'If demarcated, mentioned details on the' as label14,(case when upper(Chkfield_2)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chklr,'Land Revenue Office' as lblro,(case when upper(Chkfield_9)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadw,'Address is Wrong' as labeladw,'stone marking.' as label15,(case when upper(Chkfield_3)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpasser,'Passerby' as lblpasser,(case when upper(Chkfield_4)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpasser,'Auth. Officer' as lbauthof,'' as bcell3,upper(Field100_1) as demrem,(case when upper(Chkfield_5)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneigh,'Neighbour' as lblnegih,(case when upper(Chkfield_6)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwatch,'Watchman' as lblwathc,'' as bcell4,'' as bcell5,(case when upper(Chkfield_7)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkoth,'Other' as lbloth,'' as bcell6,'' as bcell7,'Name of the Property: As Seen On:' as label16,'Type of Property' as label17,'Overall Quality of Building' as label18,(case when Field30_1='Name Plate' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmp,'Name Plate' as chknmp1,(case when Field30_2='Only Land' then 'images/tick.gif' else 'images/untick.jpg' end) as chkonlnd,'Only Land' as lblonlnd,(case when Field10_1='Excellent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkqpexc,'Excellent' as lblqpexc,(case when Field30_1='Society Display Board' then 'images/tick.gif' else 'images/untick.jpg' end) as chksdb,'Society Display Board' as lblsdb,(case when Field30_2='Completed Bungalow' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcpb,'Completed Bungalow' as lblcpb,(case when Field10_1='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgoodpt,'Good' as lblptgood,(case when Field30_1='Builder' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbuild,'Builder' as lblbuild,(case when Field30_2='Under Construction' then 'images/tick.gif' else 'images/untick.jpg' end) as chkucp,'Under Construction' as lblucp,(case when Field10_1='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkptpoor,'Poor' as lblptpoor,(case when Field30_1='Display Board Name' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdbn,'Display Board Name' as lbldbn,(case when Field30_2='Bungalow' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbung,'Bungalow' as lblbung,(case when Field10_1='Cant Say' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcsay,'Can''t Say' as lblcsay,'' as bcell8,(case when Field30_2='Completed Flat' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcmpflt,'Completed Flat' as lblcmpflt,'' as bcell9,'' as bcell10,(case when Field30_2='Flat Under Construction' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfuc,'Flat Under Construction' as lblfuc,'' as bcell11,'Current Owner of The Property' as label19,upper(Field50_5) as currowner,'Name of Tenant, if Property is Lease Out' as label20,upper(Field30_3) as curtenant,'' as bcell12,'Name of Persons at the Site' as lable21,upper(Field50_4) as metperson,'' as bcell13,'Ongoing Construction Activity' as label22,'Level of Activity Seen at Site' as lable23,'Materials Seen at Site' as label24,'Construction Equipments Seen at Site' as label25,(case when upper(Field3_4)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkucyes,'Yes' as lblucyes,(case when upper(Field3_4)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkucno,'No' as lblucno,(case when Field20_1='High' then 'images/tick.gif' else 'images/untick.jpg' end) as chkacthigh,'High' as lblacthigh,(case when upper(Chkfield_10)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmsbrick,'Bricks' as lblmsbrick,(case when upper(Chkfield_11)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chksmcement,'Cement' as lblsmcement,(case when upper(Chkfield_18)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeqpseen,'Drilling Machine' as lbleqpseen,'' as bcell14,(case when Field20_1='Medium' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactMed,'Medium' as lblactMed,(case when upper(Chkfield_12)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmsstone,'Stones' as lblmsstone,(case when upper(Chkfield_13)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkiron,'Iron Rods' as lblironrd,(case when upper(Chkfield_19)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkscm,'Stone Cutting Machine' as lblscm,'' as bcell5,(case when Field20_1='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactLow,'Low' as lblactLow,(case when upper(Chkfield_14)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkEfit,'Elect. Fittings' as lblEfit,(case when upper(Chkfield_20)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcmixer,'Cement Mixer' as lblcmixer,'' as bcell16,(case when Field20_1='No Activity' then 'images/tick.gif' else 'images/untick.jpg' end) as chkactNA,'No Activity' as lblactNA,(case when upper(Chkfield_15)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwmat,'Wooden Materials' as lblwmat,(case when upper(Field3_7)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeqaoth,'Any Other' as lbleqaoth,'' as bcell17,'' as bcell18,(case when upper(Chkfield_16)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chktiles,'Tiles' as lbltiles,(case when upper(Chkfield_17)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmsoth,'Others' as lblmsoth,'' as bcell19,'No. of Storey Completed' as label26,Field3_5,'Available Services' as label27,'Surroundings' as label28,'No of Storey Under' as label29,Field3_6,(case when upper(Field3_8)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chklift,'Lift' as lbllift,(case when upper(Field10_5)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkslums,'Slums' as lblslums,(case when upper(Field10_6)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvacsite,'Vacant Sites' as lblvacsite,'Construction' as label30,'' as bcell20,(case when upper(Field3_9)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkhclub,'Health Club' as lblhclub,(case when upper(Field10_7)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdumsite,'Dumping Ground' as lbldumsite,'' as bcell21,'' as bcell22,(case when upper(Field3_10)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgrdn,'Garden' as lblgarden,(case when upper(Field10_8)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkasshop,'Shop' as lblasshop,(case when upper(Field10_9)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrarea,'Residential Area' as lblrarea,'No of Roofs/ Slabs' as label31,Field10_4,(case when upper(Field10_2)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as ChkSwim,'Swimming Pool' as lblswimpool,(case when upper(Field10_10)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as Chkbldr,'Buildings' as lblbldr,(case when upper(Field20_2)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as ChkCommarea,'Commercial Area' as LblCommarea,'' as bcell23,'' as bcell24,(case when upper(Field10_3)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chksecur,'Security' as lblsecur,'' as bcell25,'Is there any board on the property saying that the property is mortgaged to Bank / HFC :' as label32,(case when upper(Field20_3)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbmoyes,'Yes' as lblbmoyes,(case when upper(Field20_3)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbmono,'No' as lblbmono,'If Yes, name of the Bank / HFC' as label33,upper(Field50_6) as nameifyes,'Details of person contacted at site / property' as label33,'Name' as label34,upper(Field50_4) as metperson1,'Relation With Owner' as label35,upper(Field30_4) as metrela,'Owner / Builder Name' as label36,upper(Field50_7) as buildername,'Association With the Property' as label37,(case when Field20_4='>3 Years' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgt3,'> 3 Years' as lblgt3,(case when Field20_4='>1 Year' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgt1,'> 1 Year' as lblgt1,(case when Field20_4='3-12 Months' then 'images/tick.gif' else 'images/untick.jpg' end) as chk12mn,'3-12 Months' as lbl12mn,(case when Field20_4='1-3 Months' then 'images/tick.gif' else 'images/untick.jpg' end) as chk3mn,'1-3 Months' as lbl3mn,(case when Field20_4='No Association' then 'images/tick.gif' else 'images/untick.jpg' end) as chk3mn,'No Association' as lblnoassoc,'Building Name / Flat No:' as label38,upper(Field30_5) as flatno,'How Often Does the Owner Visit the Property' as label39,upper(Field20_5) as howoften,'Any Dispute on the Ownership of the Property' as label39,(case when upper(Field20_6)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgt3,'Yes' as lbldisyes,(case when upper(Field20_6)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdisno,'No' as lbldisno,'How Many Years is the Property Owner Staying in the Property' as label40,upper(Field20_7) as stay,'Details Checked Neighbor / Society Office (Any Negative Comment) (Mandatory)' as label41,(case when upper(Field30_9)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneigyes,'Yes' as lblneighyes,(case when upper(Field30_9)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkneighno,'No' as lblneighno,'Name of Neighbor / Society Office With Whom Details is Checked' as label42,Fieldtext_1 as neighrem,'Outcome' as label43,(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatpos,'Recommended' as lblstatpos,(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatref,'Refer' as lblstatref,(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatneg,'Not Recommended' as lblstatneg,'Tick Appropriate Reason Below:' as label44,'No Such Property' as label45,'A' as label46,(case when negreason='No Such Property' then 'images/blackcheck.png' else 'images/blankcell.png' end) as nsprop,'Property is Non-Housing For Housing' as label47,'F' as label48,(case when negreason='Property is Non-Housing for Housing' then 'images/blackcheck.png' else 'images/blankcell.png' end) as nonhousing,'Property Outside Geo Limits' as label49,'K' as label50,(case when negreason='Property Outside Geo Limits' then 'images/blackcheck.png' else 'images/blankcell.png' end) as propocl,'Address Not Traceable' as label50,'B' as label51,(case when negreason='Address Not Traceable' then 'images/blackcheck.png' else 'images/blankcell.png' end) as adrnotrace,'No Construction Activity Seen' as label52,'G' as label53,(case when negreason='No Construction Activity Seen' then 'images/blackcheck.png' else 'images/blankcell.png' end) as noconact,'Surrounded by Barren Land / Un-Habitated Area / Dumping Ground' as label54,'L' as label55,(case when negreason='Surrounded by Barren Land / Un-Habitated Area' then 'images/blackcheck.png' else 'images/blankcell.png' end) as sourbybarren,'Owner of Property is Different in BT / Self Construction / Lap Cases' as label56,'C' as label57,(case when negreason='Owner of Property is Different in BT' then 'images/blackcheck.png' else 'images/blankcell.png' end) as owndiff,'Construction Stopped For Under Construction Property' as label58,'H' as label59,(case when negreason='Construction Stopped For Under Construction Property' then 'images/blackcheck.png' else 'images/blankcell.png' end) as consstop,'Surrounded By Slums / Factory / Godown / Graveyard' as label60,'M' as label61,(case when negreason='Surrounded by Slums / Factory / Godown' then 'images/blackcheck.png' else 'images/blankcell.png' end) as consgodown,'Hypothecation of Other Banks' as label62,'D' as label63,(case when negreason='Hypothecation of Other Banks' then 'images/blackcheck.png' else 'images/blankcell.png' end) as neghypoth,'Negative Area' as label62,'I' as label63,(case when negreason='Negative Area' then 'images/blackcheck.png' else 'images/blankcell.png' end) as negnegarea,'Entire Building is Unoccupied' as label64,'N' as label65,(case when negreason='Entire Building is Unoccupied' then 'images/blackcheck.png' else 'images/blankcell.png' end) as negentbuild,'Demarcation of Property Unavailable' as label66,'E' as label67,(case when negreason='Demarcation of Property Unavailable' then 'images/blackcheck.png' else 'images/blankcell.png' end) as negdemocra,'No Access Road / Kuchha Road' as label68,'J' as label69,(case when negreason='Non Access Road / Kuchha Road' then 'images/blackcheck.png' else 'images/blankcell.png' end) as negnoaccess,'Negative Neighbor Reference' as label70,'O' as label71,(case when negreason='Non Access Road / Kuchha Road' then 'images/blackcheck.png' else 'images/blankcell.png' end) as negnegneigh,'Any Other Reason / Details' as label72,upper(remarks) as remarks,'Verifier''s Name and Signature' as label73,'Agency Seal' as label74,'Agency Manager''s / Branch Officials' as label75,upper(pvername) as pvername,'' as bcelll,'Name and Signature' as label76,(mvcode||'-'||applno||'-'||customername||'-PROP-'||status) as bcode,'images/signs/'||sdoneby||(case when compcode='mcrc' then '' else compcode end)||'.png' as sign,upper(portsupervisor) as portsupervisor,upper(status) as watermark,(case when portfolio_id=13 and (upper(product)='HL' or upper(product)='HOME LOAN') then 'PHOTOS' when portfolio_id=125 then 'PHOTOS' else '{SK!PTH15D@TA}' end),(case when (portfolio_id=13 and (upper(product)='HL' or upper(product)='HOME LOAN')) or portfolio_id=125 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''P'' and uuid='''||p.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_property p where (val0) val1
Query204!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'CONTACT POING VERIFICATION-RESIDENCE' as title,'Date & Time of CPV' as labledtcp,visitdate,'Relationship Officer''s Name' as lablereloff,upper(rvername) as rvername,'Branch Name' as lblbrnname,upper(bkbranchname) as branchname1,'Application Number' as lblapplno,upper(applno) as applno1,'Name of the applicant' as labelname,upper(customername) as customername3,'Father''s Name' as lablfathname,upper(fathername) as fathername,'Residence address' as lblraddr,upper(raddr) as raddrr,'Residence address verified Mention address as verified' as lblresver,upper(addrconfd) as addrconfd,'Person Met (Name)' as lblmetpers,upper(metperson) as metperson,'Relationship to the Business' as lblmrel,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Phone number' as lblphno,rphone,'Mobile number' as lblmobno,mobileno,'No of years in Residence' as lblnores,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end))) as stay,'If Stay at Residence less than 2 years, then Previouse Address' as lblifless,upper(Field250_3) as prevaddr,'Whether applicant has taken a housing loan' as lblwhettkn,upper(Field30_4) as wtkn,'Residence Status' as lblrstatus,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'' as blank1,'If rented, rent paid is: '||coalesce(upper(Field30_2),'NA') as ifrented,'Does the applicant have any other property in city' as lbldoespphave,upper(Field30_1) as dapphave,'Permanent / Parental Address' as lblpparaddr,upper(permadd) as permadd,'Type of Family' as lblftype,upper(Field30_5) as ftype,'No of family members' as lblfmem,totmem,'No of dependents' lblnodep,dependent,'Vehicle owned' as lblvown,'Vehicle Type (4w/2w/Commercial/Others)' as hdvtype,'Make' as hdmake,'Registration No' as hdmake,'' as bcell,upper(Field30_6) as vtype1,upper(Field30_7) as make1,upper(Field30_8) as regno1,'' as bcell2,upper(Field30_10) as vtype2,upper(Field30_11) as make2,upper(Field30_12) as regno2,'' as bcell3,upper(Field30_13) as vtype3,upper(Field30_14) as make3,upper(Field30_15) as regno3,'' as bcell4,'' as bcell5,'' as bcell6,'OBSERVATIONS' as lblobsec,'Locating address' as lbllocadd,upper(raccess) as raccess,'Landmarks' as lbllndmrk,upper(Field50_1) as landmrk,'Approx age of the person met' as lblappxage,upper(Field30_16) as mpapxage,'Name verified from' as lblnvfrm,upper(Field30_17) as nverfrm,'Locality' as lbllocality,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Locality type' as lbllocatype,upper(Field50_2) as locatype,'Type of Residence' as lblrtype,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Size of Residence' as lblrsize,upper(Field30_18) as reszie,'Furnishing' as lblfurnishing,upper(interior) as interior,'Durables Visible' as lbldvisible,upper(Field150_2) as dvisible,'Existing Customer of BAFL (if Yes, then details)' as lblextcust,upper(Field150_3) as extcust,'Loans/ Liabilities' as lblllib,'.If Yes' as lblllibyes,'' bcell7,'Asset' as lblasst,'Loan amt' as lblloanamt,'MOB/Tenor' as lblmtenor,'EMI' as lblemi,'Financier' as lblfinancer,'' as bcell8,upper(Field30_19) as asst1,upper(Field30_20) as lamt1,upper(Field30_21) as mtnr1,upper(Field30_22) as emi1,upper(Field30_23) as financer1,'' as bcell9,upper(Field30_24) as aset2,upper(Field30_25) as lamt2,upper(Field50_3) as mntr2,upper(Field50_4) as emi2,upper(Field50_5) as financer2,'' as lblloancell1,'' as lblloancell2,'' as lblloancell3,'' as lblloancell14,'' as lblloancell5,'' as lblloancell6,'' as lblloancell7,'' as lblloancell8,'' as lblloancell9,'' as lblloancell10,'' as lblloancel111,'' as lblloancell12,'Other earning members in the family' as lblothearmem,'Name' as lbloemname,'Reln-ship' as asoemrel,'Source' asoemsource,'Verified thru' as oemvthru,'Monthly Amt' as oemmnthamt,'' as oembcell1,upper(Field50_6) as oememem1,upper(Field50_7) as oemrel1,upper(Field50_8) as oelsource1,upper(Field50_9) as oemvthru1,upper(Field50_10) as oemmnthamt1,'' as oembcell2,upper(Field50_11) as oememem2,upper(Field50_12) as oemrel2,upper(Field50_13) as oemsource2,upper(Field50_14) as oemvthru2,upper(Field50_15) as oemmnthamt2,'' as oembcell3,'' as oememem3,'' as oemrel3,'' as oemsource3,'' as oemvthru3,'' as oemnthamt3,'' as oembcell4,'' as oembcell4,'' as oembcell6,'' as oembcell7,'' as oembcell8,'' as oembcell9,'Neighborhood Feedback' as lblnfed,upper(field30_9) as neighred,'Accessibility/ Approachability' as lblaproch,upper(accmode) as accmode,'If the address is different than application form, the revised address is' as lblifaddchange,upper(correctaddr) as correctaddr,'Document Seen: ID prf/ Address prf' as lbldproof,upper(proofdet) as resproof,'Any other concerning issues noticed' as lblconissue,upper(Field250_1) as anyconissue,'CPV observations:' as lblcpvobserv,upper(verremarks) as verremarks,'ROAD MAP (from FICCL branch to applicant''s Residence) Please create a ROAD MAP' as lblroadmap,upper(Field250_2) as roadmap,'CPV Result' as lblcpvres,upper(status) as status,'Done By' as lbldoneby,upper(reportdoneby) as reportdoneby,'Date & time' as lbldonetime,to_char(sdoneon,'DD/MM/YYYY HH:MI:SS') as sdoneon,'Reviewed By' as lblrevby,upper(reportdoneby) as reviedby,'Reviewer''s Comment:' as lblsupcomm,upper(remarks) as remarks,'images/signs/'||supervisor||'.png' as signature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode from banklist_main_residence r where (val0) val1
Query205!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'CONTACT POINT VERIFICATION - OFFICE' as lbltitle,'Date & Time of CPV' as lbldtvisit,visitdate,'Relationship Officer''s Name' as lblrelofname,upper(overname),'Branch code and name' as lblbcode,upper(bkbranchname) as bkbranchname1,'Loan in the name of' as lbllinname,upper(product) as product1,'Application Number' as lblapplno,upper(applno) as applno1,'Name of the applicant' as lblapname,upper(customername) as customername1,'Business address verified Mention address as verified' as lblbsconfd,upper(addrconfd) as addrconfd,'Person Met (Name)' as lblmetperson,upper(metperson) as metperson,'Relationship to the Business' as lblrel,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end ) as metreal,'Name of the Business' as lblcompname,upper(companyname) as companyn,'Phone number and mobile number' as lblphone,coalesce(upper(ophone)||'/','')||coalesce(mobileno,'') as contno,'Any other Branch/Godown address: (if yes, mention the address)' as lblbgodown,(case when upper(Field30_1)='YES' then upper(Field150_1) else upper(Field30_1) end) as godownaddr,'Office ownership' as lblowner,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'If rented, rent paid is' as lblrented,upper(Field30_2) as rented,'Type of Organisation' as lblorgtype,upper(busitype) as busitype,'If partnership or limited, No of partners/Directors' as lblnopart,upper(Field30_3) as nopartner,'Type of Business Activity' as lblacttype,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof,'Nature of Business/activity (i.e Garments trading, Govt contractor etc)' as lblbznature,upper(proddealt) as proddealt,'No of years in Business' as lblnoyrs,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'If less than 2 years , then earlier occupation and number of years in same' as lblles1year,upper(prevjobdet) as prevjobdet,'Is the organization covered under PF/ESI etc' as lblesi,upper(Field30_6) as pfesi,'Office address' as lbloaddr,upper(oaddr) as oaddr1,'Ownership of Office' as lblowner,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownershi1,'No of years at Office' as lblnoyrsoff,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob1,'Number of family members' as lbltotfam,'NA','Vehicle owned' as lblvown,'Vehicle Type (4w/2w/Commercial/Others)' as lblvehtype,'Make' as lblmake,'Registration No' as lblregno,'' as bcell1,upper(Field30_7) as vehown1,upper(Field30_8) as vehtype1,upper(Field30_10) as regno1,'' as bcell2,upper(Field30_11) as vehown2,upper(Field30_12) as vehtype2,upper(Field30_13) as regno2,'' as bcell2,upper(Field30_14) as vehown3,upper(Field30_15) as vehtype3,upper(Field30_16) as regno3,'Loans Taken' as lblltaken,'Asset' as lblasst,'Loan amount' as lbllamt,'Tenor' as lbltenor,'EMI' as lblemi,'Financier Name' as lblfinancer,'' as bcell4,upper(Field30_17) as asset1,upper(Field30_18) as loanamt1,upper(Field30_19) as tenor1,upper(Field30_20) as emi1,upper(Field30_21) as financer1,'' as bcell5,upper(Field30_22) as asset2,upper(Field30_23) as loanamt2,upper(Field30_24) as tenor2,upper(Field30_25) as emi2,upper(Field50_1) as financer2,'' as bcell6,'' as asset3,'' as loanamt3,'' as tenor3,'' as emi3,'' as financer3,'' as bcell7,'' as asset4,'' as loanamt4,'' as tenor4,'' as emi4,'' as financer4,'End use of the loan' as lbleuloan,upper(Field50_2) as euloan,'' as bcell8,'OBSERVATION' as lblobserv,'Land mark near the office - Please specify the land mark' lbllmarks,'NA' as landmark,'Type of office building' as lblbtype,'' as buildtype,'Locating address (from office) will be' as lblloc,upper(easeloc) as easeloc,'Number of employees' as obltotemp,totemp,'Type of office' as lbloftype,upper(busitype) as orgtype,'Size of office (as compared to the same business type in the existing market)' as lbloffsize,upper(Field50_3) as carparea,'Locality' as lblocality,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end ) as locality,'Locality type' as lblloctype,upper(Field50_4) as localitytype,'Visibility' as lblvisib,upper(Field50_5) as visibility,'Automation level' as lblatulevel,upper(Field150_2) as lblautlevel,'Office furnishing' as lblfurnishing,upper(Field150_2) as furnishing,'Level of activity - Please explain the type of traffic and what you observed' as lblactlevel,upper(busiact) as busiact,'Stock ( This is business dependent )' as lblstock,upper(stockdet) as stockdet,'Appearance of stock' as lblappstock,upper(Field50_7) as appstock,'Peak Business hours' as lblpbusi,upper(Field50_8) as pbusihour,'Market Holiday (Mention the day)' as lblmholiday,upper(Field50_9) as mholiday,'Business dealings (as seen)' as lblbdealseen,upper(Field50_10) as bdealseen,'Accessibility/ Approachability' lblacces,upper(easeloc) as easeloc,'Market reputation as per neighbourhood feedback' as lblmrepo,upper(Field50_11) as mrepo,'Additional source of income' as lblothsource,upper(othsource) as othsource,'Restricted Profile(Self/Business Associates/family)' as lblrestprof,upper(Field50_13) as restprofile,'Any other concerning issues noticed' as lblanyothres,upper(Field150_3) as anyothres,'CPV observations: Also describe owner activity, employer activity seen' as lblcpvobs,upper(verremarks) as verremarks,'ROAD MAP (from FICCL branch to applicant''s office)' as lblroadmap,upper(Field150_4) as roadmap,'CPV Result' as lblcpvstat,upper(status) as status,'Done By' as lbldonby,upper(reportdoneby) as repdoneby,'Date & time' as lbldttime,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Reviewed By' as lblrevby,upper(reportdoneby) as revby,'Reviewer''s Comment:' as lblrevcomm,upper(remarks) as remarks,'images/signs/'||sdoneby||(case when portfolio_id=85 then 'arvee' else '' end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode from banklist_main_office o where (val0) val1
Query206!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(upper(aliasname)||' ('||coalesce(upper(bkbranchname))||')') as title,'EXTERNAL VERIFICATION REPORT - RESIDENCE' as title1,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,'MATRIX DEBT RECOVERY SERVICES PVT LTD' as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,upper(raddr) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'images/signs/'||sdoneby||'mdrs.png' as singature1,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Supervisor: '||upper(sdonebyname) as sdonebyname,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Scanned By' as label47,portsupervisor,'Reason for negative' as blank1,'Residence Cum Office' as label48,'A' as label49,'Defaulter/Bad market reputation' as label50,'G' as label51,'images/signs/'||sdoneby||'mdrs.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode,'Non target Area' as label51,'B' as label52,'Person does not exist' as label53,'H' as label54,'Outside Geographical Limits' as label55,'C' as label56,'Address not traceable/does not exist' as label57,'I' as label58,'Applicant of Family member not met' as label59,'D' as label60,'Detail mismatch' as label61,'J' as label62,'Door Locked' as label63,'E' as label64,'Negative neighbourhood check' as label65,'K' as label66,'Poor living conditions' as label67,'F' as lbl33,'Any other reason(not covered by above)' as label68,'L' as label69,'Shared/Bachelor Accomodtion (Applicable for Credit Card only)' as label70,'M' as label71,'Supervisor: '||upper(sdonebyname) as sdonebyname1,'Agency Verifier' as label45,'Agency Supervisor' as label46,'MATRIX DEBT RECOVERY SERVICES PVT LTD' as maincomp,upper(rvername),upper(portsupervisor),upper(status) as blank3 from banklist_main_residence r where (val0) val1
Query207!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(upper(aliasname)||' ('||coalesce(upper(bkbranchname))||')') as title,'EXTERNAL VERIFICATION REPORT - BUSINESS' as title1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,upper(oaddr) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as nmverfrm,'images/signs/'||sdoneby||'mdrs.png' as singature1,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as sdonebyname,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'Reason for negative' as blank2,'A' as label39,'Residence Cum Office' as label40,'G' as label41,'Detail Mismatch' as label43,'images/signs/'||sdoneby||'mdrs.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'B' as label44,'Non Target Area' as label45,'H' as label46,'Designation Incorrect' as label47,'C' as label48,'Outsite Geographical Limits' as label49,'I' as label50,'No Business Activity' as label51,'D' as label52,'Entry Not Allowed' as label53,'J' as label54,'Negative Neighbour Check' as label55,'E' as label56,'Address Not Traceable' as label57,'K' as label58,'Defaulter/Bad Market Reputation' as label59,'F' as label60,'Applicant Does Not Work Here' as label61,'L' as label62,'Any Other Reason' as label63,'' as blk4,'Scanned by: '||upper(sdonebyname) as sdonebyname1,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,'MATRIX DEBT RECOVERY SERVICES PVT LTD' as maincomp,overname,upper(portsupervisor),upper(status) as blk6 from banklist_main_office o where (val0) val1
Query208!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case when (upper(bkbranchname)='PREET VIHAR' or upper(bkbranchname)='RAJENDRA PLACE' or upper(bkbranchname)='FARIDABAD') and portfolio_id=12 then 'TCFSL - ' when (upper(bkbranchname) <> 'PREET VIHAR' and upper(bkbranchname) <> 'RAJENDRA PLACE' and upper(bkbranchname) <> 'FARIDABAD') and portfolio_id=12 then 'TCHFL - ' when (portfolio_id=117 and product <> 'LAP') then 'KAPITAL TECH' when (portfolio_id=173) then 'AU SMALL FINANCE BANK LIMITED' when (portfolio_id=188) then 'L AND T PL' else upper(name) end)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,(case portfolio_id when 117 then 'Product' else 'Agency Name' end) as label2,(case compcode when 'arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' ELSE upper(maincompany) END) as mcomps,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,upper(raddr1)||' '||coalesce(upper(raddr2)||' ','')||coalesce(upper(raddr3)||' ','') as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(coalesce(visitdate,'')||' '||coalesce(upper(visittime),'')) as visitdate,'Father Name',upper(fathname),'Contact No ',trim(coalesce(mobileno,'')||coalesce(' '||phoneno,'')||coalesce(' '||rphone,'')) as phoneno,'Reference Name',upper(field150_4),'' as blanksl1,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is not null and length(dob) > 5 then dob else age end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'' as blanksl2,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Name Plate Seen' as lblnplate,upper(nameplate) as nameplate,'Residence Address Proof' as lblresproof,(case when upper(proof)='YES' then 'YES - '||upper(proofdet) else upper(proof) end) as proofdet, 'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)||' ADDRESS PROOF : '||upper(proofdet)) as verrem,'' as blanksl3,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'' as pagebreak,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Scanned By' as label47,sdonebyname,'' as blank2,'Agency Verifier' as label45,'Agency Supervisor' as label46,(case compcode when 'arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' ELSE upper(maincompany) END) as mcomp,(CASE WHEN portfolio_id=25 THEN rvercode ELSE upper(rvername) END) as rvername,upper(portsupervisor),'' as blank3,'' as blank4,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'images/signs/'||sdoneby||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,(case when portfolio_id=192 or portfolio_id=25 or portfolio_id=185 or portfolio_id=12 or portfolio_id=143 or portfolio_id=76 or portfolio_id=117 or portfolio_id=123 or portfolio_id=167 or portfolio_id=127 or portfolio_id=158 or portfolio_id=173 or portfolio_id=176 or portfolio_id=177 or portfolio_id=187 or portfolio_id=188 or portfolio_id=190 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query209!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,(case when portfolio_id=187 then upper(contactperson) else upper(customername) end) cname,bank_branch_id,(case when (upper(bkbranchname)='PREET VIHAR' or upper(bkbranchname)='RAJENDRA PLACE' or upper(bkbranchname)='FARIDABAD') and portfolio_id=12 then 'TCFSL - ' when (upper(bkbranchname) <> 'PREET VIHAR' and upper(bkbranchname) <> 'RAJENDRA PLACE' and upper(bkbranchname) <> 'FARIDABAD') and portfolio_id=12 then 'TCHFL - ' when (portfolio_id=117 and product <> 'LAP') then 'KAPITAL TECH' when (portfolio_id=173) then 'AU SMALL FINANCE BANK LIMITED' when (portfolio_id=188) then 'L AND T PL' else upper(name) end)||'-OFFICE' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,coalesce(companyname||' ','')||upper(oaddr1)||' '||coalesce(upper(oaddr2)||' ','')||coalesce(upper(oaddr3)||' ','') as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,coalesce(visitdate,'')||' '||coalesce(visittime,'') as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as nmverfrm,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Business Board Seen' as lblbboard,upper(bizboard),'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'' as pbreak,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Scanned By' as label38,upper(sdonebyname) as scannedby,'' as blk4,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,(case compcode when 'arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' ELSE upper(maincompany) END) as maincomp,(CASE WHEN portfolio_id=25 THEN overcode ELSE upper(overname) END) as overname,upper(portsupervisor),'' as blk5,'' as blk6,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'images/signs/'||sdoneby||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,(case when portfolio_id=192 or portfolio_id=25 or portfolio_id=185 or portfolio_id=12 or portfolio_id=143 or portfolio_id=167 or portfolio_id=76 or portfolio_id=117 or portfolio_id=123 or portfolio_id=127 or portfolio_id=158 or portfolio_id=173 or portfolio_id=176 or portfolio_id=177 or portfolio_id=187 or portfolio_id=188 or portfolio_id=190 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query210!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as receivedate,applno,upper(customername) cname,bank_branch_id,'DDUP Report' as label1,(case when (upper(bkbranchname)='PREET VIHAR' or upper(bkbranchname)='RAJENDRA PLACE' or upper(bkbranchname)='FARIDABAD') and portfolio_id=12 then 'TCFSL - ' when (upper(bkbranchname) <> 'PREET VIHAR' and upper(bkbranchname) <> 'RAJENDRA PLACE' and upper(bkbranchname) <> 'FARIDABAD') and portfolio_id=12 then 'TCHFL - ' when (portfolio_id=117 and product <> 'LAP') then 'KAPITAL TECH' else upper(name) end) as portname,to_char(receivedate,'dd/MM/yyyy') as receivedate,applno,customername,'' as blankcol1,'' as blank1,(case when earlier='Y' then earremarks else 'NO EARLIER MATCH FOUND' end) as earremarks,'' as blank2,(case when negative='Y' then negremarks else 'NO NEGATIVE MATCH FOUND' end) as negremarks,(case when negative='Y' then 'STATUS: NEGATIVE' else '' end) as label3,'' as blankcol2,'End of Report' as label4,to_char(deduperunon,'HH24:MI:SS') as dedtime,'Supervisor Name' as label5,'Agency Seal' as label6,'QR Code' as label7,portsupervisor,(case when portfolio_id=70 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as seal,mvcode||'-'||applno||'-'||customername||'-EAR-'||earlier||'-NEG-'||negative as bcode from banklist_main_dedupe d where portfolio_id not in (select portfolio_id from denied_process where process_id=13 and isdenied=1) and (val0) val1
Query211!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case when upper(product)='BL' then 'EDELWEISS' when upper(product)='ERFL' then 'ERFL' when upper(product)='ECF' then 'ECF' else 'EHFL' end)||' - RESIDENCE VERIFICATION REPORT' as label1,'Application No.' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcode1,'Product' as label4,upper(product) as product1,'Applicant''s Name' as label5,upper(customername) as customername1,'Loan Amount' as label6,upper(loanamount) as loanamount1,'Address Confirmed' as label7,upper(addrconfd) as addrconfd,'Receipt Date' as label8,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Address' as label9,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr,'Date & Time of Visit' label10,trim(coalesce(visitdate||' ','')||coalesce(visittime,'')) as visitdate,'Report Date' as label11,to_char(sdoneon,'DD/MM/YYYY') as repdate,'PERSONAL DETAILS' as label12,'Person Contacted' as label13,upper(metperson) as metperson,'Relationship' as label14,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Company/Firm Name ,Address and Designation of Applicant' as label15,upper(trim(coalesce(companyname||' ','')||coalesce(oaddr||' ','')||coalesce('Designation-'||designation,''))) as addeisg,'Date of Birth' as label16,(case when dob is null or length(dob) < 10 then (case when age is not null and age <> '0' then age||' YEARS' else 'NA' end) else dob end) as dob,'Residential Status' as label17,(case when rowner='Others' then upper(owneroth) else upper(rowner) end) as rowner,'Years in City & Years in Current Residence' as label18,'Years in City : '||coalesce(((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity <> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)),'NA')||' Years in Current Add : '|| coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Residence Within City Limits' as label19,(Case upper(isocl) when 'YES' then 'NO' else 'YES' end) as isocl,'Permanent Address & Phone No.' as label20,upper(permadd) as permadd,'Marital Status' as label23,upper(maritial) as marital,'Spouse Details' as label24,(case when maritial='Married' then upper(trim('Name : '||coalesce(spsname||' ','NA')||',Occupation : '||coalesce(spsdesign||' ','NA')||',Mobile No : '||coalesce(Field30_2,'NA'))) else 'NA' end) as spsdet,'Qualification' as label25,upper(Field30_17) as qual,'Residence Address Proof' as label26,(case upper(proof) when '-1' then 'NA' when 'YES' then 'YES - '||upper(proofdet) else 'NO' end) as proofdet,'Family Structure' as label27,upper(Field30_1) as famstruct,'No of Family Members Staying With Applicant' as label28,totmem,'No of Earning Members' as label29,earning,'Monthly Income and Details' as label30,'' as label31,'Dependents' as label32,dependent,'Existing Loan and Obligation Details' as label33,(case upper(Field30_7) when '-1' then 'NA' when 'YES' then upper(Field50_4)||',EMI-'||upper(Field30_8) else 'NO' end) as extloan,'Existing Vehicle Details' as label34,upper(Field30_6) as extveh,'Vehicle Reg. No.' as label35,'' as regno,'Free/Finance Details' as label36,'' as financer,'Other Loan Obligations' as label37,'' as othloan,'' as label38,'OBSERVATIONS' as label39,'Type of Residence' as label40,(case when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Locality' as label41,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Area (in Sqft.)' as label42,upper(carpetarea) as carpetarea,'Society Board Seen' as label43,upper(socboard),'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Accessibility & Distance from Bank' as label44,upper(raccess) as raccess,'Within City Limits' as label45,(Case upper(isocl) when 'YES' then 'NO' else 'YES' end) as isocl1,'Construction of House' as label46,(case upper(construction) when '-1' then 'NA' when 'OTHERS' then upper(constoth) else upper(construction) end) as construction,'Residence Entrance Motorable' as label47,upper(accmode) as accmode,'Prominent Landmark' as label48,upper(Field50_2) as plandmark,'Name Plate' as label49,(case upper(nameplate) when '-1' then 'NA' when 'YES' then upper(nameplate||' - '||platedet) else 'NO' end) as nameplate,'Furnishing Details' as label50,upper(interior) as interior,'Car Park' as label51,'' as carpark,'Residence Exterior Details' as label52,(case when upper(Field30_4)='-1' then 'NA' else upper(Field30_4) end) as exterior,'Type of Flooring' as label53,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as flooring,'Type of Roofing' as label54,(case when Field30_11='-1' then 'NA' else upper(Field30_11) end) as roofing,'No of Rooms and Approximate Size' as label55,upper(Field50_6) as roomsize,'Assets Seen' as label56,upper(Field150_1) as assetseen,'Standard of Living' as lablstandard,upper(furlevel) as furlevel,'Entry Permitted' as label57,'' as eperm,'Display of Any Political Party Affiliation Seen' as label58,upper(coalesce(political,'')||(case when upper(political)='YES' then coalesce(' - '||politicdet,'') else '' end)) as poldet,'Route Map' as label59,upper(Field150_3) as routemap,'' as linebreak,'NEIGHBOUR FEEDBACK' as lblnfeed,'Neigh. Check' as label60,'Neighbor-1' as label61,'Neighbor-2' as label62,'1. Name & Address' as label63,upper(Field50_3) as neigh1,upper(Field50_8) as neigh2,'Does Applicant Stay at Given Address' as label63,(case when Field50_1='-1' then 'NA' else upper(Field50_1) end) as appstay1,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as appstay2,'No of Years Applicant Been Staying' as label64,upper(Field30_3) as noyrs1,upper(Field30_5) as noyrs2,'Ownership Status' as label65,(case when Field30_12='-1' then 'NA' else upper(Field30_12) end) as owner1,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as owner2,'OTHERS DETAILS' as label66,'Concerns if Any and Details' as label67,upper(alertrem) as alertrem,'Verifier''s Remarks' as label68,upper(verremarks) as verremarks,'SUPERVISOR''S COMMENT' as label69,'Remarks' as label70,upper(remarks) as remarks,'Final Status' as label71,upper(status) as status,'Supervisor''s Name & Signature' as label73,upper(reportdoneby) as reportdoneby,'Verifier''s Name & Signature' as label72,'Agency Seal' as label74,'' as nblnk1,upper(rvername) as rvername,'images/signs/'||sdoneby||(case when portfolio_id=85 then 'arvee' else '' end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,(case when portfolio_id=13 and (upper(product)='HL' or upper(product)='HOME LOAN') then 'PHOTOS' else '{SK!PTH15D@TA}' end),(case when portfolio_id=13 and (upper(product)='HL' or upper(product)='HOME LOAN') then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query212!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case when upper(product)='BL' then 'EDELWEISS' when upper(product)='ERFL' then 'ERFL' when upper(product)='ECF' then 'ECF' else 'EHFL' end)||' - OFFICE VERIFICATION REPORT' as label1,'Application No.' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcode1,'Product' as label4,upper(product) as product1,'Applicant''s Name' as label5,upper(customername) as customername1,'Co-Applicant''s Name (if any)' as label6,(case when upper(apptype)='APPLICANT' then coalesce(sublist('select customername as field from temp_reporting where trim(upper(applno))='''||trim(upper(o.applno))||''' and bank_branch_id='||o.bank_branch_id||' and upper(apptype) <> ''APPLICANT''',','),'NA') else 'NA' end) as coapps,'Request Receipt Date' as label7,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Report Issued Date' as label8,to_char(sdoneon,'DD/MM/YYYY') as repdate, 'Office Name, Address and Phone Number' as label9,coalesce(upper(companyname)||' ','')||(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3))||' '||coalesce('PH : '||ophone,'') as oaddr,'Date & Time of Visit' label10,trim(coalesce(visitdate||' ','')||coalesce(visittime,'')) as visitdate,'Prominent Landmark' as label11,upper(field50_1) as landmark,'Address Confirmed' as label12,upper(addrconfd) as addrconfd,'GENERAL DETAILS' as label13,'Name of Person Met' as label14,upper(metperson) as metperson,'Relationship With Applicant' as label15,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Name of the Company/Firm' as label16,upper(companyname) as companyname,'Designation/Role' as label17,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Phone Number' as label18,ophone,'Email-ID' as label19,upper(Field50_6) as emailid,'Visiting Card Collected' as label20,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as vcard,'No of Years in Biz/Job' as label21,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Type/Nature of Business' as label22,upper(busitype) as busitype,'Product Dealt' as label23,upper(proddealt) as proddealt,'No of Employees Seen' as label24,upper(Field30_4) as empseen,'Area of Office (in Sqft.)' as label25,upper(Field30_5) as carparea,'Type of Office/Business' as label26,upper(busitype) as busitype1,'Locality of Office/Business' as label27,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Common Office & Residence' as label28,(case when Field30_6='-1' then 'NA' else upper(field30_6) end) as isrco,'If Yes, Whether Distinct Entrance Available' as label29,(case when Field30_7='-1' then 'NA' else upper(field30_7) end) as distent,'Construction of Office' as label30,(case when Field30_8='-1' then 'NA' else upper(field30_8) end) as construction,'Exteriors' as label31,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as exteriors,'Interiors' as label32,upper(Field150_3) as interiros,'Business Level Activity' as label33,upper(busiact) as busiact,'Office Setup' as label34,upper(Field150_2) as offsetups,'Accessibility' as label35,upper(easeloc) as easeloc,'Route MAP' as label36,upper(Field150_1) as routemap,'SALARIED PROFILE' as label37,'Name of the Company' as label37,upper(companyname) as companynamesal,'Company Profile' as label38,upper(proddealt) as proddealtsal,'Applicant Designation' as label39,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesignsal,'Department' as label40,upper(appdept) as appdept,'Reporting To' as label41,upper(reportingto) as reportingto,'Employee Number' as label42,upper(Field30_11) as empno,'Applicant''s Job' as label43,upper(jobtype) as jobtype,'Years of Experience' as label44,((case when (yrstot<>'0' and yrstot<>'') then yrstot||' YEARS(S) ' else '' end)||(case when (mnthtot<> '0' and mnthtot<> '') then mnthtot||' MONTH(S)' else '' end)) as yrsexp,'Salary Details' as label45,upper(saldetail) as saldetail,'Transferable Job' as label46,upper(transferable) as transferable,'Total No of Employee' as label47,upper(totemp) as totemp,'Number of Branches' as label48,totbranch,'Previous Job Details If Current Job < 1 Year' as label49,upper(prevjobdet) as prevjobdet,'SELF-EMPLOYED PROFILE' as label50,'Person Met and Relationship With Business' as label51,(upper(metperson)||' ('||(case when metrela='Others' then upper(metrealoth) else upper(metrela) end)||')') as metpers1,'Nature of Business' as label52,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end) as compprof,'Business Board Seen' as label53,upper(bizboard) as bizboard,'Business Proof Verified' as label54,(case when upper(Field30_12)='-1' then 'NA' else upper(Field30_12) end) as bproof,'Business Proof Details' as label55,upper(Field50_2) as proofdet,'Business Ownership' as label56,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Business Premises' as label57,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Exteriors of the Business Premises' as label58,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as extofbus,'Interiors of the Business Premises' as label59,upper(Field150_3) as intbusse,'Total No of Employees' as label60,totemp,'Number of Employees Seen' as label61,upper(Field30_4) as empseense,'No of Customer Seen' as label62,custseen,'Average Monthly Turnover' as label65,upper(turnover) as turnover,'Stock & Machinery Details' as label66,upper(stockdet) as stockdet,'Market Holiday' as label68,(case when Field30_16='-1' then 'NA' else upper(Field30_16) end) as mkthol,'Level of Business Activity' as label69,upper(busiact) as busiact1,'Existing Vehicle Details' as label70,upper(Field50_3) as extveh,'Vehicle Reg. No.' as label71,upper(Field30_17) as regno,'Free/Finance Details' as label72,upper(Field50_5) as financer,'Other Loan Obligations' as label73,upper(Field50_4) as othloan,'Whether Affiliation to Any Political Party Visible' as label74,(case upper(political) when 'YES' then 'YES - '||upper(politicdet) when 'NO - '||upper(politicdet) then upper(political) else 'NA' end) as political,'' as pbreak,'NEIGHBOUR CHECK' as label75,'Neighbour Check 1' as label76,upper(Fieldtext_1) as neigh1,'Neighbour Check 2' as label77,upper(Fieldtext_2) as neigh2,'OTHER DETAILS' as label78,'Verifier''s Remarks' as label79,upper(verremarks) as verremarks,'Additional Income If Any and Details' as label80,upper(othsource) as othsource,'Any concerning Issue Noticed During Verification' as label81,upper(alertrem) as alertrem,'SUPERVISOR COMMENT' as label82,'Remarks' as label83,upper(remarks) as remarks,'Final Status' as label84,upper(status) as status,'Supervisor''s Name & Signature' as label73,upper(reportdoneby) as reportdoneby,'Verifier''s Name & Signature' as label72,'Agency Seal' as label74,'' as blank,upper(rvername) as rvername,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(case when portfolio_id=13 and (upper(product)='HL' or upper(product)='HOME LOAN') then 'PHOTOS' else '{SK!PTH15D@TA}' end),(case when portfolio_id=13 and (upper(product)='HL' or upper(product)='HOME LOAN') then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query213!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case when upper(product)='BL' then 'EDELWEISS' when upper(product)='ERFL' then 'ERFL' when upper(product)='ECF' then 'ECF' else 'EHFL' end)||' - CONSUMER FINANCE - TELE VERIFICATION REPORT' as label1,'Loan Product' as label2,upper(product) as product1,'Agency Name' as label3,upper(maincompany) as maincomp,'Application No' as label4,upper(applno) as applno1,'MV Code' as label5,upper(mvcode) as mvcode1,'Applicant''s Name' as label6,upper(customername) as customername1,'Loan Amount' as label7,upper(loanamount) as loanamount1,'Tenure' as label8,'' as tenure,'RESIDENCE DETAILS' as label9,'Name' as label10,upper(customername) as customername2,'Address' as label11,upper(raddr)as raddr,'Phone No.' as label12,upper(rphone) as rphone,'Mobile No.' as label13,upper(mobileno) as mobileno1,'Contacted Phone No.' as label14,upper(rcontno) as rcontno,'Date & Time of Call' as label15,(case when rstatus5='NA' then (case when rstatus4='NA' then (case when rstatus3='NA' then (case when rstatus2='NA' then coalesce(rattempt1,'')||coalesce(' '||rtime1,'') else coalesce(rattempt2,'')||coalesce(' '||rtime2,'') end) else coalesce(rattempt3,'')||coalesce(' '||rtime3,'') end) else coalesce(rattempt4,'')||coalesce(' '||rtime4,'') end) else coalesce(rattempt5,'')||coalesce(' '||rtime5,'') end) as dtofcall,'Contacted Person' as label16,upper(rcontpers) as rcontpers,'Relationship' as label17, (case when rcontrela='Others' then upper(rcontrelaoth) else upper(rcontrela) end) as rcontrela,'Residence. Address as Per Call' as label18,upper(rcorrectaddr) as rcorrectaddr,'Staying Since' as label19,((case when (rstayyrs <> '0' and rstayyrs <> '') then rstayyrs||' YEARS(S) ' else '' end)||(case when (rstaymnth<> '0' and rstaymnth <> '') then rstaymnth||' MONTH(S)' else '' end)) as stay,'Staying With' as label20,upper(rstaywith) as rstaywith,'Ownership Status' as lblowner,(case when rowner='Others' then upper(rowneroth) else upper(rowner) end) as rowner,'End Use of Loan' as label21,upper(Field50_1) as enduse,'No. of Attempt' as label22,rtotattempt,'' as blank1,'Attempt-1' as label23,'Attempt-2' as label24,'Attempt-3' as label25,'Attempt-4' as label26,'Attempt-5' as label27,'Date' as label28,rattempt1,rattempt2,rattempt3,rattempt4,rattempt5,'Time' as label28,rtime1,rtime2,rtime3,rtime4,rtime5,'Remarks' as label29,upper(rremarks) as rremarks,'TVR Status' as label30,upper(roverallstat) as rstatus,'TVR Done By-Name & Signature' as label31,upper(telecaller) as rtcaller,'OFFICE DETAILS' as label32,'Name' as label33,upper(customername) as customername3,'Address' as label34,upper(oaddr) as oaddr,'Phone No.' as label35, ophone,'Mobile No.' as label36,mobileno,'Contacted Phone No.' as label37,ocontno,'Date & time of Call' as label38, (case when ostatus5='NA' then (case when ostatus4='NA' then (case when ostatus3='NA' then (case when ostatus2='NA' then coalesce(oattempt1,'')||coalesce(' '||otime1,'') else coalesce(oattempt2,'')||coalesce(' '||otime2,'') end) else coalesce(oattempt3,'')||coalesce(' '||otime3,'') end) else coalesce(oattempt4,'')||coalesce(' '||otime4,'') end) else coalesce(oattempt5,'')||coalesce(' '||otime5,'') end) as odtofcall,'Contacted Person' as label39,upper(ocontpers) as ocontpers,'Designation/Relationship with Applicant' as label40, (case when ocontrela='Others' then upper(ocontrelaoth) else upper(ocontrela) end) as ocontrela,'Office. Address as Per Call' as label41,upper(ocorrectaddr) as ocorrectaddr,'Company Name' as label42,upper(companyname) as ocompanyname,'Nature of Biz' as label43,upper(onobdesc) as onobdesc,'Constitution' as label44,upper(oorgtype) as orgtype,'Employee Code' as label45,upper(Field30_2) as empcode,'Designation/Dept' as label46,(case when odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Biz/Job Since' as label47,((case when (oworkyrs<>'0' and oworkyrs<>'') then oworkyrs||' YEARS(S) ' else '' end)||(case when (oworkmnth<> '0' and oworkmnth <> '') then oworkmnth||' MONTH(S)' else '' end)) as yrsatjob,'Number of Employees/Workers' as label48,Field30_1,'Ownership' as label49,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as oowner,'If Salaried - Cadre' as label50,(case when Field30_10='-1' then 'NA' else upper(field30_10) end) as mgrnonmgr,'No. of Attempt' as label51,upper(oattempt) as ototattempt,'' as blank2,'Attempt-1' as label52,'Attempt-2' as label53,'Attempt-3' as label54,'Attempt-4' as label55,'Attempt-5' as label56,'Date' as label57,oattempt1,oattempt2,oattempt3,oattempt4,oattempt5,'Time' as label58,otime1,otime2,otime3,otime4,otime5,'Remarks' as label59,upper(oremarks) as oremarks,'TVR Status' as label60,upper(ooverallstat) as ostatus,'TVR Done By-Name & Signature' as label61,upper(telecaller) as otcaller,'' as pagebreak,'MTNL CD-ROM CHECK' as labelmtnlhead,'' as blanksp,'RESIDENCE' as label62,'OFFICE' as label63,'Tele. No. Exists' as label64,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as rtex,(case when field30_7='-1' then 'NA' else upper(field30_7) end) as otex,'Name' as label65,upper(field150_1) as rname1,upper(field150_2) as oname2,'Address Verified' as label66,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as rtav,(case when field30_8='-1' then 'NA' else upper(field30_8) end) as otav,'Status' as label67,(case when field30_6='-1' then 'NA' else upper(field30_6) end) as rtmstat,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as otmstat,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,upper(rvername) as rvername,upper(reportdoneby) as reportdoneby,'images/signs/'||sdoneby||(case when portfolio_id=85 then 'arvee' else '' end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OTEL-'||(case when ocontno is null or ocontno ='' then 'NI' else ooverallstat end) as obcode from banklist_main_telecalling t where (val0) val1
Query214!C0L!procedure!C0L!select trackermis('val0', 'val1', val2, val3, val4, 'val5', 'val6', 'val7', 'val8')
Query215!C0L!select!C0L!select upper(pb.aliasname)||' - REFERENCE TELE - CHECK LIST','Name of Applicant',upper(c.customername) as customername,'File No:',upper(c.applno) as applno,'Refree # 1','Name',upper(c.refname1) as refname1,'Address','Address of refree','','','','','','','Tel No.',c.refcontactno1,'Questions','1. Name of the Person Contacted','','2. How is referee related to the applicant','','3. Since how long referee is known to the applicant','','4. Does referee recommend this loan to the Applicant','','','Refree # 2','Name',upper(c.refname2) as refname2,'Address','Address of refree','','','','','','','Tel No.',c.refcontactno2,'Questions','1. Name of the Person Contacted','','2. How is referee related to the applicant','','3. Since how long referee is known to the applicant','','4. Does referee recommend this loan to the Applicant','',0 as temp from cutoff_operations c,portfolio_bank_branch pb where c.bank_branch_id=pb.portbranch_id and ((c.refname1 is not null and length(c.refname1) > 0) or (c.refname2 is not null and length(c.refname2) > 0)) and c.portfolio_id=val0 and c.islocked=val1 and c.refsheeton='val2'
Query216!C0L!update!C0L!update main_operations set islocked=val2 where cutoffby > 0 and (islocked=0 or islocked=val2) and (refsheetby is null or refsheetby=0) and company_id=val0 and branch_id=val1 and refsheet=1
Query217!C0L!select!C0L!select c.portfolio_id,(c.portname||' ('||count(*)||')') as portname,sum(c.refv) as refv,(case when c.islocked!=val2 then 1 else 0 end) as islocked,c.refsheet,(select (loginid||' ('||displayname||')') from app_user where user_id=c.islocked) as lockedby,pf.refformat as outputformat, pf.reffunction as outputfunction,0 as temp from cutoff_operations c,process_formats pf where (c.refsheetby is null or c.refsheetby=0) and c.cutoffby>0 and c.company_id=val0 and c.branch_id=val1 and c.refsheet=1 and c.refv=1 and pf.portfolio_id=c.portfolio_id group by c.portfolio_id,c.portname,c.islocked,c.refsheet,refformat,reffunction
Query218!C0L!select!C0L!select mvcode,applno,customername,apptype,refv,(case when islocked!=val2 then 1 else 0 end) as islocked,(select (loginid||' ('||displayname||')') from app_user where user_id=islocked) as lockedby,telesheet,uuid from cutoff_operations where (refsheetby is null or refsheetby=0) and cutoffby>0 and islocked=val2 and company_id=val0 and branch_id=val1 and refsheet=1 and portfolio_id=val3 and refv=1 order by applno,apptype
Query219!C0L!update!C0L!update main_operations set islocked=val0,refsheeton='val1',refsheetby=val2 where uuid='val3'
Query220!C0L!insert!C0L!insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN strpos(''val0'',''N1'') > 0 THEN 775 ELSE 871 END),''val0'',(CASE WHEN ''val30''=''R'' THEN ''REDO CPV'' ELSE ''Credit Card'' END),NULL,''val5'',''Applicant'',''-1'',NULL,NULL,NULL,''RadDrXS-val6 val7-ERadDrX'',''RadDrX1'',''RadDrX2'',''val9'',0,-1,NULL,NULL,NULL,''OadDrXS-val11 val12-EOadDrX'',''OadDrX1'',''OadDrX2'',''val14'',0,-1,NULL,''val16'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when ''val20''=''Y'' then 1 else 0 end),0,(case when ''val21''=''Y'' then 1 else 0 end),0,0,0,0,0,0,0,'''',0,0,0,NULL,''val2'',''val3'',''val8'',NULL,NULL,''val13'',NULL,NULL,val31,val32,0,''val33'',''val34'','''')
Query221!C0L!insert!C0L!Insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,onlinecaseid,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',571,''val1'',(case upper(''val17'') when ''AXIS BANK MY ZONE CREDIT CARD'' then ''My Zone'' when ''AXIS BANK MY CHOICE CREDIT CARD'' then ''My Choice'' when ''AXIS BANK SIGNATURE CARD'' then ''Signature'' when ''AXIS BANK TITANIUM CREDIT CARD'' then ''Titanium'' when ''AXIS BANK MY WINGS CREDIT CARD'' then ''My Wings'' when ''AXIS BANK MILES & MORE WORLD CREDIT CARD'' then ''Miles & More World'' when ''AXIS BANK MY BUSINESS CREDIT CARD'' then ''My Business'' else ''Visa Platinum'' end),NULL,''val2'',''Applicant'',''-1'',NULL,NULL,''val12'',''RadDrXS-val3 val4 val5-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val10'',''val6'',''OadDrXS-val7 val8 val9-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,''val11'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(Case when ''val13''=''RV'' or ''val13''=''F'' or ''val13''=''RT'' or ''val13''=''RR'' or ''val13''=''FR'' or ''val13''=''RV+BV'' or ''val13''=''RV+BTV'' or ''val13''=''RV+BV+BTV'' then 1 else 0 end),(case when ''val13''=''RTV'' or ''val13''=''F'' or ''val13''=''RT'' or ''val13''=''BT'' or ''val13''=''RR'' or ''val13''=''FR'' or ''val13''=''T'' or ''val13''=''BV+RTV'' then 1 else 0 end),(case when ''val13''=''BV'' or ''val13''=''F'' or ''val13''=''BT'' or ''val13''=''FR'' or ''val13''=''RV+BV'' or ''val13''=''RV+BV+BTV'' or ''val13''=''BV+BTV'' or ''val13''=''BV+RTV'' then 1 else 0 end),(case when ''val13''=''BTV'' or ''val13''=''F'' or ''val13''=''RT'' or ''val13''=''BTV'' or ''val13''=''T'' or ''val13''=''RV+BTV'' or ''val13''=''RV+BV+BTV'' or ''val13''=''BV+BTV'' or ''val13''=''BT'' then 1 else 0 end),0,0,0,0,0,0,'''',0,0,0,NULL,(Case when ''val13''=''RV'' or ''val13''=''F'' or ''val13''=''RT'' or ''val13''=''RR'' or ''val13''=''FR'' or ''val13''=''RV+BV'' or ''val13''=''RV+BTV'' or ''val13''=''RV+BV+BTV'' then ''val4'' else ''val8'' end),''val13'',(Case when ''val13''=''RV'' or ''val13''=''F'' or ''val13''=''RT'' or ''val13''=''RR'' or ''val13''=''FR'' or ''val13''=''RV+BV'' or ''val13''=''RV+BTV'' or ''val13''=''RV+BV+BTV'' then ''val5'' else ''val9'' end),''val14'',''val15'',''val0'',NULL,''val0'',val18,val19,0,''val20'',''val21'','''')
Query222!C0L!insert!C0L!Insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',774,''val0'',''val3'',NULL,''val4'',''Applicant'',''val2'',NULL,NULL,NULL,(CASE WHEN length(''val5'') > 2 THEN ''RadDrXS-val5-ERadDrX'' ELSE NULL END),(CASE WHEN length(''val5'') > 2 THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN length(''val5'') > 2 THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN length(''val10'') = ''1'' THEN ''val6'' ELSE NULL END),0,-1,NULL,NULL,(CASE WHEN length(''val11'') = ''1'' THEN ''val7'' ELSE NULL END),(CASE WHEN length(''val8'') > 2 THEN ''OadDrXS-val8-EOadDrX'' ELSE NULL END),(CASE WHEN length(''val8'') > 2 THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN length(''val8'') > 2 THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN length(''val11'') = ''1'' THEN ''val9'' ELSE NULL END),0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,''val10'',0,''val11'',0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val12,val13,0,''val14'',''val15'','''')
Query223!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'/images/port/'||portfolio_id||'.png' as logo,'MERCHANT PRE-SIGN UP RISK REPORT' as lbltitle,'MERCHANT ESTABLISHMENT SITE VERIFICATION REPORT' as lblhead,'Establishment Name:' as lblestbname,upper(customername) as custname1,'App.ref.#:' as lblrefno,upper(applno) as applno1,'' as blankcell,'Trading Name (Known As):' as lbltrdname,upper(companyname) as compname1,'' as blankcell1,'Contact Person:' as lblcperson,upper(contactperson) as contactperson1,'Tel #:' as lbltelno,(((case when ophone is not null and length(trim(ophone)) > 0 then ophone||'/' else '' end))||coalesce(mobileno,'')) as telno,'' as blankcell3,'Person Met:' as lblperosnmet,coalesce(upper(metperson),'') as metperson,'Designation' as lbldesign,(coalesce(case when upper(metrela)='OTHERS' then ' ('||upper(metrealoth)||')' else ' ('||upper(metrela)||')' end)) as appdesign,'' as blankcell4,'Address' as lbladdress,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||coalesce(upper(oaddr3),'')) as oaddr,'' as blankcell5,'' as blankrow1,'City:' as lblcity,(case when ocity <> '-1' then upper(ocity) else 'NA' end) as city,'Pin Code:' as lblpincode,(case when opincode <> '111111' then opincode else '' end) as opincode,'' as blankcell6,'' as blankrow2,'Locality' as lbllocality,(case when locality='Posh' then 'images/tick.gif' else 'images/untick.jpg' end) as chkposh,'Posh' as lblposh,(case when locality='Commercial' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcommercial,'Commercial' as lblcommercial,(case when locality='Residential' then 'images/tick.gif' else 'images/untick.jpg' end) as chkresidential,'Residential' as lblresidential,(case when locality='Highway' then 'images/tick.gif' else 'images/untick.jpg' end) as chkhighway,'Highway' as lblhighway,(case when locality='Remote' then 'images/tick.gif' else 'images/untick.jpg' end) as chkremote,'Remote' as chkremote,'' as blankcell7,(case when locality='Sensitive' then 'images/tick.gif' else 'images/untick.jpg' end) as chkSensitive,'Sensitive' as lblSensitive,(case when locality='Slum/Chawl' then 'images/tick.gif' else 'images/untick.jpg' end) as chkSlum,'Slum' as lblSlum,(case when locality='Shopping Center' or locality='Running Shop' or locality='Gala Type' then 'images/tick.gif' else 'images/untick.jpg' end) as chkOthers,'Others' as lblOthers,'Appearance:' as lblappearance,(case when Field30_1='Shabby' then 'images/tick.gif' else 'images/untick.jpg' end) as chkShabby,'Shabby' as lblShabby,(case when Field30_1='Unfurnished' then 'images/tick.gif' else 'images/untick.jpg' end) as chkUnfurnished,'Unfurnished' as lblUnfurnished,(case when Field30_1='Semi Furnished' then 'images/tick.gif' else 'images/untick.jpg' end) as chkSemifurnished,'Semifurnished' as lblSemifurnished,(case when Field30_1='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkGoodapp,'Good' as lblGoodapp,(case when Field30_1='Excellent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkExcellentapp,'Excellent' as lblExcellentapp,'Nature of Goods Sold/Business:' as lblnob,upper(proddealt) as proddealt,'' as blankcell8,'Stock level:' as lblstocklevel,(case when Field30_2='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkLowstk,'Low' as lblLowstk,(case when Field30_2='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkAveragestk,'Average' as lblAveragestk,(case when Field30_2='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkGoodstk,'Good' as lblGoodstk,(case when Field30_2='Very Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvgoodstock,'Very Good' as lblVGoodstk,'Activity Observed:' as lblactivytobs,(case when busiact='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chkLowact,'Low' as lblLowact,(case when busiact='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkAverageact,'Average' as lblAverageact,(case when busiact='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkGoodact,'Good' as lblGoodact,'images/untick.jpg' as chkVHact,'Very High Activity' as lblVHact,'Premises:' as lblpremises,(case when ownership='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkOwned,'Owned' as lblOwned,(case when ownership='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkRented,'Rented' as lblRented,(case when ownership='Leased' then 'images/tick.gif' else 'images/untick.jpg' end) as chkLeased,'Leased' as lblLeased,(case when ownership='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkOthown,'Others' as lblOthown,'Onwership:' as lblownership,(case when busitype='MNC' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmnc,'MNC' as lblOwned,(case when busitype='Corporate' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcorporate,'Corporate' as lblRented,(case when busitype='PSU' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpsu,'PSU' as lblLeased,(case when busitype='Private Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpvtltd,'Private Ltd.' as lblpvtltd,'' as lbcell,(case when busitype='Partnership' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpartnership,'Partnership' as lblpartnership,(case when busitype='Proprietorship' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpropshp,'Proprietary' as lblpropreitary,(case when busitype='Co-Operative' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcoop,'Co-Operative' as lblcooperative,(case when busitype='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbtypeoth,'Others' as lblbtypeoth,'No of Years in Business:' as lblnoyrsin,yrsjob,'Years','Approximate Turn Over: Rs' as lblappxturnover,upper(Field30_13) as turnoverinlak,'Lakhs' as lbllakhs,'Part of Chain/Group:' as lblpartofhcain,(case when Field30_11='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkyespart,'Yes' as lblyespart,(case when Field30_11='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chknopart,'No' as lblnopart,'If Yes' as lblifyespart,'Name & Address of Any Sister Concern:' as lblanysister,'' as blankcell9,upper(Field150_1) as sisconernname,'' as blankcell10,'' as blankcell11,upper(Field150_2) as addrsisconcern,'' as blankcell12,'Already accepting cards:' as lblalreadyaccep,(case when Field30_7='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkyesaccep,'Yes' as lblyesaccep,(case when Field30_7='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chknoaccep,'No' as lblnoaccep,'If Yes' as lblifyesaccep,'Acquiring Bank Name/Branch:' as lblacquirer,upper(Field30_8) as acquirer,'' as blankcell12,'No of years of the Relationship:' as lblnoyrsrel,upper(Field30_10) as relsince,'' as blankcell13,'Types of Cards:' as lblcardtype,(case when chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmcard,'Master Cards' as lblmcard,(case when chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvisa,'Visa' as lblvisa,(case when chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdiners,'Diners' as lbldiners,(case when chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkamex,'Amex' as lblames,'' as blankcell14,(case when chkfield5='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkJcb,'JCB' as lblJcb,(case when chkfield6='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkOthercard,'Others' as lblOthcard,'' as blankcell15,'No of EDC in The Shop:' as lblnoofedc,(case when Field30_15='0' then '' else field30_15 end) as noedc,'No of Persons Handling EDC Machine:' as lblnoperson,(case when field30_16='0' then '' else Field30_16 end) as noperson,'MCC Type:' as lblmctype,upper(Field30_17) as mctype,'' as blankcell16,'Does the proprietor(s) of the establishment hold a HDFC Bank credit card: Yes' as lblwithhdfc,(case when Field30_18='Yes' then 'images/blackcheck.png' else 'images/blankcell.png' end) as chkhdfcyes,'No' as lblhdfcno,(case when Field30_18='No' then 'images/blackcheck.png' else 'images/blankcell.png' end) as chkhdfcyes,'If yes' as lblwithhdfcyes,'Credit Details:' as lblcarddetails,upper(Field50_1) as ccdetails,'' as blankcell17,'Credit Limit:' as lblcclimit,upper(Field30_19) as cclimit,'' as blankcell18,'Market information on Charge back History' as lblmarketinfo,'' as blankcell19,upper(Field250_1) as marketinfo,'' as blankcell19,'Knowledge Level of Staff in Card Acceptance' as lblstaffknow,(case when Field30_20='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkknowpoor,'Poor' as lblknowpoor,(case when Field30_20='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkknowavg,'Average' as lblknowavg,'' as blankcell20,(case when Field30_20='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkknowexcel,'Good' as lblknowexcel,(case when Field30_20='Excellent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkknowexcel,'Excellent' as lblknowexcel,'Remarks/Observation:' as lblremobserv,'' as blankcell21,upper(remarks),'' as blankcell22,'' as blankcell23,'' as blankcell24,'' as blankcell25,(case when status='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpositive,'Recommended' as chkpositive,(case when status='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as chknegative,'Not Recommended' as lblnrec,(case when status='Referred' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrtm,'RTM' as lblrtm,'Date of Visit:' as lblvisitdate,visitdate,'' as blankcell26,'Time:' as lblvistime,visittime,'' as blankcell27,'Verified By:' as lblverby,upper(overname) as verby,'' as blankcell28,'' as blankcell29,'Signature of' as lblsigof,'Signature of Verifier:' as lblsigofver,upper(overcode) as versign,'' as blankcell30,'Agency supervisor' as lblagcysuper,'' as portsupervisor,'' as blankcell31,'Reviewed By:' as lblrevby,upper(reportdoneby) as repdoneby,'' as blankcell32,'' as agcsupervisor,'' as blankcell33,'' as signature,'Name of the Field Risk Manager','' as blankcell34,'Signature of the Field Risk Manager' as lblfrmmgr from banklist_main_office o where (val0) val1
Query224!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,UPPER(MAINCOMPANY) as maincompany,trim(upper(coalesce(baddress1||' ',''))||upper(coalesce(baddress2||' ',''))||upper(coalesce(baddress3||' ',''))||upper(coalesce((case when bcity='-1' then '' else upper(' '||bcity) end),''))||upper(coalesce('-'||bpincode,''))) as baddress,upper(name) as pname,'PROPERTY VERIFICATION SHEET' as label1,'Aplication Ref. No.' as label2,upper(applno) as rapplno,'MV Code' as label3,upper(mvcode) as rmvcode,(apptype)||'''s Name' as label4,upper(customername) as custname,'Date of Visit' as label5,(coalesce(visitdate,'')||coalesce(' '||visittime)) as vistdate,'Property Address' as label6,upper(paddr) as paddr,'' as blank1,'Person Met' as label6,upper(field30_1) as metperson,'Relation with Applicant' as label7,upper(field50_2) as metrela,'Property Status' as label8,upper(field50_1) as pstatus,'Occupant Status' as label9,'Address Confirmed' as label10,upper(addrconfd) as addconfd,'' as blank2,'Confirmed By' as label11,upper(field30_4) as addconfdby,'DESCRIPTION' as label12,'Neighbour''s Reference Available for Sale' as label13,upper(field30_9) as neighref,'If Yes, Owner''s Name' as label14,upper(field30_11) as ownername,'Property Carpet Area in Sq. Ft.(approx)' as label15,upper(field30_5) as carparea,'Name Verified From' as label16,upper(field30_15) as nverfrom,'Type of Property' as label17,upper(field30_6) as proptype,'Ease of Locating Property' as label18,upper(field30_7) as easeloc,'Locality of Residence' as label19,upper(field30_8) as locality,'Estimated Value of Property' as label20,upper(field30_10) as estvalue,'' as blank3,'Status' as label21,upper(status) as status,'Final Remarks' as label22,upper(remarks) as remarks,'Portfolio Supervisor Name' as label23, upper(portsupervisor) as psupervisor,'Verifier''s Name & Sign' as label24,'Agency Seal' as label25,'Agency Manager''s Sign' as label26,upper(pvername) as pvername,(case portfolio_id when 38 then 'images/signs/'||supervisor||'.png' else 'images/signs/'||sdoneby||'.png' end) as sign,mvcode||'-'||applno||'-'||customername||'-PROP-'||status as bcode,'' as blnksd,'Supervisor: '||(case portfolio_id when 38 then upper(portsupervisor) else upper(sdonebyname) end) as reportdonebyname2,status as wmark,(case portfolio_id when 38 then 'Photographs' else '' end),(case portfolio_id when 38 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''P'' and uuid='''||p.uuid||'''',',') else '' end) as photographs from banklist_main_property p where (val0) val1
Query225!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',426,upper(''val3''),(case when strpos(upper(''val3''),''CONNECTOR'') > 0 then ''Connector'' else ''Home Loan'' end),NULL,upper(''val6''),(case when upper(''val10'')='''' or upper(''val10'')=''NA'' then ''val11'' else ''val10'' end),''-1'',NULL,NULL,''val11'',upper(''RadDrXS-val7 val8 val9-ERadDrX''),upper(''RadDrX1''),upper(''RadDrX2''),NULL,0,''-1'',NULL,(case when upper(''val10'')='''' or upper(''val10'')=''NA'' then ''val11'' else ''val10'' end),''val13'',upper(''OadDrXS-val12 val14 val15-EOadDrX''),upper(''OadDrX1''),upper(''OadDrX2''),NULL,0,''-1'',NULL,upper(''val18''),upper(''val17''),(case when upper(''val16'')='''' or upper(''val16'')=''NA'' then ''val11'' else ''val16'' end),(case when ''val20''=''NA'' then NULL else ''val20'' end),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val7'') > 3 then 1 else 0 end),(case when length(''val7'') > 3 then 1 else 0 end),(case when length(''val12'') > 3 then 1 else 0 end),(case when length(''val12'') > 3 then 1 else 0 end),0,0,0,0,0,0,'''',0,0,0,NULL,''val4'',''val19'',NULL,NULL,NULL,NULL,NULL,NULL,val21,val22,0,''val23'',''val24'','''')
Query226!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',552,upper(''val0''),(case when strpos(upper(''val0''),''LAP'') > 0 then ''LAP'' else '''' end),NULL,upper(''val1''),''Applicant'',''-1'',NULL,NULL,''val4'',upper(''RadDrXS-val2-ERadDrX''),upper(''RadDrX1''),upper(''RadDrX2''),NULL,0,''-1'',NULL,NULL,(case when length(trim(''val3'')) > 5 then ''val1'' else NULL end),upper(''OadDrXS-val3-EOadDrX''),upper(''OadDrX1''),upper(''OadDrX2''),NULL,0,''-1'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(trim(''val2'')) > 5 then 1 else 0 end),0,(case when length(trim(''val3'')) > 5 then 1 else 0 end),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val5,val6,0,''val7'',''val8'','''')
Query227!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN ''val1'' = ''KAROL BAGH'' THEN 466 WHEN ''val1'' = ''NOIDA'' THEN 1178 ELSE -1 END),''val2'',(CASE WHEN ''val4'' = ''HL'' THEN ''Home Loan'' ELSE ''val4'' END),NULL,''val6'',''val0'',''-1'',''val8'',NULL,''val9'',''RadDrXS-val7-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val9'',NULL,NULL,NULL,NULL,NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,(CASE WHEN ''val9'' <> '''' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,''val3'',val10,val11,0,''val12'',''val13'','''')
Query228!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Residence Verification Report' as lbltitle,'Agency Name:' as lblagency,'MATRIX' as maincompany1,'Appl Ref No:' as lblapplno,upper(applno) as applno1,'File Revd Date:' as lblrecdate,to_char(receivedate,'DD/MM/YYYY') as recdate,'File sent date:' as lblsendon,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Product:' as lblproduct,upper(product) as product1,'Spl Instruction:' as lblsplinst,upper(specialinst) as splinst,'Name:' as lblname,upper(customername) as custname1,'Res. Address:' as lblraddr,upper(raddr) as raddr,'Residence Tel No.:' as lblrphone,(upper(mobileno)||(case when length(rphone)>5 then '/'||rphone else '' end)) as rphone,'Landmark:' as lbllandmark,'' as landmark,(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkreco,'Recommended',(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chknreco,'Not Recommended',(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end) as ChkReferred,'Referred','images/untick.jpg' as chkvunsuccess,'Verification Unsuccessful' as vunsuccess,'Verifier Remarks: '||upper(verremarks) as verremarks,'' as blrow1,'NEIGHBOURHOOD CHECK' as lblsecneigh,'Confirmation Details :' as lblconfdet,'Does Applicant stay here:' as lbldappstay,(case when upper(Field30_1)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkasyes,'Y',(case when upper(Field30_1)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkasno,'N','Ownership status:' as lblownership,(case when upper(Field30_2)='OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkowown,'Own' as lblown,(case when upper(Field30_2)='COMPANY PROVIDED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkowcp,'Company Provided' as lblcprov,'' as blankcell1,(case when upper(Field30_2)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkowrented,'Rented' as lblrented,(case when upper(Field30_2)='PG' then 'images/tick.gif' else 'images/untick.jpg' end) as chkowpg,'PG' as lablpg,(case when upper(Field30_2)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkowother,'Other' as lbalothr,'' as owneroth1,'No of years of stay:' as lblstayyrs,upper(Field30_3) as stayyrs,'Any other feedback:' as lblnegfeedback,upper(Fieldtext_1) as negrem,'','INFORMATION FROM APPLICANT/PERSON CONTACTED' as hdrinfo,'Name of the person contacted:' as contpers,upper(metperson) as metpers,'Relationship with applicant:' as apprela,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Ownership:' as lblowner,(case when upper(rowner)='OWNED BY PARENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownparent,'Parental' as lblparent,(case when upper(rowner)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownself,'Self Owned' as lblselfown,(case when upper(rowner)='OWNED BY RELATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownrela,'Relative owned' as lblrelown,(case when upper(rowner)='FRIEND OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownfown,'Friend Owned' as lblfrdown,(case when upper(rowner)='BACHELOR ACCOMODATION' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownbacco,'Bachelor acco' as lblbacco,'' as blankcell,(case when upper(rowner)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownrent,'Rented' as lblrented,(case when upper(rowner)='COMPANY ACCOMODATION' then 'images/tick.gif' else 'images/untick.jpg' end) as chkowncacco,'Company acco' as lblcompacco,(case when upper(rowner)='PG' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownpg,'PG' as lblpg,(case when upper(rowner)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownoth,'Other : '||coalesce(upper(owneroth),'') as lblothr,'Address proof sighted:' as lbladdproofsgt,(case when upper(proof)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrprfy,'Y' as lblyes,(case when upper(proof)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrprfn,'N' as lblno,'Specify the type of proof:',upper(proofdet) as prfdet,'Education:' as lbledu,(case when upper(Field30_4)='POST GRADUATE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkedpgrd,'Post Graduate' as lblpostgrad,(case when upper(Field30_4)='GRADUATE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkedgrd,'Graduate' as lblgraduate,(case when upper(Field30_4)='10+2' then 'images/tick.gif' else 'images/untick.jpg' end) as chked12th,'10+2' as lbl12th,(case when upper(Field30_4)='<=10TH' then 'images/tick.gif' else 'images/untick.jpg' end) as chked10th,'<=10th' as lbl10th,'Permanent Address (if diff from residence):' as lblpermadd,upper(permadd) as permadd,'Years at current residence:' as lblcuradd,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd<> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as curyrsadd,'Staying in this city since:' as lblcitysnc,((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity<> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)) as curyrsadd,'No of members staying:' as lbltotmemb,upper(totmem) as totmem,'Working members:' as lblworkmem,upper(earning) as earning,'Depedent adults:' as lbldepend,upper(dependent) as dependent,'Dependent Children:' as lblchildren,upper(children) as children,'Permanent Address telephone number:' as lblpadd,'8928378','Marital Status:' as lblmarital,upper(maritial) as marital,'Spouse''s Name:' as lblspousename,upper(spsname) as spsname,'Spouse''s Occupation:' as spsoccu,upper(spsdesign) as spdesign,'Vehicle:' as lblveh,(case when upper(Field30_5)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvehy,'2 wheeler owned/financed, Model:' as lbl2wheel,coalesce(upper(Field30_6)||'-'||upper(Field30_7),'') as lbl2model,(case when upper(Field30_8)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvehn,'4 wheeler owned/financed, Model:' as lbl4wheel,coalesce(upper(Field30_10)||'-'||upper(Field30_11),'') as lbl4model,'If financed, financer name:' as lblfinancer,upper(Field30_12) as fncname,'Employment Details (designation):' as lblempdet,upper(design) as apdesign,'Credit card ownership:' as lblcrcard,(case when upper(Field30_13)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcrcy,'Y',(case when upper(Field30_13)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcrcn,'N',',If yes then' as lblifyes,(case when upper(Field30_14)='SCB' then 'images/tick.gif' else 'images/untick.jpg' end) as chkscb,'SCB' as lblscb,(case when upper(Field30_14)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkothr,'Others' as lblother,'Appl office name and details:' as lbloffnamedet,(coalesce(upper(compname),'')||' '||coalesce(upper(offaddr),'')) as offnamedet,'Name and add of 1st ref:' as lblrefnameadd,upper(Field150_3) as refnameadd,'' as blrow,'OBSERVATIONS OF VERIFICAT (not to be asked)' as lblobserve,'Locality' as lbllocality,(case when upper(locality)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end) as chkposh,'Posh locality' as lblposhloc,(case when upper(locality)='UPPER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkumc,'Upper middle class' as lbluprmidclass,(case when upper(locality)='MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmc,'Middle class' as lblmidclass,(case when upper(locality)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end) as chklmc,'Lower middle class' as lbllowmidclass,(case when upper(locality)='VILLAGE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvillage,'Village area' as lblvilarea,'' as blankcell1,(case when upper(locality)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end) as chkslum,'Slum locality' as lblslumloc,(case when upper(locality)='RESIDENTIAL COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrcomplx,'Residential Complex' as lblrescomplex,(case when upper(locality)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chklocoth,'Others:' as lblchkother,coalesce(locaoth) as locaoth,'Within city limits' as lblocl,(case when upper(isocl)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkisocly,'Y' as lbloclyes,(case when upper(isocl)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkisocln,'N' as lbloclno,'If OCL, distance:' as lblocldistance,upper(distance) as dist,'Prominent Landmark:' as lblpromlandmark,upper(Field50_1) as plandmak,'Accessibility' as lblaccessibility,(case when upper(raccess)='EASY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkacceseasy,'Easily accessible' as lbleasyaccess,(case when upper(raccess)='DIFFICULT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkaccesdiff,'Difficult' as lbldifficult,(case when upper(raccess)='UNTRACEABLE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkaccesuntr,'Untraceable' as lbluntraceable,'Car Park' as lblcarpark,(case when upper(Field30_15)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcarparky,'Y' as lblcarparky,(case when upper(Field30_15)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcarparkn,'N' as lblcarparkn,'Is the entrance of the house motorable:' as lblentmortable,(case when upper(Field30_16)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkentmorty,'Y' as lblentmorty,(case when upper(Field30_16)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkentmortn,'N' as lblentmortn,'Type of residence' as lblrestype,(case when upper(restype)='BUNGALOW' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrtbungalow,'Bungalow' as lblrtbungalow,(case when upper(restype)='FLAT/PART OF INDEPENDENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkflat,'Flat' as lblrtflat,(case when upper(restype)='INDEPENDENT HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkindhouse,'Individual house' as lblrtindhouse,(case when upper(restype)='STANDING CHAWL/JANTA FLAT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstdchawl,'Standing chawl/Janta flat' as lblrtstdjanta,(case when upper(restype)='SITTING CHAWL/HUTMENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstchawl,'Sitting chawl/Hutment' as lblrtsithut,'' as blankcell3,(case when upper(restype)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end) as chkslums,'Slum' as lblrtslum,(case when upper(restype)='STAFF QUARTERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstaffqt,'Staff quarters' as lblrtsqtr,(case when upper(restype)='LODGE/HOTEL' then 'images/tick.gif' else 'images/untick.jpg' end) as chklodge,'Lodge/Hotel' as lblrtlhot,(case when upper(restype)='ANNEXE TO HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkanexxe,'Annexe to house' as lblrtannhouse,(case when upper(restype)='MULTI-TENANT HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmultihouse,'Multi-tenant house' as lblrtmulhouse,'Exteriors of resi' as lblextresi,(case when upper(Chkfield1)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrtgarden,'Garden' as lblextgarden,(case when upper(Chkfield2)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrtpatchy,'Building wall(patchy)' as lblextpatchy,(case when upper(Chkfield3)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrtelevator,'Elevator' as lblextelevator,(case when upper(Chkfield4)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrtwall,'Fencing/Wall' as lblextwall,(case when upper(Chkfield5)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrtsecurity,'Security' as lblextsecurity,'Residence External' as lblresiext,(case when upper(Field30_17)='EXCELLENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkresiextexl,'Excellent' as lblresiextexcellent,(case when upper(Field30_17)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkresiextgood,'Good' as lblresiextgood,(case when upper(Field30_17)='FAIR' then 'images/tick.gif' else 'images/untick.jpg' end) as chkresiextfair,'Fair' as lblresiextfair,(case when upper(Field30_17)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end) as chkresiextpoor,'Poor' as lblresiextpoor,'Society Board' as lblsocbrd,(case when upper(socboard)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chksocbrdy,'Y' as lblsocbrdy,(case when upper(socboard)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chksocbrdn,'N' as lblsocbrdn,'Name plate' as lblnmplate,(case when upper(nameplate)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chknplatey,'Y' as lblnmplatey,(case when upper(nameplate)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chknplaten,'N' as lblnmplaten,',if yes name on plate:' as lblnameplate,upper(platedet) as pltdet,'Residential Internal' as lblresiint,(case when upper(interior)='WELL FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrintwf,'Well furnished' as lblrintwf,(case when upper(interior)='AVERAGELY FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrintaf,'Avg. furnished' as lblrintaf,(case when upper(interior)='POORELY FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrintpf,'Poor furnished' as lblrintpf,(case when upper(interior)='UNFURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrintwf,'Unfurnished' as lblrintwf,'Construction of house' as lblconsthouse,(case when upper(construction)='PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkconstpuk,'Pukka' as lblconstpuk,(case when upper(construction)='SEMI-PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkconstspuk,'Semi pukka' as lblconstspuk,(case when upper(construction)='TEMPORARY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkconsttemp,'Temporary' as lblconsttemp,'Type of flooring' as lblfloor,(case when upper(Field30_18)='MOSAIC' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfloormos,'Mosaic' as lblfloormos,(case when upper(Field30_18)='MARBLE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfloormar,'Marble' as lblfloormar,(case when upper(Field30_18)='CEMENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfloorcem,'Cement' as lblfloorcem,'Type of roofing',(case when upper(Field30_19)='TILE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrooftile,'Tile' as lblrooftile,(case when upper(Field30_19)='ASBESTOS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrooftasb,'Asbestos' as lblrooftasb,(case when upper(Field30_19)='CONCRETE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkroofconc,'Concrete' as lblroofconc,(case when upper(Field30_19)='THATCHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkroofthat,'Thatched' as lblroofthat,'Standard of living' as lbllivstnd,(case when upper(furlevel)='HIGH' then 'images/tick.gif' else 'images/untick.jpg' end) as chklivstndhigh,'High' as lbllivstndhigh,(case when upper(furlevel)='UPPER MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end) as chklivstndgood,'Good' as lbllivstndgood,(case when upper(furlevel)='MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end) as chklivstndavg,'Average' as lbllivstndavg,(case when upper(furlevel)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end) as chklivstndpoor,'Poor' as lbllivstndpoor,'Assets seen',(case when upper(Chkfield6)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chktv,'TV' as lbltv,(case when upper(Chkfield7)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkph,'Phone' as lblph,(case when upper(Chkfield8)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkss,'Sofa set' as lblss,(case when upper(Chkfield9)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfg,'Fridge' as lblfg,(case when upper(Chkfield10)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chk2w,'2 Wheeler' as lbl2w,(case when upper(Chkfield11)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkms,'Music System' as lblms,'' as blankcell4,(case when upper(Chkfield12)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkwm,'Washing m/c' as lblwm,(case when upper(Chkfield13)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkac,'Air conditioner' as lblac,(case when upper(Chkfield14)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpc,'Computer' as lblpc,(case when upper(Chkfield15)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmv,'Microwave' as lblmv,(case when upper(Chkfield16)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chk4w,'4 Wheeler' as lbl4w,(case when upper(Chkfield17)='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkot,'Others' as lblot,'Entry permitted' as lblentryperm,(case when upper(Field30_20)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkenty,'Y' as lblenty,(case when upper(Field30_20)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkentn,'N' as lblentn,'Size of house(in sq ft):' as lblcarpetarea,upper(carpetarea) as carparea,'No of rooms:',upper(Field30_21) as rooms,'Earlier Visited' as lblearvisit,(case when upper(Field30_22)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkevy,'Y' as lablearvisity,(case when upper(Field30_22)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkevn,'N' as lablearvisitn,'Any display of affiliation to political party seen?:' as lblpolseen,upper(political) as polseen,'Nearness to negative area: (kms)' as lblnegarea,'10 KMS','Verifier''s name:' as lblovername,upper(rvername) as ovrname,'Verifier''s code:' as lblovercode,upper(rvercode) as ovrcode,'Verification date:' as lblvisdate,upper(visitdate),'Verification time:' as lblvistime,upper(visittime),'Applicant capable of maintaining: '||upper(Field30_24) as appcap,'Verification agency''s back office report : '||upper(remarks) as rmks,'Match in negative list' as lblmatneglist,(case when upper(Field30_25)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmatchy,'Yes' as lblnmatchy,(case when upper(Field30_25)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmatchn,'No' as lblnmatchn,'If yes' as lblyes,'Bank:' as lblbank,upper(Field50_2) as bank,'Product:' as lblproduct,upper(Field50_3) as prod,'Default bucket:' as lbldefprod,upper(Field50_4) as defbukt,'Amount of default in INR:' as lbldefamt,upper(Field50_5) as defamt,(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatpos,'Recommended' as lblrecommend,(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatneg,'Not Recommended' as lblnotrecommend,(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatref,'Referred' as lblreferred,'images/untick.jpg','Verification Unsuccessful','Reasons for not recommended/referred' as lblreason,'A' as lbla,'Out of municipal limits' as lbloml,'E' as lble,'Negative area' as lblnegarea,'I' as lbli,'Incorrect address' as lblincadd,'M' as lblm,'Residence doubtful' as lblresdoubt,'B' as lblb,'Defaulter/bad reputation' as lblbadrepo,'F' as lblf,'Poor living conditions' as lblpoorlivcond,'J' as lblj,'Residence cum office' as lblrco,'N' as lbln,'Others' as lblothers,'C' as lblc,'Negative feedback from neighbours' as lblnegfedbak,'G' as lblg,'Negative profile' as lblnegprof,'K' as lblk,'No information received' as lblinforecv,'' as blankcell,'' as blankcell6,'D' as lbld,'Politically connected' as lblpolconnec,'H' as lblh,'Drunkard/drug addict/major vices' as lbldrunk,'L' as lbll,'Bachelor unsatisfactory profile' as lblbahlorprof,'' as blankcell,'' as blankcell7,'CAU offers decision' as lbloffdec,'images/untick.jpg' as chkapp,'Approved' as lblapproved,'images/untick.jpg' as chkdeclined,'Declined' as lbldeclined,'images/untick.jpg' as chkhtodiscuss,'Hold to discuss' as lblhtodiscuss,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode from banklist_main_residence r where (val0) val1
Query229!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Employment / Business Verification Report ( Self Employed )' as label1,'Employment / Business Verification Report ( Self Employed )' as label2,'Agency Name:' as label3,'MATRIX' as maincompnay1,'Appl Ref No:' as label4,upper(applno) as applno1,'File Recv Date:' as label5,to_char(receivedate,'DD/MM/YYYY') as receivedate1,'File Sent Date:' as label6,to_char(sdoneon,'DD/MM/YYYY') as receivedate1,'Product:' as label7,upper(product) as product1,'Spl Instruction:' as label8,upper(specialinst) as splinst,'Name of Applicant:' as label9,upper(customername) as name,'Landmark:' as label10,'' as oland,'Office Name, Address & Phone:' as label11,upper(oaddr) as oadd,'Other Business Premises details & Phone:' as label12,'' blkdata1,(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkreco,'Recommended' as label13,(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkreco,'Not Recommended' as label14,(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkreco,'Referred' as label15,'Comments on business activities seen,stock and machinery:' as label16,upper(stockdet) as blkdata2,'Information obtained from Applicant / Colleague' as label17,'Name of Person Met:' as label18,upper(metperson) as metperson1,'Relationship with Applicant:' as label19,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Telephone Number :' as label20,upper(ophone) as ophone,'Mobile Number:' as label21,upper(mobileno) as mobileno,'No of years in Business:' as label22,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Visit Card Collected' as label23,(case when upper(Field30_19)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvcyes,'Y' as label24,(case when upper(Field30_19)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvcno,'N' as label25,'Proof of Visit Obtained' as label26,(case when upper(Field30_20)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpvyes,'Y' as label27,(case when upper(Field30_20)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpvno,'N' as label28,'Name of Company/Business:' as label29,upper(companyname) as compname,'Prominent Landmark:' as label30,upper(Field50_2) as plandmark,'Nature of Business:' as label31,(case when upper(compprof)='MANUFACTURING' then 'images/tick.gif' else 'images/untick.jpg' end) as chknobmfc,'Manufacturing' as label32,(case when upper(compprof)='SOFTWARE' then 'images/tick.gif' else 'images/untick.jpg' end) as chknobsoft,'Software' as label33,(case when upper(compprof)='TRADING' then 'images/tick.gif' else 'images/untick.jpg' end) as chknobtrd,'Trading' as label34,(case when upper(compprof)='BPO' then 'images/tick.gif' else 'images/untick.jpg' end) as chknobbpo,'Bpo' as label35,(case when upper(compprof)='SERVICES' then 'images/tick.gif' else 'images/untick.jpg' end) as chknobsvc,'Services' as label36,(case when upper(compprof)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chknoboth,'Others' as label37,(case when upper(compprof)='OTHERS' then upper(compprofoth) else '' end) as chknobothfd,'Vehicle Owned:' as label38,upper(Field30_21) as vehown,'Business Ownership:' as label40,(case when upper(ownership)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownself,'Self Owned' as label41,(case when upper(ownership)='FAMILY OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownfam,'Family Owned' as label42,(case when upper(ownership)='PARTNERSHIP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownpart,'Partnership' as label43,(case when upper(ownership)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkownoth,'Others:' as label44,upper(owneroth) as othowner,'Business Premises:' as label45,(case when upper(Field30_22)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbpself,'Self Owned' as label46,(case when upper(Field30_22)='FAMILY OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbpfam,'Family Owned' as label47,(case when upper(Field30_22)='FRIEND OWNED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbpfrd,'Friend Owned' as label48,(case when upper(Field30_22)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbprent,'Rented' as label49,(case when upper(Field30_22)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbpothr,'Others:' as label50,'' as othbizprem,'Business Proof Sighted:' as label51,(case when upper(Field30_23)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbpsyes,'Yes' as label52,(case when upper(Field30_23)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbpsno,'No' as label53,'Name & Address of 1 Reference (to be provided by Applicant)' as label54,'Business Proof Details:' as label55,upper(Field50_3) as bizprfdet,'Name:' as label56,upper(Field30_24) as refname,'Applicant Bank Name & Address:' as label57,upper(Field150_3) as nameadd,'Address (with Telephone No.):' as label58,upper(Field150_4) as addphone,'No of Employee in Business:' as label59,(case when upper(Field30_2)='<5' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt5,'<5' as label60,(case when upper(Field30_2)='5-10' then 'images/tick.gif' else 'images/untick.jpg' end) as chk510,'5-10' as label61,(case when upper(Field30_2)='11-15' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1115,'11-15' as label62,(case when upper(Field30_2)='16-20' then 'images/tick.gif' else 'images/untick.jpg' end) as chk1620,'16-20' as label63,(case when upper(Field30_2)='21-50' then 'images/tick.gif' else 'images/untick.jpg' end) as chk2150,'21-50' as label64,(case when upper(Field30_2)='>50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgt50,'>50' as label65,'No of Customer per Day:' as label66,upper(custperday) as custperday,'No of Employee Seen:' as label67,(case when upper(Field30_3)='<5' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeslt5,'<5' as label68,(case when upper(Field30_3)='5-10' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes510,'5-10' as label69,(case when upper(Field30_3)='11-15' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes1115,'11-15' as label70,(case when upper(Field30_3)='16-20' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes1620,'16-20' as label71,(case when upper(Field30_3)='20-50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes2050,'20-50' as label72,(case when upper(Field30_3)='>50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkesgt50,'>50' as label73,'Avg Monthly Turnover:' as label74,upper(turnover) as avgturnover,'For Doctors:- No of Patient Per Day:' as label75,upper(Field30_25) as patperday,'Avg Fee Per Patient:' as label76,upper(Field50_4) as avgpat,'Other Clinic Visited:' as label77,(case when upper(Field50_6)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclyes,'Y' as label78,(case when upper(Field50_6)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclno,'N' as label79,'If Yes, Detail:' as label80,'' as clinicdet,'No of beds (If Nursing Home):' as label81,upper(Field50_5) as nofbed,'Neighbourhood check with Closest Chemist (Name & Address):' as label82,upper(Field250_1) as negcheck,'How long has the clinic been existing:' as label83,upper(Field50_7) as clnexsing,'For Architect/Cas:-' as label84,'How long has Applicant been Practicing Independently:' as label85,upper(Field50_8) as prcsince,'Key Client Name:' as label86,upper(Field50_9) as clname,'Comments:' as label87,upper(Field250_2) as cmnt,'Previous Employment Detail ( If Worked elsewhere in last 5 Years )' as label88,'Name of Company:' as label89,upper(prevjobdet) as prevcmpname,'Years Worked:' as label90,(case when prevjobyrs='0' then 'NA' else upper(prevjobyrs) end) as prevjobyr,'Designation:' as label91,'' as prevdesign,'Type of Office:' as label92,(case when upper(Field30_7)='INDEPENDENT OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotindo,'Independent Office' as label93,(case when upper(Field30_7)='BUSINESS CENTER' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotbctr,'Business Center' as label94,(case when upper(Field30_7)='INDUSTRY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotinry,'Industry' as label95,(case when upper(Field30_7)='RESIDENCE CUM OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotrco,'Residence Cum Office' as label96,(case when upper(Field30_7)='SMALL SCALE/SHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotsssd,'Small Scale/shed' as label97,(case when upper(Field30_7)='OFFICE COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotocpx,'Office Complex' as label98,(case when upper(Field30_7)='SHARED OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotsoff,'Shared Office' as label99,(case when upper(Field30_7)='CLINIC' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotclnc,'Clinic' as label100,(case when upper(Field30_7)='SHOP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotshop,'Shop' as label101,(case when upper(Field30_7)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotothr,'Other' as label102,'Locality of Office:' as label103,(case when upper(locality)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyccpx,'Commercial Complex' as label104,(case when upper(locality)='GODOWN' then 'images/tick.gif' else 'images/untick.jpg' end) as chklygown,'Godown' as label105,(case when upper(locality)='RESIDENTIAL' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyrstl,'Residential' as label106,(case when upper(locality)='INDUSTRIAL/FACTORY' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyinfy,'Industry/Factory' as label107,(case when upper(locality)='PLANT' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyplnt,'Plant' as label108,(case when upper(locality)='BUSINESS CENTRE' then 'images/tick.gif' else 'images/untick.jpg' end) as chklybctr,'Business Center' as label109,(case when upper(locality)='SMALL SCALE INDUSTRIAL AREA' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyssia,'Small Scale Industrial Area' as label110,(case when upper(locality)='SHOP/OFFICE COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end) as chklysocx,'Shop/Office Complex' as label111,(case when upper(locality)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyothr,'Others' as label112,'Area of Office (in sq ft.):' as label113,upper(Field50_10) as carea,'Is Residence Cum Offic then Seprate Office Area?:' as label114,(case when upper(Field50_11)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrcoy,'Y' as label115,(case when upper(Field50_11)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrcon,'N' as label116,'Is there a Separate Factory:' as label117,(case when upper(Field50_12)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspfy,'Y' as label118,(case when upper(Field50_12)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspfn,'N' as label119,'Separate Entrance seen to Office & Residence?:' as label120,(case when upper(Field50_13)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspfy,'Y' as label121,(case when upper(Field50_13)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspfn,'N' as label122,'Was There a Separate Office Earlier?:' as label123,(case when upper(Field50_14)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspoy,'Y' as label124,(case when upper(Field50_14)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspon,'N' as label125,'Where is the Stock Kept?:' as label126,upper(Field50_15) as stockkept,'Any Other Comments:' as label127,upper(Fieldtext_3) as cmnt,'Construction of Office:' as label128,(case when upper(Field30_11)='PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocpukka,'Pukka' as label129,(case when upper(Field30_11)='SEMI-PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocspukka,'Semi-Pukka' as label130,(case when upper(Field30_11)='TEMPORARY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkoctemp,'Temporary' as label131,'Exteriors:' as label132,(case when upper(Field30_12)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkextgood,'Good' as label133,(case when upper(Field30_12)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkextavg,'Average' as label134,(case when upper(Field30_12)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end) as chkextpoor,'Poor' as label135,'Interiors:' as label136,(case when upper(Field30_13)='PAINTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkintpaint,'Painted' as label137,(case when upper(Field30_13)='CARPETED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkintcarp,'Carpeted' as label138,(case when upper(Field30_13)='CURTAINS/BLINDS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkintcblind,'Curtains/blinds' as label140,(case when upper(Field30_13)='CLEAN' then 'images/tick.gif' else 'images/untick.jpg' end) as chkintclean,'Clean' as label141,'Ease of Locating Office:' as label142,(case when upper(easeloc)='EASY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeloeasy,'Easy' as label143,(case when upper(easeloc)='DIFFICULT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkelodiff,'Difficult' as label144,(case when upper(easeloc)='UNTRACEABLE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeloutrace,'Untraceable' as label145,'Business level Activity:' as label146,(case when upper(busiact)='HIGH' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbahigh,'High' as label147,(case when upper(busiact)='MEDIUM' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbamed,'Medium' as label148,(case when upper(busiact)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbalow,'Low' as label149,(case when upper(busiact)='NO ACTIVITY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbanact,'No Activity' as label150,'Business board seen outside building/office:' as label151,(case when upper(bizboard)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbizbrdy,'Y' as label152,(case when upper(bizboard)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbizbrdy,'N' as label153,'Office within city limit:' as label154,(case when upper(isocl)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocly,'Y' as label155,(case when upper(isocl)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocln,'N' as label156,'If Outside, then Distance:' as label157,upper(distance) as distance,'Wheather affiliation to political party seen:' as label158,(case when upper(political)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoly,'Y' as label159,(case when upper(political)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoln,'N' as label160,'Items seen on premises (Specify in Nos):' as label161,upper(Field15_10) as pc,'PC' as label62,upper(Field15_1) as printer,'PRINTERS' as label63,upper(Field15_2) as ac,'AC' as label164,upper(Field15_3) as telephone,'TELEPHONE' as label65,upper(Field15_4) as tables,'TABLES' as label66,upper(Field15_5) as stock,'STOCK' as label67,upper(Field15_6) as cabins,'CABINS' as label168,upper(Field15_7) as chairs,'CHAIRS' as label69,upper(Field15_8) as xerox,'XEROX' as label170,upper(Field15_9) as fax,'FAX' as label171,'NEIGHBOUR CHECK' as label172,'Name & Address of Neighbour:' as label173,upper(Fieldtext_1) as negfeedback,'No of Years of Business:' as label174,upper(Field30_14) as bizyrs,'Any Other Feedback:' as label175,upper(Field150_1) as othfeedback,'Verifier''s Name:' as label176,upper(overname) as vername,'Verifier''s Code:' as label177,upper(overcode) as vercode,'Ver Date:' as label178,upper(visitdate) as visdate,'Ver Time:' as label179,upper(visittime) as vistime,'Verifier''s Comments:' as label180,upper(verremarks) as verrem,'Verification Agency''s Back Office Report:' as label181,'Match in Negative List:' as label182,(case when upper(Field30_15)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmatchy,'Y' as label183,(case when upper(Field30_15)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmatchn,'N' as label184,upper(remarks) as rmks,'' as blklabel1,'If Yes Bank:' as label185,upper(Field50_1) as bank,'Product:' as label186,upper(Field30_16) as prod,'Default Bucket:' as label187,upper(Field30_17) as bucket,'Amount of default in INR:' as label188,upper(Field30_18) as definr,'RECOMMENDATION DETAILS' as label189,(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkreco,'Recommended',(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chknrec,'Not Recommended',(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkref,'Referred','Reason for Not Recommended/Referred','A','Out of Municiple Limit','E','Negative Area','I','Incorrect Address','M','Residence Doubtful','B','Defaulter/bad Reputation','F','Poor Living Conditions','J','Residence Cum Office','N','Entry Restricted','C','Negative Feedback from Neighbours','G','Negative Profile','K','No Information Received','O','Information Provided Incorrect','D','Politically Connected','H','Drunkard/Drug Adict/Major Vices','L','Bachelor Unsatisfactory Profile','P','Others','CAU Officer''s Decision:','images/untick.jpg','Approved','images/untick.jpg','Declined','images/untick.jpg','Hold to Discuss','Verified By:',upper(overcode) as vercode,'Date and Time of Call:',coalesce(upper(visitdate),'')||' '||coalesce(upper(visittime),'') as visdate,'Signature','images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode from banklist_main_office o where (val0) val1
Query230!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Employment / Business Verification Report ( Salaried )' as label1,'Employment / Business Verification Report ( Salaried )' as label2,'Agency Name:' as label3,'MATRIX' as maincompnay1,'Appl Ref No:' as label4,upper(applno) as applno1,'File Recv Date:' as label5,to_char(receivedate,'DD/MM/YYYY') as receivedate,'File Sent Date:' as labele6,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Product:' as label7,upper(product) as product1,'Spl Instruction:' as label8,upper(specialinst) as specialinst1,'Name of Applicant:' as label9,upper(customername) as customername1,'Department:' as label10,upper(department) as department1,'Office Name, Address & Phone:' as label11,upper(oaddr)||' '||upper(ophone) as oaddress1,'Other Business Premises details & Phone:' as label12,'' as blank,(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkreco,'Recommended' as label13,(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end) as chknrec,'Not Recommended' as label14,(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkref,'Referred' as label15,'Verifier''s Comments:' as label16,upper(verremarks) as verrem,'Information obtained from Applicant / Colleague' as label17,'Met Person''s Name:' as label18,upper(metperson) as metperson1,'Met Person''s Designation:' as label19,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Applicant''s Designation:',(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Telephone Number :' as label20,upper(ophone) as ophone,'Extension No.:' as label21,upper(extension) as extension,'Mobile Number:' as label22,upper(mobileno) as mobileno,'No of years in Current Employment:' as label23,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Visit Card Collected' as label24,(case when upper(Field30_19)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chkyes,'Y',(case when upper(Field30_19)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chkno,'N','Name of Company/Business:' as label25,upper(companyname) as compname,'Prominent Landmark:' as label26,upper(Field50_2) as plandmark,'Type of Business' as label27,'Natrue of Buisness' as label28,'No of years worked here:' as label29,(case when upper(Field30_1)='<1YR' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt1,'< 1 yr' as label30,(case when upper(Field30_1)='1-2YRS' then 'images/tick.gif' else 'images/untick.jpg' end) as chk12y,'1-2 yrs' as label31,(case when upper(Field30_1)='3-5YRS' then 'images/tick.gif' else 'images/untick.jpg' end) as chk35y,'3-5 yrs' as label32,(case when upper(busitype)='PUBLIC LIMITED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpltd,'Public Ltd.' as label33,(case when upper(busitype)='GOVERNMENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgovt,'Govt/Public Sector' as label34,(case when upper(compprof)='MANUFACTURING' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmfc,'Manufacturing' as label35,(case when upper(compprof)='SOFTWARE' then 'images/tick.gif' else 'images/untick.jpg' end) as chksoft,'Software' as label36,(case when upper(Field30_1)='6-10YRS' then 'images/tick.gif' else 'images/untick.jpg' end) as chk610y,'6-10 yrs' as label37,(case when upper(Field30_1)='>10YRS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkgt10,'> 10 yrs' as label38,(case when upper(busitype)='PARTNERSHIP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpartner,'Partnership' as label39,(case when upper(busitype)='MNC' then 'images/untick.jpg' else 'images/untick.jpg' end) as chkmnc,'MNC' as label40,(case when upper(compprof)='TRADING' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrade,'Trading' as label41,(case when upper(compprof)='BPO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbpo,'BPO' as label42,'No of Employee in Business:' as label43,(case when upper(Field30_2)='<5' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt5,'< 5' as label44,(case when upper(Field30_2)='5-10' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt5,'5-10' as label45,(case when upper(Field30_2)='11-15' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt5,'11-15' as label46,(case when upper(busitype)='PRIVATE LIMITED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpvtltd,'Private Ltd.' as label47,(case when upper(busitype)='PROPRIETORSHIP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprop,'Proprietorship' as label48,(case when upper(compprof)='SERVICE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkservice,'Services' as label49,(case when upper(compprof)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkothers,'Others' as label50,(case when upper(Field30_2)='16-20' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt5,'16-20' as label51,(case when upper(Field30_2)='21-50' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt5,'21-50' as label52,(case when upper(Field30_2)='>50' then 'images/tick.gif' else 'images/untick.jpg' end) as chklt5,'> 50' as label53,(case when (upper(busitype)='OTHERS' or upper(busitype)='MNC') then 'images/tick.gif' else 'images/untick.jpg' end) as chkprop,'Others' as label54,'' as blklabel1,'No of Employee Seen:' as label55,(case when upper(Field30_3)='<5' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeslt5,'< 5' as label56,(case when upper(Field30_3)='5-10' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes510,'5-10' as label57,(case when upper(Field30_3)='11-15' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes1115,'11-15' as label58,(case when upper(Field30_3)='16-20' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes1620,'16-20' as label59,'' as blklabel2,(case when upper(Field30_3)='21-50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkes2150,'21-50' as label60,(case when upper(Field30_3)='>50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkesgt50,'> 50' as label61,'' as blklabe3,'No of Customer Seen:' as label62,(case when upper(Field30_4)='<5' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcslt5,'< 5' as label63,(case when upper(Field30_4)='5-10' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcs510,'5-10' as label64,(case when upper(Field30_4)='11-15' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcs1115,'11-15' as label65,(case when upper(Field30_4)='16-20' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcs1620,'16-20' as label66,'' as blklabel4,(case when upper(Field30_4)='21-50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcs2150,'21-50' as label67,(case when upper(Field30_4)='>50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcsgt50,'> 50' as label68,'' as blklabel5,'No of Branches:' as label69,(case when upper(Field30_5)='<3' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbrlt3,'< 3' as label70,(case when upper(Field30_5)='4-10' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbr410,'4-10' as label71,(case when upper(Field30_5)='11-15' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbr1115,'11-15' as label72,(case when upper(Field30_5)='16-20' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbr1620,'16-20' as label73,'' as blklabel6,(case when upper(Field30_5)='21-50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbr2150,'21-50' as label74,(case when upper(Field30_5)='>50' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbrgt50,'> 50' as label75,'Type of Job' as label76,'Applicant Working As' as label77,'Applicant Job Transferable' as label78,(case when upper(jobtype)='PERMANENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkjtperm,'Permanent' as label79,(case when upper(jobtype)='CONTRACT EMPLOYEE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkjtcemp,'Contract Worker' as label80,(case when upper(appdesign)='ASSISTANT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadasst,'Assistant' as label81,(case when upper(appdesign)='SKILLED LABOUR' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadslab,'Skilled Labour' as label82,(case when upper(appdesign)='CLERK' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadclrk,'Clerk' as label83,(case when upper(appdesign)='TYPIST' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadtyps,'Typist' as label84,(case when upper(appdesign)='PEON/OFFICE BOY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadpeon,'Peon/Office Boy' as label85,(case when upper(transferable)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chktryes,'Yes' as label86,(case when upper(transferable)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrno,'No' as label87,(case when upper(jobtype)='PROBATION' then 'images/tick.gif' else 'images/untick.jpg' end) as chkjtprob,'Probation' as label88,(case when upper(jobtype)='TEMPORARY EMPLOYEE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkjttwrk,'Temporary Worker' as label89,(case when upper(appdesign)='STENOGRAPHER' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadstno,'Stenographer' as label90,(case when upper(appdesign)='SUPERVISOR' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadsupv,'Supervisor' as label91,(case when upper(appdesign)='JR.MANAGEMENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadjmgt,'Junior Management' as label92,'' as blklabel7,'' as blklabel8,(case when upper(appdesign)='SR.MANAGEMENT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadsmgt,'Senior/Middle Management' as label93,(case when upper(appdesign)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkadothr,'Others' as label94,'' as blklabel9,'PREVIOUS EMPLOYMENT DETAILS:' as label95,'Name of Company:' as label96,upper(prevjobdet) as pjobdet,'Years Worked:' as label97,(case when prevjobyrs='0' then 'NA' else upper(prevjobyrs) end) as pjobyrs,'Designation:' as label98,'' as blankdata2,'Applicant''s Name Verified From' as label99,'Type of Office:' as label100,'Locality of Office:' as label101,(case when upper(Field30_6)='RECEPTIONIST' then 'images/tick.gif' else 'images/untick.jpg' end) as chknfrecp,'Receptionist' as label102,(case when upper(Field30_7)='INDEPENDENT OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotindo,'Independent Office' as label103,(case when upper(Field30_7)='BUSINESS CENTER' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotbctr,'Business Center' as label104,(case when upper(Field30_7)='INDUSTRY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotinry,'Industry' as label105,(case when upper(locality)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyccpx,'Commertial Complex' as label106,(case when upper(locality)='GODOWN' then 'images/tick.gif' else 'images/untick.jpg' end) as chklygown,'Godown' as label107,(case when upper(Field30_6)='COLLEAGUE' then 'images/tick.gif' else 'images/untick.jpg' end) as chknfcolg,'Colleague' as label108,(case when upper(Field30_7)='RESIDENCE CUM OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotrco,'Residence Cum Office' as label109,(case when upper(Field30_7)='SMALL SCALE/SHED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotsssd,'Small Scale/Shed' as label110,(case when upper(Field30_7)='CLINIC' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotclnc,'Clinic' as label111,(case when upper(locality)='RESIDENTIAL' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyrstl,'Residential' as label112,(case when upper(locality)='INDUSTRIAL/FACTORY' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyinfy,'Industry/Factory' as label113,(case when upper(locality)='PLANT' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyplnt,'Plant' as label114,(case when upper(Field30_6)='SECURITY' then 'images/tick.gif' else 'images/untick.jpg' end) as chknfsrty,'Security' as label115,(case when upper(Field30_7)='OFFICE COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotocpx,'Office Complex' as label116,(case when upper(Field30_7)='SHARED OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotsoff,'Shared Office' as label117,(case when upper(Field30_7)='SHOP' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotshop,'Shop' as label118,(case when upper(locality)='BUSINESS CENTRE' then 'images/tick.gif' else 'images/untick.jpg' end) as chklybctr,'Business Center' as label119,(case when upper(locality)='SHOP/OFFICE COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end) as chklysocx,'Shop/Office Complex' as label120,(case when upper(Field30_6)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chknfothr,'Others' as label121,(case when upper(Field30_7)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkotothr,'Others' as label122,(case when upper(locality)='SMALL SCALE INDUSTRIAL AREA' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyssia,'Small Scale Industrial Area' as label123,(case when upper(locality)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end) as chklyothr,'Others' as label124,'Construction of Office' as label125,'Exteriors' as label126,'Interiors' as label127,'Ease of locating office' as label128,'Business level activity' as label129,(case when upper(Field30_11)='PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkospka,'Pukka' as label130,(case when upper(Field30_11)='SEMI-PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcospka,'Semi-Pukka' as label131,(case when upper(Field30_12)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end) as chkexgood,'Good' as label132,(case when upper(Field30_12)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkexavg,'Average' as label133,(case when upper(Field30_13)='PAINTED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkinpant,'Painted' as label134,(case when upper(Field30_13)='CARPETED' then 'images/tick.gif' else 'images/untick.jpg' end) as chkincapt,'Carpeted' as label135,(case when upper(easeloc)='EASY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeleasy,'Easy' as label136,(case when upper(easeloc)='DIFFICULT' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeldiff,'Difficult' as label137,(case when upper(busiact)='HIGH' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbahidh,'High' as label138,(case when upper(busiact)='MEDIUM' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbamed,'Medium' as label139,(case when upper(Field30_11)='TEMPORARY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkostmp,'Temporary' as label140,(case when upper(Field30_12)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcospoor,'Poor' as label141,(case when upper(Field30_13)='CURTAINS/BLINDS' then 'images/tick.gif' else 'images/untick.jpg' end) as chkincbld,'Curtains/blinds' as label142,(case when upper(Field30_13)='CLEAN' then 'images/tick.gif' else 'images/untick.jpg' end) as chkinclen,'Clean' as label143,(case when upper(easeloc)='UNTRACEABLE' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeluntr,'Untraceable' as label144,(case when upper(busiact)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbalow,'Low' as label145,(case when upper(busiact)='NO ACTIVITY' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbanoac,'No Activity' as label146,'Business board seen outside building/Office:' as label147,(case when upper(bizboard)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbbrdy,'Y' as label148,(case when upper(bizboard)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbbrdn,'N' as label149,'Office within city limit:' as label150,(case when upper(isocl)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocly,'Y' as label151,(case when upper(isocl)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkocln,'N' as label152,'If outside then distance:' as lablel153,upper(distance) as distance,'Wheather affiliation to political party seen:' as label154,(case when upper(political)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoly,'Y' as label155,(case when upper(political)='NO' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoln,'N' as label156,'Item seen on premises (Specify in Nos):' as label157,'' as blklabel10,upper(Field15_10) as pc,'PC',upper(Field15_1) as printer,'PRINTERS',upper(Field15_2) as ac,'AC',upper(Field15_3) as tele,'TELEPHONE',upper(Field15_4) as tables,'TABLES','' as blklabel11,upper(Field15_5) as stock,'STOCKS',upper(Field15_6) as cabins,'CABINS',upper(Field15_7) as chairs,'CHAIRS',upper(Field15_8) as xerox,'XEROX',upper(Field15_9) as fax,'FAX','NEIGHBOUR CHECK' as label157,'Name & Address of Neighbour:' as label158,upper(Fieldtext_1) negfeedback,'Knows Company and confirm office existence:' as label159,'' as blkdata3,'No of years of Business:',upper(Field30_14) as bizyrs,'Verifier''s Name:' as label160,upper(overname) as vername,'Verifier''s Code:' as label161,upper(overcode) as vercode,'Ver Date:' as label162,upper(visitdate) as visdate,'Ver Time:' as label163,upper(visittime) as vistime,'Verification Agency''s Back Office Report:' as label164,'Match in Negative List:' as label165,(case when upper(Field30_15)='Y' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmatchy,'Y' as label166,(case when upper(Field30_15)='N' then 'images/tick.gif' else 'images/untick.jpg' end) as chknmatchn,'N' as label167,upper(remarks) as rmks,'' as blklabel13,'If Yes Bank:' as label168,upper(Field50_1) as bank,'Product:' as label169,upper(Field30_16) as prd,'Default Bucket:' as label170,upper(Field30_17) as bucket,'Amount of default in INR:' as label171,upper(Field30_17) as amt,'RECOMMENDATION DETAILS' as label172,'Reason for Not Recommended/Referred' as label173,'A','Out of Municiple Limit','E','Negative Area','I','Incorrect Address','M','Residence Doubtful','B','Defaulter/bad Reputation','F','Poor Living Conditions','J','Residence Cum Office','N','Entry Restricted','C','Negative Feedback from Neighbours','G','Negative Profile','K','No Information Received','O','Information Provided Incorrect','D','Politically Connected','H','Drunkard/Drug Adict/Major Vices','L','Bachelor Unsatisfactory Profile','P','Others','CAU Officer''s Decision:','images/untick.jpg','Approved','images/untick.jpg','Declined','images/untick.jpg','Hold to Discuss','Verified By:',upper(overcode) as overcode,'Date and Time of Call:',coalesce(upper(visitdate),'')||' '||coalesce(upper(visittime),'') as visdate,'Signature','images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode from banklist_main_office o where (val0) val1
Query_OLD231_OLD!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'ARVEE BIZPRO SOLUTION PVT.LTD' else upper(maincompany) end)as label3,'Applicant Name' as label4,upper(field50_5) as customername,'Residence Address' as label5,upper(raddr) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Scanned By' as label47,portsupervisor,'Reason for negative' as blank1,'Residence Cum Office' as label48,'A' as label49,'Defaulter/Bad market reputation' as label50,'G' as label51,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'images/signs/'||supervisor||'arvee.png' else'images/signs/'||supervisor||'.png' end) as stamp,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode,'Non target Area' as label51,'B' as label52,'Person does not exist' as label53,'H' as label54,'Outside Geographical Limits' as label55,'C' as label56,'Address not traceable/does not exist' as label57,'I' as label58,'Applicant of Family member not met' as label59,'D' as label60,'Detail mismatch' as label61,'J' as label62,'Door Locked' as label63,'E' as label64,'Negative neighbourhood check' as label65,'K' as label66,'Poor living conditions' as label67,'F' as lbl33,'Any other reason(not covered by above)' as label68,'L' as label69,'Shared/Bachelor Accomodtion (Applicable for Credit Card only)' as label70,'M' as label71,'Agency Verifier' as label45,'Agency Supervisor' as label46,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'ARVEE BIZPRO SOLUTION PVT.LTD' else upper(maincompany) end) as maincomp,(case when (upper(rvername)='VINAY SOLANKI' and upper(name)='HDFC LTD') then 'VIKAS CHANDEL' else upper(rvername) end) as rvername,upper(portsupervisor),(case when portfolio_id = 105 or portfolio_id=161 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case when portfolio_id = 105 or portfolio_id=161 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,upper(r.status) as hstatus from banklist_main_residence r where (val0) val1
Query_OLD232_OLD!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(field50_5) as customername,'Office Address' as label5,upper(oaddr) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as nmverfrm,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Scanned By' as label38,upper(portsupervisor) as scannedby,'Reason for negative' as blank2,'A' as label39,'Residence Cum Office' as label40,'G' as label41,'Detail Mismatch' as label43,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'images/signs/'||supervisor||'arvee.png' else'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'B' as label44,'Non Target Area' as label45,'H' as label46,'Designation Incorrect' as label47,'C' as label48,'Outsite Geographical Limits' as label49,'I' as label50,'No Business Activity' as label51,'D' as label52,'Entry Not Allowed' as label53,'J' as label54,'Negative Neighbour Check' as label55,'E' as label56,'Address Not Traceable' as label57,'K' as label58,'Defaulter/Bad Market Reputation' as label59,'F' as label60,'Applicant Does Not Work Here' as label61,'L' as label62,'Any Other Reason' as label63,'' as blk4,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'ARVEE BIZPRO SOLUTION PVT.LTD' else upper(maincompany) end) as maincomp,(case when (upper(overname)='VINAY SOLANKI' and upper(name)='HDFC LTD') then 'VIKAS CHANDEL' else upper(overname) end) as overname,upper(portsupervisor),(case when portfolio_id = 105 or portfolio_id=161 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case when portfolio_id = 105 or portfolio_id=161 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,upper(o.status) as hstatus from banklist_main_office o where (val0) val1
Query231!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'ARVEE BIZPRO SOLUTION PVT.LTD' else upper(maincompany) end)as label3,'Applicant Name' as label4,upper(field50_5) as customername,'Residence Address' as label5,upper(raddr) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Scanned By' as label47,portsupervisor,'Reason for negative' as blank1,'Residence Cum Office' as label48,'A' as label49,'Defaulter/Bad market reputation' as label50,'G' as label51,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 or portfolio_id=186 then 'images/signs/'||supervisor||'arvee.png' else'images/signs/'||supervisor||'.png' end) as stamp,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode,'Non target Area' as label51,'B' as label52,'Person does not exist' as label53,'H' as label54,'Outside Geographical Limits' as label55,'C' as label56,'Address not traceable/does not exist' as label57,'I' as label58,'Applicant of Family member not met' as label59,'D' as label60,'Detail mismatch' as label61,'J' as label62,'Door Locked' as label63,'E' as label64,'Negative neighbourhood check' as label65,'K' as label66,'Poor living conditions' as label67,'F' as lbl33,'Any other reason(not covered by above)' as label68,'L' as label69,'Shared/Bachelor Accomodtion (Applicable for Credit Card only)' as label70,'M' as label71,'Agency Verifier' as label45,'Agency Supervisor' as label46,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'ARVEE BIZPRO SOLUTION PVT.LTD' else upper(maincompany) end) as maincomp,(case when (upper(rvername)='VINAY SOLANKI' and upper(name)='HDFC LTD') then 'VIKAS CHANDEL' else upper(rvername) end) as rvername,upper(portsupervisor),(case when portfolio_id = 105 or portfolio_id=161 or portfolio_id=186 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case when portfolio_id = 105 or portfolio_id=161 or portfolio_id=186 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,upper(r.status) as hstatus from banklist_main_residence r where (val0) val1
Query232!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(field50_5) as customername,'Office Address' as label5,upper(oaddr) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as nmverfrm,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Scanned By' as label38,upper(portsupervisor) as scannedby,'Reason for negative' as blank2,'A' as label39,'Residence Cum Office' as label40,'G' as label41,'Detail Mismatch' as label43,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 or portfolio_id=186 then 'images/signs/'||supervisor||'arvee.png' else'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'B' as label44,'Non Target Area' as label45,'H' as label46,'Designation Incorrect' as label47,'C' as label48,'Outsite Geographical Limits' as label49,'I' as label50,'No Business Activity' as label51,'D' as label52,'Entry Not Allowed' as label53,'J' as label54,'Negative Neighbour Check' as label55,'E' as label56,'Address Not Traceable' as label57,'K' as label58,'Defaulter/Bad Market Reputation' as label59,'F' as label60,'Applicant Does Not Work Here' as label61,'L' as label62,'Any Other Reason' as label63,'' as blk4,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,(case when portfolio_id=80 or portfolio_id=186 or portfolio_id=161 or portfolio_id=105 then 'ARVEE BIZPRO SOLUTION PVT.LTD' else upper(maincompany) end) as maincomp,(case when (upper(overname)='VINAY SOLANKI' and upper(name)='HDFC LTD') then 'VIKAS CHANDEL' else upper(overname) end) as overname,upper(portsupervisor),(case when portfolio_id = 105 or portfolio_id=161 or portfolio_id=186 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case when portfolio_id = 105 or portfolio_id=161 or portfolio_id=186 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,upper(o.status) as hstatus from banklist_main_office o where (val0) val1
Query233!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,'Seller FI Verification Report' as title,'CAS ID' as lblcasid,upper(applno) as applno1,'CPC Name' as lblcpcname,'MATRIX' as lblmatrix,'blankcell' as bcell,'Date' as lbldate,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Seller Name' as lblsellername,upper(customername) as customername1,'Property/Residence Address with Land Mark' as lblpropadd,(upper(paddr1)||' '||coalesce(upper(paddr2),'')||' '||upper(paddr3)) as paddr,'Contacted Person (Name & relationship with Seller)' as lblmetperson,(upper(field50_2)||' ('||upper(field50_3)||')') as metrela,'Phone #' as lblphone,upper(mobileno) as mobileno,'Residence Observations:' as lblresiobs,'No. of Years in Current Address' as lblstay,upper(field30_1) as stayyrs,'Own/Rental' as lblowned,upper(field20_1) as lblownership,'Type of Residence' as lblrestype,upper(field30_4) as restype,'Locality' as lbllocality,upper(field30_5) as locality,'Staying With' as lblstaywith,upper(field50_1),'Married (Y/N)' as lblmarried,upper(field3_2) as married,'Life Style' as lbllifestyle,upper(field30_6) as livstd,'Ease to Locate (Y/N)' as lbleaseloc,upper(field3_3) as easeloc,'Employment/Self-Employed' as lblselfemp,upper(field20_3) as selfemp,'Company Name & Address' as lblcompanyname,upper(field150_1) as companynameadd,'Neighbour Check' as lblneighcheck,upper(fieldtext_1) as neighfeedback,'' as blrow,('Remarks: '||upper(remarks)) as remarks,'Overall Status Satisfactory/Not-Satisfactory/ Caution' as lbloverallstat,(case upper(status) when 'POSITIVE' then 'Satisfactory' when 'NEGATIVE' then 'Unsatisfactory' when 'Referred' then 'Caution' else 'NA' end) as status,'Verifier Name' as lblvername,upper(pvername) as pvername,'Verification Date' as lblverdate,(visitdate||' '||visittime) as visitdate,'Agency Seal & Signature' as lblagencyseal,'images/signs/'||supervisor||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(case portfolio_id when 3 then 'PHOTOS' else '{SK!PTH15D@TA}' end) as lblphoto,(case portfolio_id when 3 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''P'' and uuid='''||p.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_property p where (val0) val1
Query234!C0L!procedure!C0L!select portvisitmis('val0', 'val1',val3,val2, val4, 'val5', 'val6', 'val7', '')
Query235!C0L!procedure!C0L!select ctransfermis(val0,val1,val2,'val3','val4','val5','val6','val7',val8,'val9','val10','val11')
Query236!C0L!procedure!C0L!select vervisitdetmis('val0', 'val1',val2,val3, val4, 'val5', 'val6', 'val7', '')
Query237!C0L!procedure!C0L!select conveyencemis('val0','val1',val2,'val3','val4','val5','val6')
Query238!C0L!insert!C0L!insert into negative (cardno,refno,applno,customername,raddr1,raddr2,raddr3,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,Ocolony,ocity,opincode,ophone,fathername,contactperson,mobileno,amount,source,product,remarks,actualsource,portname,dob,updatedon,bucket,addedon,addedby) values (''val0'',''val1'',''val1'',''val2'',''RadDrXS-val14-ERadDrX'',''RadDrX1'',''RadDrX2'',0,''-1'','''',''val8'',''val16'',''OadDrXS-val15-EOadDrX'',''OadDrX1'',''OadDrX2'',0,''-1'','''','''',''val18'','''',''val7'',val11,''FULLERTON'',''val3'',''val19'',''FULLERTON'',''FULLERTON'',''val13'',''2013-08-01'',val6,''2014-05-07 00:00:00'',1)
Query239!C0L!procedure!C0L!select negupdate('val0')
Query243!C0L!select!C0L!select bank_id,name from bank where upper(name) like upper('val0%');
Query244!C0L!select!C0L!select v.verifier_id,(v.verifiercode||' | '||v.hdfccode) as verifier from verifier v,verifier_doc vd where vd.verifier_id=v.verifier_id and vd.doctype_id=val0 order by verifier
Query245!C0L!select!C0L!select ba.uid,ba.belt_id,b.beltname,ba.verifier_id,v.verifiercode as verifiername,ba.belt_group as group,ba.verifier_id as pverifier from belt b,verifier v,belt_allocation ba where ba.belt_id=b.belt_id and ba.verifier_id=v.verifier_id val0 order by beltname
Query246!C0L!procedure!C0L!select belttransfer(val0,val1,val2,val3,val4,val5,'val6')
Query247!C0L!select!C0L!select mvcode,applno,customername,(case when rlock=1 then '/matrix/images/locked.png' else '/matrix/images/untick.jpg' end) as rlock,to_char(rlockon,'DD-MON HH24:MM') as rlockon,(case when olock=1 then '/matrix/images/locked.png' else '/matrix/images/untick.jpg' end) as olock,to_char(olockon,'DD-MON HH24:MM') as olockon,(case when plock=1 then '/matrix/images/locked.png' else '/matrix/images/untick.jpg' end) as plock,to_char(plockon,'DD-MON HH24:MM') as plockon,(case when tlock=1 then '/matrix/images/locked.png' else '/matrix/images/untick.jpg' end) as tlock,to_char(tlockon,'DD-MON HH24:MM') as tlockon,(case when fdlock=1 then '/matrix/images/locked.png' else '/matrix/images/untick.jpg' end) as fdlock,to_char(fdlockon,'DD-MON HH24:MM') as fdlockon,rlock as rislock,olock as oislock,plock as pislock,tlock as tislock,fdlock as fdislock,uuid from temp_reporting where branch_id=val0 and (rlock=1 or olock=1 or plock=1 or tlock=1 or fdlock=1) and (sdone=0 or (sdone=1 and uuid in (select uuid from reporting_bksoftupd)))
Query248!C0L!procedure!C0L!select unlockcase('val0','val1',val2,'val3');
Query249!C0L!select!C0L!select portfolio_id,portname from portfolio where branch_id=val0 and (supervisor=val1 or val1=83 or val1=187 or val1=171) and isactive=1 order by portname
Query250!C0L!select!C0L!select 0 as verifier_id,'NI' as verifiercode union all select verifier_id,verifiercode from verifier where isactive=1 and branch_id=val0 and verifiertype='VER'
Query252!C0L!procedure!C0L!select updatepov('val0','val1','val2','val3',val4,'val5')
Query253!C0L!select!C0L!select to_char(povdate,'DD/MM/YYYY') as pdate,povtype,remarks from pov where uuid='val0'
Query254!C0L!procedure!C0L!select pov_mis('val0', 'val1', val2, val3, val4, 'val5', 'val6', 'val7', 'val8')
Query255!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,upper(maincompany) as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Father''s Name' as lblfname,upper(fathname) as fathname,'Office Address' as lbloffadd,upper(offaddr) as offaddr,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'images/signs/'||sdoneby||'.png' as singature1,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Scanned by: '||upper(sdonebyname) as reportdonebyname1,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Supervisor' as label47,portsupervisor,'Reason for negative' as blank1,'Residence Cum Office' as label48,'A' as label49,'Defaulter/Bad market reputation' as label50,'G' as label51,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode,'Non target Area' as label51,'B' as label52,'Person does not exist' as label53,'H' as label54,'Outside Geographical Limits' as label55,'C' as label56,'Address not traceable/does not exist' as label57,'I' as label58,'Applicant of Family member not met' as label59,'D' as label60,'Detail mismatch' as label61,'J' as label62,'Door Locked' as label63,'E' as label64,'Negative neighbourhood check' as label65,'K' as label66,'Poor living conditions' as label67,'F' as lbl33,'Any other reason(not covered by above)' as label68,'L' as label69,'Shared/Bachelor Accomodtion (Applicable for Credit Card only)' as label70,'M' as label71,'Scanned by: '||upper(sdonebyname) as reportdonebyname2,'Agency Verifier' as label45,'Agency Supervisor' as label46,upper(maincompany) as maincomp,upper(rvername),upper(portsupervisor),upper(status) as blank3 from banklist_main_residence r where (val0) val1
Query256!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3)) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as nmverfrm,'images/signs/'||sdoneby||'.png' as singature1,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as reportdonebyname1,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset,'Neighbour''s Feedback' as lblnfeed,upper(Fieldtext_1) as nefeed,'Father''s Name' as lblfname,upper(fathname) as fname,'DOB' as lbldob,(case when dob is null or dob='' then upper(age) else dob end) as dob,'Bank Details' as lblbdetails,upper(bank) as bank,'Turnover' as lblturn,upper(turnover) as turnover,'PAN No.' as lblpan,upper(panno) as panno,'Other Income' as lblothinc,upper(othsource) as othincome,'Loan Amount' as lbllamt,upper(loanamt) as lamt,'Tenure' as lbltenure,upper(tenure) as tenure,'Previous Loan' as lblploan,upper(field150_2) as prevloan,'Residence Address' as lblraddr,upper(field150_3) as raddr, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'Reason for negative' as blank2,'A' as label39,'Residence Cum Office' as label40,'G' as label41,'Detail Mismatch' as label43,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'B' as label44,'Non Target Area' as label45,'H' as label46,'Designation Incorrect' as label47,'C' as label48,'Outsite Geographical Limits' as label49,'I' as label50,'No Business Activity' as label51,'D' as label52,'Entry Not Allowed' as label53,'J' as label54,'Negative Neighbour Check' as label55,'E' as label56,'Address Not Traceable' as label57,'K' as label58,'Defaulter/Bad Market Reputation' as label59,'F' as label60,'Applicant Does Not Work Here' as label61,'L' as label62,'Any Other Reason' as label63,'' as blk4,'Scanned by: '||upper(sdonebyname) as reportdonebyname2,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,upper(maincompany) as maincomp,overname,upper(portsupervisor),upper(status) as blk6 from banklist_main_office o where (val0) val1
Query257!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(upper(name)||' ('||upper(product)||')') as pname1,'RESIDENCE VERIFICATION REPORT' as label1,'[Strictly Private & Confidential]' as label2,'Date of request' as label3,to_char(receivedate,'DD/MM/YYYY') as requestdate,'Application ID' as label4,upper(applno) as applno1,'Applicant''s name' as label5,upper(customername) as customername2,'Residence address' as label6,upper(raddr) as raddr,'Telephone' as label7,rphone,'Mobile' as label8,mobileno,'Details of premises visited' as label9,'1. Locating address' as label10,upper(raccess) as raccess,'2. Landmark' as label11,upper(Field50_1) as landmark,'3. Building type' as label12,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'4. Name on the society address board' as label13,upper(socboarddet) as socboarddet,'5. Name plate on door' as label14,(case upper(nameplate) when 'YES' then 'YES - '||upper(platedet) when 'NO' then 'NO' else 'NA' end) as nameplate,'6. Ownership detail' as label15,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'7. No of years at current residence' as label16,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'8. No of rooms' as label17,Field30_1 as noofrooms,'9. Construction type' as label18,(case when upper(construction)='OTHERS' then upper(constoth) else upper(construction) end) as construction,'10. Carpet area' as label19,upper(carpetarea) as carpetarea,'11. Locality' as label20,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'12.Date of birth' as label21,dob,'13. Age' as label22,(case when age <> '0' and age <> '' then age else 'NA' end) as age,'14. Education highest' as label23,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as qualification,'15. Marital status' as label24,upper(maritial) as maritial,'16. If spouse working' as label25,upper(spswork) as spswork,'Designation' as label26,upper(spsdesign) as spsdesign,'Company' as label27,upper(spscomp) as spscomp,'17. No of family members' as label28,totmem,'18. No of adults' as label29,field30_4,'19. No of dependent' as label30,dependent,'20. No of working' as label31,earning,'21. Person contacted at site' as label32,upper(metperson) as metperson,'22. Relation with the customer' as label33,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'23. Residence interior details' as label34,upper(interior) as interior,'24. Residence exterior details' as label35,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as extdet,'25. Residence assets details' as label36,upper(field150_1) as assetdet,'' as blank1,'Net assets market value >' as label37,'26. Political leader portrait' as label38,(upper(political)||''||(case when upper(political)='YES' then ' - '||upper(politicdet) else '' end)) as political,'27. Have you ever applied for a personal loan with '||upper(name) as label39,(case when Field30_5='-1' then 'NA' else upper(Field30_5) end) as evrappl,'28. Customer approach' as label40,upper(custbehav) as custbehav,'29. Address confirmed' as label41,upper(addrconfd) as addrconfd,'30. Door Locked' as label42,(case when Field30_6='-1' then 'NA' else upper(Field30_6) end) as doorlocked,'Neighbour reference check' as label43,'31. Neighbour name' as label44,upper(fieldtext_1) as neighrem,'32. Relation with the customer' as label45,upper(field30_7) as relwithcust,'33. Address verified' as label46,(case when field30_8='-1' then 'NA' else upper(field30_8) end) as addrver,'34. Ownership detail' as label47,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as neowner,'35. No of years at current residence' as label48,upper(Field30_11) as becurstay,'36. No of family members' as label49,Field30_12 as netotmem,'37. Any connection with' as label50,(case when Field30_14='-1' then 'NA' else upper(Field30_14) end) as anyconnec,'38. Customer attitude' as label51,(case when Field30_13='-1' then 'NA' else upper(Field30_13) end) as neatt,'39. Approx. time of availability' as label52,upper(Field30_15) as appxtimeavail,'40. Neighbour reference' as label53,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as neref,'Visit date' as label54,visitdate,'Visit time' as label55,visittime,'Any findings/variations' as label54,(case when upper(redalert)='YES' then upper(alertrem) else 'NO' end) as anyfind,'Agency remarks/comments' as label55,upper(remarks) as remarks,'Report (Positive/Negative)' as label56,upper(status) as status,'Verifier''s Signature' as label57,upper(rvername) as rvername,'Agency Supervisor' as label58,upper(reportdoneby) as spervisor,(case when portfolio_id=52 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode from banklist_main_residence r where (val0) val1
Query258!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(upper(name)||' ('||upper(product)||')') as pname1,'OFFICE VERIFICATION REPORT' as label1,'Strictly Private & Confidential' as label2,'Date of request' as label3,to_char(receivedate,'DD/MM/YYYY') as requestdate,'Application ID' as label4,upper(applno) as applno1,'Applicant''s name' as label5,upper(customername) as customername2,'Company Name' as label6,upper(companyname) as compname1,'Office address' as label7,upper(oaddr) as paddr,'Telephone' as label8,ophone,'Ext' as label9,extension,'Mob' as label10,mobileno,'Address verified' as label11,upper(addrconfd) as addrconfd,'Nature of business/profession' as label12,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as nob,'Nature of work' as label13,upper(proddealt) as proddealt,'Person contacted at site' as label14,upper(metperson),'Relation with the customer' as label15,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Contacted person designation' as label16,upper(Field30_1) as contpdesig,'No of people seen at office' as label17,Field30_2 as peopseen,'No of years at current job' as label18,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Office ownership status' as label19,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Business activity level' as label20,upper(busiact) as busiact,'Designation of applicant' as label21,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Job status' as label22,upper(jobtype) as jobtype,'Manpower category' as label23,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as mpowcat,'Office transferable' as label24,(case when Field30_17='-1' then 'NA' else upper(Field30_17) end) as offtransfer,'Building type' as label25,(case when Field30_11='-1' then 'NA' else upper(field30_11) end) as buildtype,'Locating' as label26,upper(easeloc) as easeloc,'Locality' as label27,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Construction type' as label28,(case when Field30_4='-1' then 'NA' else upper(Field30_4) end) as consttype,'Carpet area (in Sqr.ft)' as label29,(case when Field30_5='-1' then 'NA' else Field30_5 end) as carparea,'Political leader potrait' as label30,(upper(political)||''||(case when upper(political)='YES' then ' - '||upper(politicdet) else '' end)) as political,'Average turnover' as label31,upper(turnover) as turnover,'Average customer per day' as label32,custperday,'No of branches' as label33,totbranch,'Business board seen when visited' as label34,upper(bizboard) as bizboard,'No of mentioned employees' as label35,totemp,'No of customer seen at office' as label36,custseen,'Visiting card collected' as label37,(case when Field30_6='-1' then 'NA' else upper(Field30_6) end) as viscard,'Previous Job Profile' as label38,'Company name' as label39,upper(prevjobdet) as prevjobdet,'No of months worked' as label40,(case when prevjobyrs <> '0' then prevjobyrs|| 'YEAR(S)' else 'NA' end) as pjobyrs,'Annual gross income (in Rs.)' as label41,upper(Field30_8) as angrossinc,'Office Product/Service details' as label42,'Product or Service' as label43,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as prodserv,'Product or Service name' as label44,upper(proddealt) as prodealt,'Office assets details' as label45,upper(Field30_12) as offasstdet,'Office interior details' as label46,(case when Field30_13='-1' then 'NA' else upper(Field30_13) end) as intdet,'Office exterior details' as label47,(case when Field30_14='-1' then 'NA' else upper(Field30_14) end) as oextdet,'Door locked' as label48,(case when Field30_15='-1' then 'NA' else upper(Field30_15) end) as dlocked,'Reference check' as label49,'Name of the person contacted' as label50,upper(fieldtext_1) as neighrem,'Address verified' as label51,upper(addrconfd) as addrconfd,'Neighbour reference' as label52,upper(field30_9) as neref,'Visit date' as label53,visitdate,'Visit time' as label54,visittime,'Any Findings/Variations' as label55,(case when upper(redalert)='YES' then upper(alertrem) else 'NO' end) as redalert,'Agency Remarks/Comments' as label56,upper(remarks) as remarks,'Report (Positive/Negative)' as label57,upper(status) as status,'Verifier''s Signature' as label58,upper(overname) as overname,'Agency Supervisor' as label59,upper(reportdoneby) as doneby,(case when portfolio_id=52 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode from banklist_main_office o where (val0) val1
Query259!C0L!procedure!C0L!select oprvisitmis('val0', 'val1', val2, val3, 'val4', 'val5', 'val6', 'val7')
Query260!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,upper(maincompany) as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem, 'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork, 'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet, 'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21, upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23, upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi, 'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav, 'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem, 'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'images/signs/'||sdoneby||'.png' as singature1,'Type of Residence' as label31, (case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32, (case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33, (case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34, (case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35, (case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Scanned by: '||upper(sdonebyname) as reportdonebyname1,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38, upper(field150_1) as assetseen,'Residence Proof' as lblresproof,upper(proofdet) as proofdet,'Whether picture of political party seen (Y) or (N)' as label39, (case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)) as verrem, 'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41, upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime, 'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46, (case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Supervisor' as label47,portsupervisor, 'Back check feedback' as blank1, 'Verifier visited the initiated address' as label48,upper(field30_23) as label50,'images/signs/'||sdoneby||'.png' as singature, mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'|| (case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode, 'Behavior of the verifier' as label51,upper(field30_24) as label53,'The report submitted by verifier is authentic' as label55,upper(field30_25) as label57, 'If no, reason' as label59,upper(field50_6) as label61,'' as label63,'' as label67,'' as label70,'Scanned by: '||upper(sdonebyname) as reportdonebyname2,'Agency Verifier' as label45,'Agency Supervisor' as label46,upper(maincompany) as maincomp, upper(rvername),upper(portsupervisor),upper(status) as blank3 from banklist_main_residence r where (val0) val1
Query261!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3)) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_19='-1' then 'NA' else upper(field30_19) end) as nmverfrm,'images/signs/'||sdoneby||'.png' as singature,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as reportdonebyname1,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'Back check feedback' as blank2,'Verifier visited the initiated address' as label39,upper(field30_23) as label40,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'Behavior of the verifier' as label44,upper(field30_24) as label45,'The report submitted by verifier is authentic' as label48,upper(field30_25) as label49,'If no, reason' as label52,upper(field50_6) as label53,'' as label56,'' as label60,'' as blk4,'Scanned by: '||upper(sdonebyname) as reportdonebyname2,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,upper(maincompany) as maincomp,overname,upper(portsupervisor),upper(status) as blk6 from banklist_main_office o where (val0) val1
Query262!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' - REFERENCE TELE - CHECK LIST' as title,'Name of Applicant' as lblname,upper(customername),'File No:' as lblfno,upper(applno) as aplnoc,'Refree # 1' as lblrefname1,'Name' as lblrefname1,upper(refname1) as refname1,'Address',upper(refaddress1) as refaddress1,'','','','','Tel No.',upper(refcontactno1) as refcontactno1,'Questions','1. Name of the Person Contacted',upper(ref1remarks) as ref1remarks,'2. How is referee related to the applicant','','3. Since how long referee is known to the applicant','','4. Does referee recommend this loan to the Applicant',upper(ref1status) as ref1status,'','Refree # 2','Name',upper(refname2),'Address',upper(refaddress2) as refaddress2,'','','','','Tel No.',upper(refcontactno2) as refcontactno2,'Questions','1. Name of the Person Contacted',upper(ref2remarks) as ref2remarks,'2. How is referee related to the applicant','','3. Since how long referee is known to the applicant','','4. Does referee recommend this loan to the Applicant',upper(ref2status),mvcode||'-'||applno||'-'||customername||'-REF-'||ref1status||'-'||ref2status as bcode,'images/signs/'||sdoneby||(case when portfolio_id=85 then 'arvee' else '' end)||'.png' as singature,'' as blank567,'Scanned by: '||upper(sdonebyname) as sdonebyname1 from banklist_main_reference where (val0) val1
Query264!C0L!select!C0L!select upper(u.loginid),rh.usertype,rh.ver_remarks,to_char(rh.updatedon,'DD/MON/YYYY HH24:MI:SS') as updatedon from report_changes_history rh,app_user u where u.user_id=rh.user_id and rh.uuid='val0' and val1
Query265!C0L!select!C0L!select uuid,bkbranchname,product,mvcode,applno,customername,visit,status from merchant_tracker where (val0) val1
Query266!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(case when ''val4''=''PL'' then 1232 when ''val4''=''HL'' then 483 else 1231 end),''val2'',(case when ''val4''=''PL'' then ''Personal Loan'' when ''val4''=''HL'' then ''Home Loan'' when ''val4''=''BL'' then ''BL'' else ''-1'' end),''val10'',''val3'',''Applicant'',(case when ''val12''=''SALERIED'' then ''Salaried'' else ''-1'' end),NULL,NULL,''val16/val25'',''RadDrXS-val14 val15-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val16'',''val17'',''OadDrXS-val18 val19-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,''val22'',''val23-val24'',''val20'',''val21'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val14'') > 0 and ''val14'' <> ''NA'' then 1 else 0 end),(case when length(''val14'') > 0 and ''val14'' <> ''NA'' then 1 else 0 end),(case when length(''val18'') > 0 and ''val18'' <> ''NA'' then 1 else 0 end),(case when length(''val18'') > 0 and ''val18'' <> ''NA'' then 1 else 0 end),0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val26,val27,0,''val28'',''val29'','''')
Query267!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id, ' ' as compLbl,' ' as baddress,upper(aliasname) as pname,'Tele Verification Report' as label1,'Appl. No.' as label2,upper(applno) as applno1,'Branch' as label3,upper(bkbranchname) as bkbranchname1,'Loan Amount' as label4,upper(loanamount) as loanamt,'Tenure' as label5,'' as blank1,'Residence Details' as label6,'Name' as label7,upper(customername) as cname1,'Address' as label8,upper(raddr),'Phone No' as label9,rphone,'Mobile No' as label10,upper(mobileno) as mobileno,'Contacted Phone No' as label11, upper(rcontno) as rcontno,'Date & Time of Call' as label12,(case when rstatus5='NA' then (case when rstatus4='NA' then (case when rstatus3='NA' then (case when rstatus2='NA' then coalesce(rattempt1,'')||coalesce(' '||rtime1,'') else coalesce(rattempt2,'')||coalesce(' '||rtime2,'') end) else coalesce(rattempt3,'')||coalesce(' '||rtime3,'') end) else coalesce(rattempt4,'')||coalesce(' '||rtime4,'') end) else coalesce(rattempt5,'')||coalesce(' '||rtime5,'') end) as dtofcall,'Contacted Person' as label13,upper(rcontpers) as rcontpers,'Relationship' as label14,(case when rcontrela='Others' then upper(rcontrelaoth) else upper(rcontrela) end) as contrela,'Res. Add as per Call' as label15,upper(rcorrectaddr) as rcorrectaddr,'Staying Since' as label16,((case when (rstayyrs<>'0' and rstayyrs<>'') then rstayyrs||' YEARS(S) ' else '' end)||(case when (rstaymnth <> '0' and rstaymnth <> '') then rstaymnth||' MONTH(S)' else '' end)) as rstay,'Res Status' as label17,(case when rowner='Others' then upper(rowneroth) else upper(rowner) end) as rowner,'Telecall Status' as label18,(case when upper(roverallstat)='SATISFACTORY' then 'POSITIVE' when upper(roverallstat)='UNSATISFACTORY' then 'NEGATIVE' else '' end) as rstatus,'No of Attempt' as label19,upper(rtotattempt) as rtotattempt,'Remarks' as label20,upper(rremarks) as rremarks,'Office Details' as label21,'Name' as label22,upper(customername) as cname2,'Address' as label23,upper(oaddr) as oaddr,'Phone No.' as label24,ophone,'Mobile No.' as label25,mobileno,'Contacted Phone No' as label26,upper(ocontno) as ocontno,'Date & Time of Call' as label112,(case when ostatus5='NA' then (case when ostatus4='NA' then (case when ostatus3='NA' then (case when ostatus2='NA' then coalesce(oattempt1,'')||coalesce(' '||otime1,'') else coalesce(oattempt2,'')||coalesce(' '||otime2,'') end) else coalesce(oattempt3,'')||coalesce(' '||otime3,'') end) else coalesce(oattempt4,'')||coalesce(' '||otime4,'') end) else coalesce(oattempt5,'')||coalesce(' '||otime5,'') end) as dtofcall1,'Contacted Person' as lblcontpers,upper(ocontpers) as ocontpers,'Designation' as label27,(case when odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Office Add as per Call' as label28,upper(ocorrectaddr) as ocorrectaddr,'Company Name' as lblcompname, upper(ocompname) as ocompname,'Nature of Biz' as label29,(case when onob='Others' then upper(onoboth) else upper(onob) end) as onob,'Designation/Dept' as label30,(case when odesign='Others' then upper(odesignoth) else upper(odesign) end) as odesign,'Biz/Job Since' as label31,((case when (oworkyrs<>'0' and oworkyrs<>'') then oworkyrs||' YEARS(S) ' else '' end)||(case when (oworkmnth<> '0' and oworkmnth<> '') then oworkmnth||' MONTH(S)' else '' end)) as owork,'Telecall Status' as label32,(case when upper(ooverallstat)='SATISFACTORY' then 'POSITIVE' when upper(ooverallstat)='UNSATISFACTORY' then 'NEGATIVE' else '' end) as ooverallstat,'No of Attempt' as label33,oattempt,'Remarks' as label33,upper(oremarks) as oremarks,'Portfolio Supervisor Name' as label37,upper(portsupervisor) as portsupervisor,'Supervisor Name & Signature' as label38,'Agency Seal' as label39,'Agency Manager Signature' as label40,upper(portsupervisor) as psupervisor,'images/signs/'||sdoneby||'mdrs.png' as sign,mvcode||'-'||applno||'-'||customername||'-RTV-'||(case when rtv=1 then roverallstat else 'NI' end)||'-OTV-'||(case when otv=1 then ooverallstat else 'NI' end) as bcode,'Scanned by: '||upper(sdonebyname) as sdonebyname1 from banklist_main_telecalling t where (val0) val1
Query269!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',463,''val1'',''val24'',NULL,''val2'',''Applicant'',(case when ''val3''=''SAL'' then ''Salaried'' else ''-1'' end),NULL,NULL,''val10'',''RadDrXS-val6 val8-ERadDrX'',''RadDrX1'',''RadDrX2'',''val7'',0,-1,NULL,''val9'',''val11'',''OadDrXS-val12 val14-EOadDrX'',''OadDrX1'',''OadDrX2'',''val13'',0,-1,NULL,''val17'',''val18'',''val15'',''val16'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val6'') > 5 and ''val6'' <> ''NA'' then 1 else 0 end),(case when length(''val6'') > 5 and ''val6'' <> ''NA'' then 1 else 0 end),(case when length(''val12'') > 5 and ''val12'' <> ''NA'' then 1 else 0 end),(case when length(''val12'') > 5 and ''val12'' <> ''NA'' then 1 else 0 end),0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val26,val27,0,''val28'',''val29'','''')
Query270!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,upper(maincompany) as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem, 'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork, 'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet, 'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21, upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23, upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi, 'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav, 'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem, 'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'images/signs/'||sdoneby||'.png' as singature,'Type of Residence' as label31, (case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32, (case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33, (case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34, (case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35, (case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Scanned by: '||upper(sdonebyname) as reportdonebyname1, 'Interiors of the residence' as label37,'Residence Proof' as lblresproof,upper(proofdet) as proofdet,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38, upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39, (case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||sentencecase(verremarks)) as verrem, 'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41, upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime, 'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46, (case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||sentencecase(remarks)) as rem,'Supervisor' as label47,portsupervisor, 'Back check feedback' as blank1, 'Verifier visited the initiated address' as label48,upper(field30_23) as label50,'images/signs/'||sdoneby||'.png' as singature1, mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'|| (case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode, 'Behavior of the verifier' as label51,upper(field30_24) as label53,'The report submitted by verifier is authentic' as label55,upper(field30_25) as label57, 'If no, reason' as label59,upper(field50_6) as label61,'' as label63,'' as label67,'' as label70,'Scanned by: '||upper(sdonebyname) as reportdonebyname2,'Agency Verifier' as label45,'Agency Supervisor' as label46,upper(maincompany) as maincomp, upper(rvername),upper(portsupervisor),upper(status) as blank3 from banklist_main_residence r where (val0) val1
Query271!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3)) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as nmverfrm,'images/signs/'||sdoneby||'.png' as singature1,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as reportdonebyname1,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,sentencecase(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,sentencecase(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'Back check feedback' as blank2,'Verifier visited the initiated address' as label39,upper(field30_23) as label40,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'Behavior of the verifier' as label44,upper(field30_24) as label45,'The report submitted by verifier is authentic' as label48,upper(field30_25) as label49,'If no, reason' as label52,upper(field50_6) as label53,'' as label56,'' as label60,'' as blk4,'Scanned by: '||upper(sdonebyname) as reportdonebyname2,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,upper(maincompany) as maincomp,overname,upper(portsupervisor),upper(status) as blk6 from banklist_main_office o where (val0) val1
Query272!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3)) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_9='-1' then 'NA' else upper(field30_9) end) as nmverfrm,'images/signs/'||sdoneby||'.png' as singature1,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as reportdonebyname1,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,sentencecase(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,sentencecase(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'Back check feedback' as blank2,'Verifier visited the initiated address' as label39,upper(field30_23) as label40,'images/signs/'||sdoneby||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'Behavior of the verifier' as label44,upper(field30_24) as label45,'The report submitted by verifier is authentic' as label48,upper(field30_25) as label49,'If no, reason' as label52,upper(field50_6) as label53,'' as label56,'' as label60,'' as blk4,'Scanned by: '||upper(sdonebyname) as reportdonebyname2,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,upper(maincompany) as maincomp,overname,upper(portsupervisor),upper(status) as blk6 from banklist_main_property p where (val0) val1
Query273!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'RESIDENCE VERIFICATION REPORT' as astitle,upper(aliasname)||'-'||upper(bkbranchname) as portbranch,'Date of Application:' as lbl1,to_char(receivedate,'DD/MON/YYY') as receivedate,'Application Number:' as lblapplno,upper(applno) as applno1,'Name of Applicant' as lbl2,upper(customername) as custname,'Residence Address' as lbl3,(coalesce(raddr1)||' '||coalesce(raddr2)||' '||coalesce(raddr3)) as resiaddress,'Address Confirmed' as lbl4,'Yes' as lbl5,(CASE when addrconfd='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkyesad,'No' as lbladdno,(CASE when addrconfd='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chknoadd,'Tel. Number' as lbl6,rphone,'Mobile No' as lbl7,mobileno,'Date of Visit' as lbl8,visitdate,'Time of Visit' as lbl9,visittime,'The following information is to be obtained from applicant or anybody residing at the address:' as lbl10,'Person Contacted' as lbl11,upper(metperson),'Relation with Applicant' as lbl12,(CASE WHEN metrela='Others' THEN upper(metrealoth) ELSE upper(metrela) END) as metrela,'Age of Applicant' as lbl13,upper(age),'No. of Years at Current Residence' as lbl14,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'' as lbl15,'Residential Status' as lbl17,'Marital Status' as lbl18,'Self Owned' as lbl19,(CASE when rowner='Self Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chksowned,'Single' as lbl20,(CASE when maritial='Single' then 'images/tick.gif' else 'images/untick.jpg' end) as chksingle,'Married' as lbl21,(CASE when maritial='Married' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmarried,'Owned by Relatives' as lbl22,(CASE when rowner='Owned by Relatives' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrowned,'No of Family Members' as lbl23,totmem,'Rented' as lbl24,(CASE when rowner='Rented' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrented,'Working' as lbl25,earning,'' as lbl26,'Paying Guest' as lbl27,(CASE when rowner='Paying Guest' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpguest,'Dependents Adults' as lbl28,dependent,'' as lbl29,'Owned by Parents' as lbl30,(CASE when rowner='Owned by Parents' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpaowned,'Children' as lbl31,children,'' as lbl32,'Owned by Friends' as lbl33,(CASE when rowner='Friend Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfowned,'Is Spouse Working?' as lbl34,'Company Accomodation' as lbl35,(CASE when rowner='Company Accomodation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcacc,'Yes' as lbl36,(CASE when spswork='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsyes,'No' as lbl37,(CASE when spswork='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspsno,'Lodging' as lbl38,(CASE when rowner='Lodge/Hotel' then 'images/tick.gif' else 'images/untick.jpg' end) as chklodging,'If Yes, Employment Details :' as lbl39,'' as lbl40,upper(spsempdet) as spsempdet,'' as lbl41,'Present Vehicle' as lbl42,'' as lbl43,'2 Wheeler' as lbl44,(CASE when Field15_1='2 Wheeler' then 'images/tick.gif' else 'images/untick.jpg' end) as chkp2wh,'Owned' as lbl45,(CASE when Field15_2='Owned' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvehowned,'images/signs/'||sdoneby||'mdrs.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-RES-'||status as bcode,'Car' as lbl46,(CASE when Field15_1='Car' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpvcar,'Financed' as lbl47,(CASE when Field15_2='Financed' then 'images/tick.gif' else 'images/untick.jpg' end) as chkfinanced,'Others' as lbl47,(CASE when Field15_1='Others' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpvother,'Co. Provided' as lbl48,(CASE when Field15_2='Co. Provided' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcoprov,'If Availed Finance, Please Specify' as lbl49,'Financer Name :' as lbl50,upper(Field150_1) as financer,'Loan No. :' as lbl51,upper(Field30_1) as loanno,'O/S Loan:' as lbl52,upper(Field30_2) as outstanding,'EMI:' as lbl53,upper(Field30_3) as emi,'Scanned by: '||upper(sdonebyname) as supname,'THE FOLLOWING ARE BASED ON VERIFIERS OBSERVATION' as lbl54,'How Co-Operative was the Customer' as lbl55,'Neighbourhood Check' as lbl56,'Rude' as lbl57,(CASE when custbehav='Rude' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrude,'Polite' as lbl58,(CASE when custbehav='Polite' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpolite,'Ve' as lbl59,(CASE when Field30_9='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpositive,'Negative' as lbl60,(CASE when Field30_9='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as chknegative,'' as lbl61,'Checked With' as lbl62,upper(Fieldtext_1) as neighcheck,'Construction of Residence' as lbl63,'Comments on Exteriors' as lbl64,'Carpet Area in Sq. Ft. (Approx)' as lbl65,upper(construction) as construction,upper(Field30_4) as exterior,upper(carpetarea) as carpetarea,'Interior Conditions' as lbl66,'Assets Seen at Residence' as lbl67,'Picture/Portrait of Political Leader Seen' as lbl68,'Painted' as lbl69,(CASE when Chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpainted,'Television' as lbl70,(CASE when Chkfield7='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chktele,'Yes' as lbl71,(CASE when political='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpolyes,'No' as lbl72,(CASE when political='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpolno,'Clean' as lbl73,(CASE when Chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclean,'Refrigerator' as lbl74,(CASE when Chkfield8='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrefri,'Carpeted' as lbl75,(CASE when Chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcarpet,'Music System' as lbl76,(CASE when Chkfield9='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmsystem,'Curtains' as lbl77,(CASE when Chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcurt,'Two Wheeler (Regis#)' as lbl78,(CASE when Chkfield10='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkinttw,'Sofa' as lbl79,(CASE when Chkfield5='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chksofa,'Car (Regis#)' as lbl80,(CASE when Chkfield11='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcar,'Venetian Blinds' as lbl81,(CASE when Chkfield6='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkvblind,'Air Conditioner' as lbl82,(CASE when Chkfield12='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkac,'Remarks' as lbl83,upper(politicdet) as politicdet,'If the applicants house is locked the following information is to be obtained from the neighbours' as lbl83,'Does the Applicant Stay at this Residence' as lbl84,'Yes' as lbl85,(CASE when Field30_10='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkappstayyes,'No' as lbl86,(CASE when Field30_10='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkappstayno,'Approximate Age of Applicant' as lbl87,upper(field30_11) as appxage,'Approximate Time, when Applicant is Available at Home' as lbl88,upper(field30_12) as appxtime,'No of Family Members in the House' as lbl89,upper(field30_13) as appxfammem,'RECOMMENDED' as lbl89,(CASE when status='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatpos,'NOT RECOMMENDED' as lbl90,(CASE when status='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as chkstatneg,'Any Other Remarks' as lbl91,upper(remarks) as supremarks,'I am not associated with the applicant directly or indirectly in the past or in the present and this report has been prepared by me with highest professional integrity' as lbl92,'Verifiers Name & Signature' as lbl93,'Agency Seal' as lbl94,'Agency Managers Signature' as lbl95,upper(rvername) as vername,'images/signs/'||sdoneby||'mdrs.png' as stamp,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-RES-'||status as bcode,'' as lbl96,'' as lbl97,('Scanned by: '||upper(sdonebyname) as supname,'' as lbl98,'Comments & Route Map Overleaf' as lbl99,'If Verified by LIC HFL Officials' as lbl100,'Officials Signature & Designation' as lbl101 from banklist_main_residence r where (val0) val1
Query274!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'BUSINESS VERIFICATION REPORT' as lbl1,upper(aliasname)||'-'||upper(bkbranchname) as portbranch,'Name of Applicant' as lbl2,(upper(CUSTOMERNAME)||' ('||category||')') as custname,'Co-Applicant Name' as lbl3,sublist('select upper(customername)||'' (''||category||'')'' as field from main where apptype=''Co-Applicant'' and upper(applno)='''||applno||''' and receivedate='''||receivedate||''' and uuid<>'''||uuid||'''',',') as coapp,'Office Address' as lbl4,upper(companyname)||' '||upper(oaddr1)||' '||coalesce(oaddr2)||' '||coalesce(oaddr3) as oaddr,'Address Confirmed' as lbl5,'Yes' as lbl6,(case when addrconfd='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as adrconyes,'No' as lbl7,(case when addrconfd='No' then 'images/tick.gif' else 'images/untick.jpg' end) as adrconno,'Designation of the Applicant' as lbl8,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Date of Visit' as lbl9,visitdate,'Time of Visit' as lbl10,visittime,'Following are based on information obtained from applicant/colleague' as lbl11,'Person Met' as lbl12,upper(metperson) as metperson,'Designation of the Person Met' as lbl13,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Telephone No.' as lbl14,upper(ophone) as ophone,'Ext. No.' as lbl15,upper(extension) as extension,'Mobile No.' as lbl16,mobileno,'Number of Years the Applicant is in Present Business' as lbl16,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Visiting Card Obtained' as lbl17,'Yes' as lbl18,(case when Field30_1='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as viscardyes,'No' as lbl18,(case when Field30_1='No' then 'images/tick.gif' else 'images/untick.jpg' end) as viscardno,'' as lbl19,'(Attach the Visiting Card With this Report)' as lbl20,'Name of Company' as lbl21,upper(companyname) as companyname,'Type of Company' as lbl22,'Product Dealt (Nature of Business)' as lbl23,'No. of Employees Working in Business' as lbl24,'Public Ltd.' as lbl25,(case when busitype='Public Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as publtd,upper(proddealt) as proddealt,totemp,'Partnership' as lbl26,(case when busitype='Partnership' then 'images/tick.gif' else 'images/untick.jpg' end) as partshp,'Private Ltd.' as lbl27,(case when busitype='Private Limited' then 'images/tick.gif' else 'images/untick.jpg' end) as pvtltd,'No. of Branches' as lbl28,'Proprietorship' as lbl29,(case when busitype='Proprietorship' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprop,totbranch,'Others' as lbl30,(case when (busitype='Government' or busitype='Self Employed' or busitype='Others') then 'images/tick.gif' else 'images/untick.jpg' end) as chkprop,upper(busitype) as othbusitype,'Average Monthly Turnover' as lbl31,upper(turnover) as turnover,'No of Customers Per Day' as lbl32,upper(custperday) as custperday,'THE FOLLOWING ARE BASED ON VERIFIERS OBSERVATION' as lbl33,'Business Board Seen Outside Building/Office' as lbl34,'Yes' as lbl35,(case when bizboard='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbbyes,'No' as lbl36,(case when bizboard='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkbbno,'Applicant Name Verified From' as lbl37,'Receptionist' as lbl38,(case when Field30_19='Receiptionist' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrecep,'Approx Area of Office (in Sq. Ft.)' as lbl38,'Colleague' as lbl39,(case when Field30_19='Colleague' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcolleg,upper(Field30_3) as carpetarea,'Security' as lbl40,(case when Field30_19='Security' then 'images/tick.gif' else 'images/untick.jpg' end) as chksecurity,'Others' as lbl41,(case when (Field30_19='Neighbour' or Field30_19='Person Met' or Field30_19='Could Not Confirm' or Field30_19='Name Board') then 'images/tick.gif' else 'images/untick.jpg' end) as chkothers,(case when (Field30_19='Neighbour' or Field30_19='Person Met' or Field30_19='Could Not Confirm' or Field30_19='Name Board') then upper(Field30_19) else '' end) as othconfirm,'Construction' as lbl42,'Exteriors' as lbl43,'Interiors' as lbl44,'Ease of Locating Office' as lbl45,'Business Activity' as lbl46,'No. of Employees Sighted in Premises' as lbl47,'Pukka' as lbl48,(case when Field30_22='Pukka' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpukka,'Good' as lbl49,(case when Field30_4='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkextgood,'Painted' as lbl50,(case when Chkfield1='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpainted,'Easy' as lbl51,(case when easeloc='Easy' then 'images/tick.gif' else 'images/untick.jpg' end) as chkeasy,'High' as lblhigh,(case when busiact='Good' then 'images/tick.gif' else 'images/untick.jpg' end) as chkhigh,upper(Field30_17) as empseen,'Semi Pukka' as lbl52,(case when Field30_22='Semi Pukka' then 'images/tick.gif' else 'images/untick.jpg' end) as chkspukka,'Average' as lbl53,(case when Field30_4='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkextavg,'Carpeted' as lbl54,(case when Chkfield2='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcarp,'Difficult' as lbl55,(case when easeloc='Difficult' then 'images/tick.gif' else 'images/untick.jpg' end) as chkdifficult,'Medium' as lbl56,(case when busiact='Average' then 'images/tick.gif' else 'images/untick.jpg' end) as chkmedium,'images/signs/'||sdoneby||'mdrs.png' as singature,'Temporary' as lbl57,(case when Field30_22='Temporary' then 'images/tick.gif' else 'images/untick.jpg' end) as chktempo,'Poor' as lbl58,(case when Field30_4='Poor' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpoor,'Curtains' as lbl59,(case when Chkfield3='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcurt,'Untraceable' as lbl60,(case when easeloc='Untraceable' then 'images/tick.gif' else 'images/untick.jpg' end) as chkuntrace,'Low' as lbl61,(case when busiact='Low' then 'images/tick.gif' else 'images/untick.jpg' end) as chklow,'' as lbl62,'' as lbl62,'Clean' as lbl63,(case when Chkfield4='X' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclean,'' as lbl64,'' as lbl65,'' as lbl66,'' as lbl66_1,'' as lbl66_2,'Scanned by: '||upper(sdonebyname) as sdoneby,'Whether any display of affiliation to political party seen' as lbl67,'Yes' as lbl68,(case when political='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpolyes,'No' as lbl69,(case when political='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chkpolno,'' as lbl70,'RECOMMENDED' as lbl71,(case when status='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrecom,'NOT RECOMMENDED' as lbl72,(case when status='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as chknrecom,'Any Other Remarks' as lbl73,upper(remarks) as supremarks,'I am not associated with the applicant directly or indirectly in the past or in the present and this report has been prepared by me with highest professional integrity' as lbl74,'Verifiers Name & Signature' as lbl75,'Agency Seal' as lbl76,'Agency Managers Signature' as lbl77,upper(overname) as vername,'images/signs/'||sdoneby||'mdrs.png' as stamp,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'' as lbl78,'' as lbl79,('Scanned by: '||upper(sdonebyname)) as supname,'' as lbl80,'Comments & Route Map Overleaf' as lbl81,'If Verified by LIC HFL Officials' as lbl82,'Officials Signature & Designation' as lbl83 from banklist_main_office o where (val0) val1
Query275!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'EMPLOYMENT VERIFICATION REPORT' as lbl1,upper(aliasname)||'-'||upper(bkbranchname) as portbranch,'Name of Applicant' as lbl2,upper(customername) as customername,'Office Address' as lbl3,upper(companyname)||' '||upper(oaddr1)||' '||coalesce(oaddr2)||' '||coalesce(oaddr3) as oaddr,'Address Confirmed' as lbl4,'Yes' as lbl5,(case when addrconfd='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as adrconyes,'No' as lbl7,(case when addrconfd='No' then 'images/tick.gif' else 'images/untick.jpg' end) as adrconno,'Designation of the Applicant' as lbl8,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Date of Visit' as lbl9,visitdate,'Time of Visit' as lbl10,visittime,'Following are based on information obtained from H.R / authorized Executive of the Organisation' as lbl11,'Person Met' as lbl12,upper(metperson) as metperson,'Designation of the Person Met' as lbl13,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Telephone No.' as lbl14,upper(ophone) as ophone,'Ext. No.' as lbl15,upper(extension) as extension,'Mobile No.' as lbl16,mobileno,'Number of Years the Applicant is in Present Business' as lbl16,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Visiting Card Obtained' as lbl17,'Yes' as lbl18,(case when Field30_1='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as viscardyes,'No' as lbl18,(case when Field30_1='No' then 'images/tick.gif' else 'images/untick.jpg' end) as viscardno,'' as lbl19,'(Attach the Visiting Card With this Report)' as lbl20,'Name of Organisation' as lbl21,upper(companyname) as companyname,'No of Employees Working in Office' as lbl22,totemp,'images/signs/'||sdoneby||'mdrs.png' as singature,'Scanned by: '||upper(sdonebyname) as sdoneby,'No of Branches' as lbl23,totbranch,'' as lbl24,'Type of Job of Applicant' as lbl25,'Applicant Working As' as lbl26,'Applicants Job Transferable' as lbl27,'Permanent' as lbl28,(case when jobtype='Permanent' then 'images/tick.gif' else 'images/untick.jpg' end) as chkperm,'Assistant' as lbl29,(case when appdesign='Assistant' then 'images/tick.gif' else 'images/untick.jpg' end) as chkassist,'Supervisor' as lbl30,(case when appdesign='Supervisor' then 'images/tick.gif' else 'images/untick.jpg' end) as chksup,'Yes' as lbl31,(case when transferable='Yes' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrnyes,'Probation' as lbl32,(case when jobtype='Probation' then 'images/tick.gif' else 'images/untick.jpg' end) as chkprob,'Clerk' as lbl33,(case when appdesign='Clerk' then 'images/tick.gif' else 'images/untick.jpg' end) as chkclrk,'Junior Management' as lbl34,(case when appdesign='Jr.Management' then 'images/tick.gif' else 'images/untick.jpg' end) as chkjmgmt,'No' as lbl35,(case when transferable='No' then 'images/tick.gif' else 'images/untick.jpg' end) as chktrnno,'Contract Worker' as lbl36,(case when jobtype='Contract Employee' then 'images/tick.gif' else 'images/untick.jpg' end) as chkcworker,'Typist' as lbl37,(case when appdesign='Typist' then 'images/tick.gif' else 'images/untick.jpg' end) as chktypist,'Senior/Middle Management' as lbl38,(case when appdesign='Sr.Management' then 'images/tick.gif' else 'images/untick.jpg' end) as chksmgmt,'Temporary Worker' as lbl39,(case when jobtype='Temporary Employee' then 'images/tick.gif' else 'images/untick.jpg' end) as chktworker,'Stenographer' as lbl40,(case when appdesign='Stenographer' then 'images/tick.gif' else 'images/untick.jpg' end) as chksteno,'Others' as lbl41,(case when (appdesign='Others' or appdesign='Care Taker' or appdesign='Chairman' or appdesign='Director' or appdesign='Helping Hand' or appdesign='House Wife' or appdesign='Partner' or appdesign='Proprietor' or appdesign='Self Employed') then 'images/tick.gif' else 'images/untick.jpg' end) as chkoth,'' lbl42,'Skilled Labour' as lbl43,(case when appdesign='Skilled Labour' then 'images/tick.gif' else 'images/untick.jpg' end) as chksklabour,(case when (appdesign='Care Taker' or appdesign='Chairman' or appdesign='Director' or appdesign='Helping Hand' or appdesign='House Wife' or appdesign='Partner' or appdesign='Proprietor' or appdesign='Self Employed') then upper(appdesign) when appdesign='Others' then upper(appdesignoth) else '' end) as chkotdesign,'DETAILS OF SALARY VERIFIED FROM' as lbl44,upper(jobproof) as jobproof,'DESIGNATION' as lbl45,'' as lbl46,'' as lbl47,'RECOMMENDED' as lbl71,(case when status='Positive' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrecom,'NOT RECOMMENDED' as lbl72,(case when status='Negative' then 'images/tick.gif' else 'images/untick.jpg' end) as chknrecom,'Any Other Remarks' as lbl73,upper(remarks) as supremarks,'I am not associated with the applicant directly or indirectly in the past or in the present and this report has been prepared by me with highest professional integrity' as lbl74,'Verifiers Name & Signature' as lbl75,'Agency Seal' as lbl76,'Agency Managers Signature' as lbl77,upper(overname) as vername,'images/signs/'||sdoneby||'mdrs.png' as stamp,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as bcode,'' as lbl78,'' as lbl79,('Scanned by: '||upper(sdonebyname)) as supname,'' as lbl80,'Comments & Route Map Overleaf' as lbl81,'If Verified by LIC HFL Officials' as lbl82,'Officials Signature & Designation' as lbl83 from banklist_main_office o where (val0) val1
Query276!C0L!select!C0L!select t.uuid,t.product,t.maincompany,t.bkbranchname,to_char(t.receivedate,'DD/MM/YYYY') as recdate,t.applno,upper(t.customername) cname,t.bank_branch_id,'VERIFICATION REPORT' as lbl1,'RESIDENCE/OFFICE TELEPHONE' as lbl2,upper(aliasname)||'-'||upper(bkbranchname) as portbranch,'Application Number:' as lbl3,upper(t.applno) as applno1,'Date of Application:' as lbl4,to_char(t.receivedate,'DD/MON/YYYY') as receivdate,'Name of Applicant' as lbl6,upper(t.customername) as custname1,'Date of Birth' as lbl7,t.dob,'Name of the Co-Applicant' as lbl8,sublist('select upper(customername)||'' (''||category||'')'' as field from main where apptype=''Co-Applicant'' and upper(applno)='''||t.applno||''' and receivedate='''||t.receivedate||''' and uuid<>'''||t.uuid||'''',',') as coapp,'Residence Address of Applicant' as lbl9,upper(t.raddr) as raddr,'Permanent Address of Applicant' as lbl10,'' as permadd,'' as lbl11,'' as lbl12,'Residence' as lbl13,'Office' as lbl14,'Contact Telephone Numbers' as lbl15,t.rcontno,t.ocontno,'Name of Person Spoken to' as lbl16,upper(t.rcontpers) as rcontpers,upper(t.ocontpers) as ocontpers,'Relation with Applicant' as lbl17,(case when t.rcontrela='Others' then upper(t.rcontrelaoth) else upper(t.rcontrela) end) as rcontrela,(case when t.ocontrela='Others' then upper(t.ocontrelaoth) else upper(t.ocontrela) end) as ocontrela,'' as lbl18,'Name of Company' as lbl19,upper(t.ocompname) as compname,'images/signs/'||t.sdoneby||'mdrs.png' as singature,'Nature of Business' as lbl20,upper(t.onobdesc) as onobdesc,'Office Address' as lbl21,upper(t.oaddr) as oaddr,'Working Since' as lbl22,((case when (t.oworkyrs<>'0' and t.oworkyrs<>'') then t.oworkyrs||' YEARS(S) ' else '' end)||(case when (t.oworkmnth<> '0' and t.oworkmnth <> '') then t.oworkmnth||' MONTH(S)' else '' end)) as yrsatjob,'Designation' as lbl23,(case when t.odesign='Others' then upper(t.odesignoth) else upper(t.odesign) end) as odesign,'Department' as lbl24,upper(t.odepartment) as odepartment,'Telecalling Log' as lbl25,'Scanned by: '||upper(t.sdonebyname) as sdoneby,'' as lbl26,'Resi' as lbl27,'Resi' as lbl28,'Resi' as lbl29,'Office' as lbl30,'Office' as lbl31,'Office' as lbl32,'Attempt' as lbl33,'1st' as lbl34,'2nd' as lbl35,'3rd' as lbl36,'1st' as lbl37,'2nd' as lbl38,'3rd' as lbl39,'Date of Calling' as lbl40,t.rattempt1,t.rattempt2,t.rattempt3,t.oattempt1,t.oattempt2,t.oattempt1,'Time of Calling' as lbl41,t.rtime1,t.rtime2,t.rtime3,t.otime1,t.otime2,t.otime3,'Outcome' as lbl42,t.rstatus1,t.rstatus2,t.rstatus3,t.ostatus1,t.ostatus2,t.ostatus3,'TELE-VERIFICATION OF GUARANTOR & REFERENCES' as lbl43,'' as lbl44,'Guarantor' as lbl45,'Reference I' as lbl46,'Reference II' as lbl47,'Name' as lbl48,upper(t.Field50_1) as gurname,(select upper(r.refname1) from banklist_main_reference r where r.uuid=t.uuid) as refname1,(select upper(r.refname2) from banklist_main_reference r where r.uuid=t.uuid) as refname2,'Telephone No.' as lbl49,upper(t.Field30_1) as gurcontno,(select upper(r.refcontactno1) from banklist_main_reference r where r.uuid=t.uuid) as refcontactno1,(select upper(r.refcontactno2) from banklist_main_reference r where r.uuid=t.uuid) as refcontactno2,'Relationship with Applicant' as lbl50,upper(t.Field30_2) as gurrelation,(select upper(r.Field30_1) from banklist_main_reference r where r.uuid=t.uuid) as ref1rel,(select upper(r.Field30_3) from banklist_main_reference r where r.uuid=t.uuid) as ref2rel,'How Many Years They Know Applicant' as lbl51,upper(t.Field30_3) as gurknown,(select upper(r.Field30_2) from banklist_main_reference r where r.uuid=t.uuid) as ref1known,(select upper(r.Field30_4) from banklist_main_reference r where r.uuid=t.uuid) as ref2known,'Employment Details' as lbl52,upper(t.Field150_1) as gurempdet,'' as lbl53,'Whether he is Guarantor For Any Other Loan' as lbl54,upper(t.Field150_2) as gur4otloan,'' as lbl55,'Whether He is Aware of his Liability as Guarantor' as lbl56,upper(t.Field30_4) as awofloan,'' as lbl57,'Whether Guarantor is Aware of Applicants Loan Quantum/EMI etc' as lbl58,upper(t.Field30_4) as awofloan1,'' as lbl59,'Telecalling Log' as lbl60,'Attempt' as lbl61,'1st' as lbl62,'2nd' as lbl63,'3rd' as lbl64,'4th' as lbl65,'Date of Calling' as lbl66,t.rattempt1 as rrattempt1,t.rattempt2 as rrattempt2,t.rattempt3 as rrattempt3,t.rattempt4 as rrattempt4,'Time of Calling' as lbl67,t.rtime1 as rrtime1,t.rtime2 as rrtime2,t.rtime3 as rrtime3,t.rtime4 as rrtime4,'Outcome' as lbl68,t.rstatus1 as rrstatus1,t.rstatus2 as rrstatus2,t.rstatus3 as rrstatus3,t.rstatus4 as rrstatus4,'Outcome: C (Contacted),CE (Constantly Engaged), NR (No Response)' as lbl69,'Other Remarks' as lbl70,coalesce('Resi TV Remarks: '||t.rremarks) as rremarks,coalesce('Office TV Remarks: '||t.oremarks) as oremarks,coalesce('Refrence1 Remarks: '||(select upper(r.ref1remarks) from banklist_main_reference r where r.uuid=t.uuid)) as ref1remarks,coalesce('Refrence2 Remarks: '||(select upper(r.ref2remarks) from banklist_main_reference r where r.uuid=t.uuid)) as ref2remarks,'I am not associated with the applicant directly or indirectly in the past or in the present and this report has been prepared by me with highest professional integrity.' as lbl71,'Verifiers Name & Signature' as lbl72,'Agency Seal' as lbl73,'Agency Managers Signature' as lbl74,t.telecaller,'images/signs/'||t.sdoneby||'mdrs.png' as singature,t.mvcode||'-'||t.applno||'-'||t.customername||'-OTV-'||(case when t.ocontno is null or t.ocontno ='' then 'NI' else t.ooverallstat end) as bcode,'' as lbl74,'' as lbl75,('Scanned by: '||upper(t.sdonebyname)) as supname,'' as lbl76,'Comments' as lbl77,'If Verified by LIC HFL Officials' as lbl78,'Official''s Signature & Designation' as lbl79 from banklist_main_telecalling t where (val0) val1
Query277!C0L!procedure!C0L!select subvisreport('val0', 'val1', val2, 'val3', 'val4', 'val5', 'val6',val7)
Query280!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,(case compcode when 'arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' ELSE upper(maincompany) END) as mcomp,'Product' as lblprod,upper(product) as product3,'Loan amount as initiated by bank' as lbllamt,upper(loanamount) as loanamounta,'MV Code' as vehmod,upper(mvcode) as vehmodel,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time of Visit' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information has to be obtained from the applicant or any body available at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation on the date of visit' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as repdoneby,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Scanned by: '||upper(sdonebyname) as sdonebyname,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Residence Address Proof' as lblresproof,upper(proofdet) as proofdet,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Agency Supervisor' as label47,portsupervisor,'Agency Verifier' as lblagver,upper(rvername) as rvername,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode,'' as bcell232,'Scanned by: '||upper(sdonebyname) as sdonebyuser,status as watmark,(case when portfolio_id=16 or portfolio_id=141 or portfolio_id=134 or portfolio_id=139 then 'Photographs' else '{SK!PTH15D@TA}' end),(case when portfolio_id=16 or portfolio_id=141 or portfolio_id=134 or portfolio_id=139 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query281!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Loan amount as initiated by bank' as lbllamt,upper(loanamount) as loanamounta,'Vehicle Model and Make' as vehmod,upper(field6) as vehmodel,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3)) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'The following information has to be obtained from the applicant or any body available at the address' as lbldov,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'The following is based on verifier''s observation on the date of visit' as blank12,'Applicant name verified from' as label26,(case when field30_19='-1' then 'NA' else upper(field30_19) end) as nmverfrm,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as repdoneby,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as repdonebyname,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Agency Supervisor' as label38,upper(portsupervisor) as scannedby,'Agency Verifier' as lblagver,upper(overname) as overname,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-OFF-'||status as bcode,'' as bcell232,'Scanned by: '||upper(sdonebyname) as sdonebyuser,status as watmark,(case when portfolio_id=16 or portfolio_id=141 or portfolio_id=134 or portfolio_id=139 then 'Photographs' else '{SK!PTH15D@TA}' end),(case when portfolio_id=16 or portfolio_id=141 or portfolio_id=134 or portfolio_id=139 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query282!C0L!select!C0L!select mvcode,applno,customername,uuid,(case when isdeleted=1 then'DELETED'else 'UNDELETED' end) ,apptype,receivedate,rv,ov,pv,rtv,otv from main_mainopr val0
Query283!C0L!procedure!C0L!select deletecases('val0',val1,val2)
Query284!C0L!insert!C0L!Insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(case when ''val1''=''RHDFCL'' then 719 when ''val1''=''SME'' then 714 when ''val1''=''LAP'' then 819 else -1 end),''val2'',''val1'',NULL,''val0'',''val10'',''-1'',''val3'',NULL,''val6'',''RadDrXS-val4-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,''-1'',NULL,''val5'',''val7'',''OadDrXS-val8-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,''-1'',NULL,NULL,NULL,''val9'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val4'') > 5 then 1 else 0 end),0,(case when length(''val8'') > 5 then 1 else 0 end),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val11,val12,0,''val13'',''val14'','''')
Query285!C0L!select!C0L!select uuid,verifier,mvcode,applno,customername,apptype,product,portname,bkbranchname,to_char(receivedon, 'DD/MM/YYYY HH24:MI:SS') as receivedon,batch,verifiercode,visit,(CASE WHEN (islocked=1 and lockedby>0 and lockedby!=val0) then '
' else '' end) as flags,islocked,COALESCE ((select displayname||' ('||loginid||')' from app_user where user_id=lockedby),'') as lockedbyusr,portfolio_id,'' as ispending,'' as doubtfull,0 as tempf from reporting_bksoftupd where (val1) and (val2) and done=0 order by receivedon,applno,customername,visit asc
Query286!C0L!select!C0L!select portfolio_id,portname from portfolio where branch_id=val0 and isactive=1 and banksoftupd=1 order by portname
Query287!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,replace(name,' ','')||' New DSA/Vendor Verification Format' as label1,'FCU/RCU AGENCY DETAILS:' as label2,'Name of the Agency: MATRIX CREDIT RISK CONTROLS PVT LTD' as label3,'Nmae of the Verifier: '||coalesce(upper(pvername),'NI') as label4,'Date of Verification: '||coalesce(visitdate,'') as label5,'NEW AGENCY DETAILS:' as label6,'Company Name: '||coalesce(upper(customername),'') as label7,'Company Address: '||coalesce(upper(paddr),'') as label8,'Contact Number:'||coalesce(field30_1,'')as label9,'Email-Id:'||coalesce(field50_8,'')as label10,'Date Of Incorporation:'||coalesce(field20_3,'')as label11,'Service applied for:','Contact Person Name(With Degignation):'||coalesce(upper(field50_1)||''||upper(field50_2),'')as label12,'PERSONAL INFORMATION'as label13,'Director / Owner Name(s):'||coalesce(upper(field100_1),'')as label14,'Residence address:'||coalesce(upper(field150_1),'')as label15,'Contect No:'||coalesce(field30_1,'')as label16,'Ownership Status(residence):'||coalesce(upper(field30_2),'')as label17,'No of years of occupancy:'||coalesce(field20_1,'')as label18,'No Of Familly Members:'||coalesce(field10_1,'')as label19,'1.INFRASTRUCTURE OFFICE:'as label20,'Office premises owned or rented:'||coalesce(upper(field30_3),'')as label21,'images/signs/'||sdoneby||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-PROP-'||status as bcode,'Office premises independent or apartment or room:'||coalesce(upper(field30_4),'')as label22,'Office space(in sq ft):'||coalesce(field20_2,'')as label23,'No of Employee working:'||coalesce(field10_2,'')as label24,'No of Employee seen during visit:'||coalesce(field10_5,'')as label25,'Employee Breakup'as label26,'No of employee in house staff:'||coalesce(field10_3,'')as label27,'No of Employee Field staffs'||coalesce(field10_4)as label28,'Physical Infrastructure'as label29,'Number of Computer/Laptops:'||coalesce(field3_2||' LAPTOPS and '||field3_3||'PC')as label30,'Number of workstations:'as label31,'Number of Phone Lines & Fax etc:'||coalesce(field3_4||' PHONS and '||field3_5||'FAX')as label32,'Number of printers:'||coalesce(field3_6,'')as label33,'AC and other infrastructure:'||coalesce(field3_7||' AC and '||field150_2,'')as label34,'2.DOCUMENTS CHECKS:'as label35,'a)Original ID proof checked(Yes/No):'as label36,(case when upper(field3_8) ='YES' then 'YES'||' '||upper(field50_3) else 'NO' end),'b)Orignal ROC/MOU/Partnership deep seen(Yes/No):'as label37,(case when upper(field3_9) ='YES' then 'YES'||' '||upper(field50_4) else 'NO' end),'Orignal officer ownership/rent document seen(Yes/No):'as label38,(case when upper(field3_10) ='YES' then 'YES'||' '||upper(field50_5) else 'NO' end),'3.WORKING REFERENCE CHECK:'as label39,'Existing and previous relationship (at least two):'as label40,'REFERENCE 1:[]Reference name,Company name and Contact number]'as label41,upper(field30_7)||','||upper(field50_6)||','||field30_8,'Feedback:'as label42,fieldtext_2,'REFERENCE 2:[]Reference name,Company name and Contact number]'as label43,upper(field30_9)||','||upper(field50_7)||','||field30_10,'Feedback:'as label44,upper(fieldtext_3),'4.BACKGROUND AND MARKET INFORMATION(TO BE DONE DISCREETLY):'as label45,'1.PREVIOUS WORKS EXPERIENCE:'as label46,field250_1||'Years','2.NEIGHBOURHOOD FEEDBACK:'as label47,upper(fieldtext_1),'POLITICAL CONNECTION:'as label48,upper(political),'ANY CRIMINAL BACKGROUND:'as label49,upper(field250_2),'ANY DEDUPE MATCH(YES/NO):'as label50,upper(field10_8),'5. RESIDENCE PROFILE (POSITIVE/REFER/NEGATIVE):'as label51,upper(field20_8),'6.OFFICE PROFILE(POSITIVE/REFER/NEGATIVE):'as label52,upper(field20_9),'7.OVER ALL STATUS'as label53,'VERIFICATION'as label53,'OUTCOME'as label54,'1.INFRASTRUCTURE OFFICE:'as label54,upper(field20_4),'Document Checks'as label55,upper(field20_5),'Reference Checks'as label55,upper(field20_6),'Background and market information'as label56,upper(field20_7),'Residence profile'as label57,upper(field20_8),'Office profile'as label58,upper(field20_9),'8.FINAL REMARKS BY THE AGENCY:'as label59,upper(remarks),'FINAL AGENCY STATUS:'as label60,upper(status),'SEAL & SIGN','images/signs/'||sdoneby||'.png' as sign,mvcode||'-'||applno||'-'||customername||'-PROP-'||status as bcode from banklist_main_property p where (val0) val1
Query288!C0L!select!C0L!select t.uuid,t.product,t.maincompany,t.bkbranchname,to_char(t.receivedate,'DD/MM/YYYY') as recdate,t.applno,upper(t.customername) cname,t.bank_branch_id,'Residence Verification Report' as title,'Date of visit' as label1,r.visitdate,'Time of visit' as label2,r.visittime,'Product' as label3,upper(r.product) as product1,'File No.' as label4,upper(r.applno) as applno1,'Name of applicant' as label5,upper(r.field50_1) as customername,'Address' as label6,upper(r.raddr) as raddr,'Name of person met' as label7,upper(r.metperson) as metperson,'Relationship with applicant' as label8,(case when r.metrela='Others' then upper(r.metrealoth) else upper(r.metrela) end) as metrela,'Ease of locating' as label18,upper(r.raccess) as raccess,'Landmark' as label22,upper(r.field50_2) as landmark,'Ownership of residence' as label23,(case when r.rowner='Others' then upper(r.owneroth) else upper(r.rowner) end) as rowner,'No of years staying' as label30,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Stay confirmed by' as label31,upper(r.field30_5) as neconfby,'Type of residence' as label37,upper(r.restype) as restype,'Status' as lblrstatus,upper(r.status) as rstatus,'REMARKS: '||upper(r.remarks) as remarks,'Verifier''s name and signature' as label44,upper(r.rvername) as vername,'Agency manager''s name and sign' as label45,upper(r.portsupervisor) as portsupervisor,'Agency name' as label46,upper(r.maincompany) as label47,'Agency seal' as label90,(case when r.applno is not null then 'images/signs/'||r.supervisor||'.png' else 'images/signs/0.png' end) as singature,(case when r.applno is not null then r.mvcode||'-'||r.applno||'-'||r.customername||'-RES-'||r.status else 'RESIDENCE NOT INITIATED' end) as bcode,'' as rpblank,(case r.portfolio_id when 3 then 'PHOTOS' else '{SK!PTH15D@TA}' end) as lblphoto,(case r.portfolio_id when 3 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,'Tele Verification Report' as rtvtitle,'Date of calling' as rtvlabel1,t.rattempt1,'Time of calling' as rtvlabel2,t.rtime1,'Name of applicant' as rtvlabel5,(case when t.rcontno is null or t.rcontno = '' then '' else upper(r.field50_1) end) as rtvcustomername,'Residence Tele-Verification' as rtvlabeltitle,'Contact number' as rtvlabel6,(case when t.rcontno is null or t.rcontno = '' then 'NOT INITIATED' else t.rcontno end) as rtvrcontno,'Contacted' as rtvlabel7,(case when t.rcontacted='No' then upper(t.rnotcontres) else upper(t.rcontacted) end) as rtvchkrcont,'Spoken to' as rtvlabel20,upper(t.rcontpers) as rtvrcontpers,'Relationship with applicant' as rtvlabel21,(case when t.rcontrela='Others' then upper(t.rcontrelaoth) else upper(t.rcontrela) end) as rtvchkfather,'No of years staying' as rtvlabel32,((case when (t.rstayyrs<>'0' and t.rstayyrs<>'') then rstayyrs||' YEARS(S) ' else '' end)||(case when (t.rstaymnth <> '0' and t.rstaymnth <> '') then rstaymnth||' MONTH(S)' else '' end)) as rtvstay,'Ownership of residence' as rtvlabel33,(case when t.rowner='Others' then upper(t.rowneroth) else upper(t.rowner) end) as rowner,'Alternate contact no if any' as rtvlabel41,coalesce(t.field30_1,'NA') as rtvalternameno,'Telecaller''s name and signature' as rtvlabel44,(case when t.rcontno is null or t.rcontno = '' then '' else upper(t.telecaller) end) as rtvvername,'Status' as lblrtstatus,upper(t.roverallstat) as rtstatus,'Agency manager''s name and sign' as rtvlabel45,(case when t.rcontno is null or t.rcontno = '' then '' else upper(t.portsupervisor) end) as rtvportsupervisor,'Agency name' as rtvlabel46,(case when t.rcontno is null or t.rcontno = '' then '' else upper(t.maincompany) end) as rtvlabel47,'Agency Seal' as aseal2,(case when t.rcontno is null or t.rcontno = '' then 'images/signs/0.png' else 'images/signs/'||t.supervisor||'.png' end) as rtvsingature,(case when t.rcontno is null or t.rcontno = '' then 'RESI TELE NOT INITIATED' else t.mvcode||'-'||t.applno||'-'||t.customername||'-RTV-'||t.roverallstat end) as rtvbcode,'' as rtvblank, 'Office Verification Report' as ovtitle,'Date of visit' as ovlabel1,o.visitdate,'Time of visit' as label2,o.visittime,'Product' as ovlabel3,upper(o.product) as ovproduct1,'File No.' as ovlabel4,upper(o.applno) as ovapplno1,'Name of applicant' as ovlabel5,upper(o.field50_1) as ovcustomername,'Address' as ovlabel6,(coalesce(o.companyname||' ','')||upper(o.oaddr)) as ooaddr,'Type of employment' as ovlabel8,upper(o.category) as ovcategory,'Name of person met & His Designation' as label12,(coalesce(upper(o.metperson),'')||coalesce(' ('||(case when o.metrela='Others' then upper(o.metrealoth) else upper(o.metrela) end)||')','')) as ovlabel13,'Applicant working as' as ovlabel14,(case when o.appdesign = 'Others' then upper(o.appdesignoth) else upper(o.appdesign) end) as ovlabel23,'Working Since' as ovlabel24,(case when o.category='Salaried' then ((case when (o.yrsjob<>'0' and o.yrsjob<>'') then o.yrsjob||' YEARS(S) ' else '' end)||(case when (o.mnthjob<> '0' and o.mnthjob <> '') then o.mnthjob||' MONTH(S)' else '' end)||(case when (o.Field15_1<> '0' and o.Field15_1 <> '') then o.Field15_1||' DAY(S)' else '' end)) else '' end) as ovjobsince,'Office Ownership' as ovlabel25,(case when o.ownership = 'Others' then upper(o.owneroth) else upper(o.ownership) end) as ovlabel31,'No of years in business' as ovlabel32,(case when o.category <> 'Salaried' then ((case when (o.yrsjob<>'0' and o.yrsjob<>'') then o.yrsjob||' YEARS(S) ' else '' end)||(case when (o.mnthjob<> '0' and o.mnthjob <> '') then o.mnthjob||' MONTH(S)' else '' end)||(case when (o.Field15_1<> '0' and o.Field15_1 <> '') then o.Field15_1||' DAY(S)' else '' end)) else '' end) as ovbussince,'Nature of business' as ovlabel33,(case when o.compprof = 'Others' then upper(o.compprofoth) else upper(o.compprof) end) as ovchktrd,'Office board seen' as ovlabel39,upper(o.bizboard) as ovlabel40,'No of employees seen at the time of visit' as ovlabel42,o.field30_17 as ovempseen,'Stock level/Business activity seen at the time of visit' as ovlabel43,upper(o.busiact) as ovbusiact,'Business confirmed by' as ovlabel48,upper(o.field30_19) as ovbconfby,'Status' as lblostatus,upper(o.status) as ostatus,'REMARKS: '||upper(o.remarks) as ovremarks,'Verifier''s name and signature' as ovlabel44,upper(o.overname) as ovvername,'Agency manager''s name and sign' as ovlabel45,upper(o.portsupervisor) as ovportsupervisor,'Agency name' as ovlabel46,upper(o.maincompany) as label47,'Agency Seal' as ovaseal,(case when o.applno is null then 'images/signs/0.png' else 'images/signs/'||o.supervisor||'.png' end) as ovsingature,(case when o.applno is null then 'OFFICE NOT INITIATED' else o.mvcode||'-'||o.applno||'-'||o.customername||'-OFF-'||o.status end) as ovbcode,'' as ovblank,(case o.portfolio_id when 3 then 'PHOTOS' else '{SK!PTH15D@TA}' end) as lblphoto,(case o.portfolio_id when 3 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,'Tele Verification Report' as otvtitle,'Date of calling' as otvlabel50,t.oattempt1,'Time of calling' as otvlabe51,t.otime1,'Name of applicant' as otvlabel54,(case when t.ocontno is null or t.ocontno = '' then '' else upper(o.field50_1) end) as otvcustomername,'Office Tele-Verification' as otvlabeltitle1,'Contact number' as otvlabel55,(case when t.ocontno is null or t.ocontno = '' then 'NOT INITIATED' else t.ocontno end) as otvocontno,'Contacted' as otvlabel56,(case when t.ocontacted='No' then upper(t.onotcontres) else upper(t.ocontacted) end) as otvchkocont,'Spoken to & His designation' as otvlabel67,coalesce(upper(t.ocontpers),'')||' ('||(case when t.ocontrela='Others' then coalesce(upper(t.ocontrelaoth),'') else t.ocontrela end)||')' as otvocontpers,'Applicant working since' as otvlabel68,((case when (t.oworkyrs<>'0' and t.oworkyrs<>'') then t.oworkyrs||' YEARS(S) ' else '' end)||(case when (t.oworkmnth <> '0' and t.oworkmnth <> '') then t.oworkmnth||' MONTH(S)' else '' end)) as otvowork,'Applicant''s designation' as otvlabel69,(case when t.odesign is not null and t.odesign='Others' then upper(t.odesignoth) else upper(t.odesign) end) as otvodesign,'Alternate contact no if any' as otvlabel70,coalesce(t.field30_2,'') as otvalternameno,'Telecaller''s name and signature' as otvlabel71,(case when t.ocontno is null or t.ocontno = '' then '' else upper(t.telecaller) end) as otvvername,'Status' as lblotstatus,upper(t.ooverallstat) as otstatus,'Agency manager''s name and sign' as otvlabel72,(case when t.ocontno is null or t.ocontno = '' then '' else upper(t.portsupervisor) end) as otvportsupervisor,'Agency name' as otvlabel73,(case when t.ocontno is null or t.ocontno = '' then '' else upper(t.maincompany) end) as otvlabel74,'Agency Seal' as otvaseal,(case when t.ocontno is null or t.ocontno = '' then 'images/signs/0.png' else 'images/signs/'||t.supervisor||'.png' end) as otvsingature,(case when t.ocontno is null or t.ocontno = '' then 'OFF TELE NOT INITIATED' else t.mvcode||'-'||t.applno||'-'||t.customername||'-OTV-'||t.ooverallstat end) as otvbcode from banklist_main_telecalling t left join banklist_main_residence r on t.uuid=r.uuid left join banklist_main_office o on t.uuid=o.uuid where (val0) val1
Query289!C0L!select!C0L!select to_char(hcdate,'DD/MM/YYYY') as pdate,hctype,remarks from hardcopy where uuid='val0'
Query290!C0L!procedure!C0L!select updatehc('val0','val1','val2','val3',val4,'val5')
Query291!C0L!procedure!C0L!select negdbupdrequest('val0',val1,'val2','val3')
Query292!C0L!select!C0L!select uuid,verifier,mvcode,applno,customername,apptype,product,portname,upper(loginid) as loginid,to_char(requestedon, 'DD/MM/YYYY HH24:MI:SS') as receivedon,batch,verifiercode,visittype,portfolio_id,(case when overallstatus is null or overallstatus='-1' then 'PENDING' else overallstatus end),0 as tempf from negupdrequests where 1=1 and (val1) order by requestedon,applno,visittype desc
Query293!C0L!procedure!C0L!select update_neg_db('val0',val1,'val2','val3','val4','val5','val6')
Query294!C0L!procedure!C0L!select qcktracker('val0', 'val1', val2, val3, val4, 'val5', 'val6', 'val7', 'val8')
Query_OLD295!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||' - RESIDENCE VERIFICATION REPORT' as Field1,'Region' as Field2,'Location' as Field3,'Branch' as Field4,'Ref No / File No' as Field5,'DELHI' as Field6,'DELHI' as Field7,upper(bkbranchname) as Field8,upper(applno) as Field9,'' as Field10,'Date of Verification Received*' as Field11,to_char(receivedate,'dd/MM/yyyy') as Field12,'Date of Report*' as Field13,to_char(sdoneon,'dd/MM/yyyy HH:MI:ss') as Field14,'Date & Time of Visit' as Field15,visitdate||' '||visittime as Field16,'CPV Verification Limit (Local/OGL)' as Field17,(CASe isocl WHEN 'Yes' THEN 'OGL' WHEN 'No' THEN 'LOCAL' ELSE 'NA' end) as Field18,'Name of Applicant' as Field19,upper(customername) as Field20,'Residence Address' as Field21,upper(raddr) as Field22,'Applicant Contact Nos' as Field23,rphone||'/ '||mobileno as Field24,'' as Field25,'Verification Details' as Field26,'Applicant Type' as Field27,upper(apptype) as Field28,'Relation With Applicant (Person meet at the time of visit)' as Field29,(CASE upper(metrela) WHEN 'OTHERS' THEN upper(metrealoth) else upper(metrela) end) as Field30,'(App/Co-App/Gur/Connector/DSA)' as Field31,'Address Confirmed (Y/N)' as Field32,upper(addrconfd) as Field33,'Marital Status (applicant)' as Field34,upper(maritial) as Field35,'Contacted Person Name' as Field36,upper(metperson) as Field37,'No of Family Members' as Field38,totmem as Field39,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'|| (case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as Field58,'Residence Status' as Field40,(CASE upper(rowner) WHEN 'OTHERS' THEN upper(owneroth) else upper(rowner) end) as Field41,'No of Earning Members' as Field42,earning as Field43,'(Owned/ Parental/ Rented/ Com. Provided/ Relative House)' as Field44,'Approx Area of House' as Field45,upper(carpetarea) as Field46,'No of Dependents' as Field47,dependent as Field48,'No of years in the current address' as Field49,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as Field50,'Spouse is working (Y/N)' as Field51,upper(spswork) as Field52,'If Rented - Rent Details' as Field53,'NA' as Field54,'If Yes - Employment Details' as Field55,(CASE upper(spswork) WHEN 'YES' THEN 'Designation: '||upper(spsdesign)||', Employment Details: '||upper(spsempdet) ELSE 'NA' end) as Field56,'Observations' as Field59,'How co-operative was the customer' as Field60,upper(custbehav) as Field61,'Residence Interior Condition' as Field62,upper(interior) as Field63,'(Polite/ Rude)' as Field64,'Location of Residence' as Field65,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) end) as Field66,'Residence Exterior Condition' as Field67,(CASE Field30_4 WHEN '-1' THEN 'NA' ELSE upper(Field30_4) END) as Field68,'(Upper Posh/ Posh/ Average/ Lower)' as Field69,'Address Locating' as Field70,upper(raccess) as Field71,'Construction of House' as Field72,upper(construction) as Field73,'(Easy/ Difficult/ Untraceable)' as Field74,'(Very Good/ Good/ Average/ Bad)' as Field75,'Type of Residence' as Field76,(CASE upper(restype) WHEN 'OTHERS' THEN upper(typeoth) ELSE upper(restype) END) as Field77,'Area Locality' as Field78,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) end) as Field79,'(Bungalow/ Flat/ House/ Temporary Shed/ Chawl)' as Field80,'(Negative/ Slum/ Community Dominated Area)' as Field81,'Assets/ Vehicle Seen at Residence' as Field82,upper(Field150_1) as Field83,'Nearest Landmark' as Field84,upper(Field50_2) as Field85,'Whether Name Plate/ Picture/ Flat of Political Party seen at Residence (Y/N)' as Field86,(CASE upper(political) WHEN 'YES' THEN 'YES - '||politicdet ELSE upper(political) END) as Field87,'TPC/ Neighbour Check' as Field87_1,'Name of the Neighbour / TP' as Field88,'' as Field89,'Neighbour/ TP check status' as Field90,upper(Field30_9) as Field91,'Neighbour/ TP Feedback Remarks' as Field92,upper(Fieldtext_1) as Field93,'De-Dep status (Match found/ Not Match found)' as Field94,'' as Field95,'Overall Status (Recommended/ Not Recommended/ Referred)' as Field96,upper(status) as Field97,'Reasons (If Not recommended or referred)' as Field98,upper(negreason) as Field99,'Overall Remarks of the Visit' as Field100,upper(remarks) as Field101,'Agency Name & Location (Seal with authorised signature)' as Field102,'images/signs/'||sdoneby||'.png' as Field103,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'|| (case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as Field104,'Verifiers Name: '||upper(rvername) as Field105,upper(maincompany)||', '||upper(bcity) as Field106 from banklist_main_residence r where (val0) val1
Query_OLD296!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||' - OFFICE/BUSINESS VERIFICATION REPORT' as Field1,'Region' as Field2,'Location' as Field3,'Branch' as Field4,'Ref No / File No' as Field5,'DELHI' as Field6,'DELHI' as Field7,upper(bkbranchname) as Field8,upper(applno) as Field9,'' as Field10,'Date of Verification Received*' as Field11,to_char(receivedate,'dd/MM/yyyy') as Field12,'Date of Report*' as Field13,to_char(sdoneon,'dd/MM/yyyy HH:MI:ss') as Field14,'Date & Time of Visit' as Field15,visitdate||' '||visittime as Field16,'CPV Verification Limit (Local/OGL)' as Field17,(CASE upper(isocl) WHEN 'YES' THEN 'OGL' ELSE 'LOCAL' END) as Field18,'Name of Applicant' as Field19,upper(customername) as Field20,'Office Name/ Business Name' as Field21,upper(companyname) as Field22,'Office/ Business Address' as Field23,upper(oaddr1)||coalesce(' '||oaddr2)||coalesce(' '||oaddr2) as Field24,'Employment Status (Salaried/ SEP/ SENP)' as Field25,upper(category) as Field26,'Applicant Contact Nos' as Field27,ophone||'/'||mobileno as Field28,'' as Field29,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as Field54,'Verification Details' as Field30,'Applicant Type' as Field31,upper(apptype) as Field32,'Address Confirmed (Y/N)' as Field33,upper(addrconfd) as Field34,'(App/Co-App/Gur/Connector/DSA)' as Field35,'Contacted Person Name' as Field36,upper(metperson) as Field37,'Designation of person met' as Field38,(CASE upper(metrela) WHEN 'OTHERS' THEN upper(metrealoth) ELSE upper(metrela) END) as Field39,'Applicant''s Name Confirmed (Y/N)' as Field38_1,(CASE upper(Field30_19) WHEN 'COULD NOT CONFIRM' THEN 'N' WHEN 'NA' THEN 'NA' ELSE 'Y' END) as Field38_2,'Applicant''s Desig Confirmed (Y/N)' as Field42,(CASE upper(Field30_19) WHEN 'COULD NOT CONFIRM' THEN 'N' WHEN 'NA' THEN 'NA' ELSE 'Y' END) as Field43,'Office Status (Owned/ Parental/ Rented/ Com. Provided/ Relative House)' as Field40,(CASE upper(ownership) WHEN 'OTHERS' THEN upper(owneroth) ELSE upper(ownership) END) as Field41,'No of years in employment' as Field41_1,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as Field40_2,'Business Constitution' as Field44,upper(busitype) as Field45,'Nature of Business' as Field46,upper(proddealt) as Field47,'(Prop/ Partnership/ Pvt Ltd Co/ Govt enterprise)' as Field48,'Type of Job (Contractual/ Permanent)' as Field49,upper(jobtype) as Field50,'Approx Area of Office' as Field51,upper(Field30_3) as Field52,'Observations' as Field55,'Office Name/ Business Sign Board Seen (Y/N)' as Field56,upper(bizboard) as Field57,'Office Interior Condition' as Field58,(CASE WHEN chkfield1='X' THEN 'PAINTED,' ELSE '' END)||(CASE WHEN chkfield2='X' THEN 'CLEAN,' ELSE '' END)||(CASE WHEN chkfield3='X' THEN 'CURTAINS,' ELSE '' END)||(CASE WHEN chkfield4='X' THEN 'CARPETED' ELSE '' END)||', OFF SETUP: '||upper(Field150_1) as Field59,'Location of Office' as Field60,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) END) as Field61,'Office Exterior' as Field62,upper(Field30_4) as Field63,'(Commercial/ Residential)' as Field64,'Address Locating (Easy/ Difficult/ Untracable)' as Field65,upper(easeloc) as Field66,'Nearest Landmark' as Field67,'' as Field68,'Type of Office Setup' as Field69,upper(Field30_22) as Field70,'Area Locality (Negative/ Slum/ Community Dominated Area)' as Field71,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) END) as Field72,'(Proper/ Temporary)' as Field73,'Construction of Office Premises' as Field74,upper(Field30_22) as Field75,'Business Activity' as Field76,upper(busiact) as Field77,'(Very Good/ Good/ Average/ Bad)' as Field78,'(Good/ Low/ Avg)' as Field79,'TPC/ Neighbour Check' as Field80,'Name of the Neighbour / TP' as Field81,'' as Field82,'Neighbour/ TP check status' as Field83,upper(Field30_9) as Field84,'Neighbour/ TP Feedback Remarks' as Field85,upper(fieldtext_1) as Field86,'De-Dep status (Match found/ Not Match found)' as Field87,'' as Field88,'Overall Status (Recommended/ Not Recommended/ Referred)' as Field89,upper(status) as Field90,'Reasons (If Not recommended or referred)' as Field91,upper(negreason) as Field92,'Overall Remarks of the Visit' as Field93,upper(remarks) as Field94,'Agency Name & Location (Seal with authorised signature)' as Field95,'images/signs/'||sdoneby||'.png' as Field96,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as Field97,'Verifiers Name: '||upper(overname) as Field98,upper(maincompany)||', '||upper(bcity) as Field99 from banklist_main_office o where (val0) val1
Query295!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' - RESIDENCE VERIFICATION REPORT' as Field1,'Region' as Field2,'Location' as Field3,'Branch' as Field4,'Ref No / File No' as Field5,'DELHI' as Field6,'DELHI' as Field7,upper(bkbranchname) as Field8,upper(applno) as Field9,'' as Field10,'Date of Verification Received*' as Field11,to_char(receivedate,'dd/MM/yyyy') as Field12,'Date of Report*' as Field13,to_char(sdoneon,'dd/MM/yyyy HH:MI:ss') as Field14,'Date & Time of Visit' as Field15,visitdate||' '||visittime as Field16,'CPV Verification Limit (Local/OGL)' as Field17,(CASe isocl WHEN 'Yes' THEN 'OGL' WHEN 'No' THEN 'LOCAL' ELSE 'NA' end) as Field18,'Name of Applicant' as Field19,upper(customername) as Field20,'Residence Address' as Field21,upper(raddr1)||coalesce(' '||raddr2)||coalesce(' '||raddr3) as Field22,'Applicant Contact Nos' as Field23,rphone||'/ '||mobileno as Field24,'' as Field25,'Verification Details' as Field26,'Applicant Type' as Field27,upper(apptype) as Field28,'Relation With Applicant (Person meet at the time of visit)' as Field29,(CASE upper(metrela) WHEN 'OTHERS' THEN upper(metrealoth) else upper(metrela) end) as Field30,'(App/Co-App/Gur/Connector/DSA)' as Field31,'Address Confirmed (Y/N)' as Field32,upper(addrconfd) as Field33,'Marital Status (applicant)' as Field34,upper(maritial) as Field35,'Contacted Person Name' as Field36,upper(metperson) as Field37,'No of Family Members' as Field38,totmem as Field39,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'|| (case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as Field58,'Residence Status' as Field40,(CASE upper(rowner) WHEN 'OTHERS' THEN upper(owneroth) else upper(rowner) end) as Field41,'No of Earning Members' as Field42,earning as Field43,'(Owned/ Parental/ Rented/ Com. Provided/ Relative House)' as Field44,'Approx Area of House' as Field45,upper(carpetarea) as Field46,'No of Dependents' as Field47,dependent as Field48,'No of years in the current address' as Field49,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as Field50,'Spouse is working (Y/N)' as Field51,upper(spswork) as Field52,'If Rented - Rent Details' as Field53,'NA' as Field54,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'If Yes - Employment Details' as Field55,(CASE upper(spswork) WHEN 'YES' THEN 'Designation: '||upper(spsdesign)||', Employment Details: '||upper(spsempdet) ELSE 'NA' end) as Field56,'Observations' as Field59,'How co-operative was the customer' as Field60,upper(custbehav) as Field61,'Residence Interior Condition' as Field62,upper(interior) as Field63,'(Polite/ Rude)' as Field64,'Location of Residence' as Field65,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) end) as Field66,'Residence Exterior Condition' as Field67,(CASE Field30_4 WHEN '-1' THEN 'NA' ELSE upper(Field30_4) END) as Field68,'(Upper Posh/ Posh/ Average/ Lower)' as Field69,'Address Locating' as Field70,upper(raccess) as Field71,'Construction of House' as Field72,upper(construction) as Field73,'(Easy/ Difficult/ Untraceable)' as Field74,'(Very Good/ Good/ Average/ Bad)' as Field75,'Type of Residence' as Field76,(CASE upper(restype) WHEN 'OTHERS' THEN upper(typeoth) ELSE upper(restype) END) as Field77,'Area Locality' as Field78,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) end) as Field79,'(Bungalow/ Flat/ House/ Temporary Shed/ Chawl)' as Field80,'(Negative/ Slum/ Community Dominated Area)' as Field81,'Assets/ Vehicle Seen at Residence' as Field82,upper(Field150_1) as Field83,'Nearest Landmark' as Field84,upper(Field50_2) as Field85,'Whether Name Plate/ Picture/ Flat of Political Party seen at Residence (Y/N)' as Field86,(CASE upper(political) WHEN 'YES' THEN 'YES - '||politicdet ELSE upper(political) END) as Field87,'TPC/ Neighbour Check' as Field87_1,'Name of the Neighbour / TP' as Field88,'' as Field89,'Neighbour/ TP check status' as Field90,upper(Field30_9) as Field91,'Neighbour/ TP Feedback Remarks' as Field92,upper(Fieldtext_1) as Field93,'De-Dep status (Match found/ Not Match found)' as Field94,'' as Field95,'Overall Status (Recommended/ Not Recommended/ Referred)' as Field96,upper(status) as Field97,'Reasons (If Not recommended or referred)' as Field98,upper(negreason) as Field99,'Overall Remarks of the Visit' as Field100,upper(remarks) as Field101,'Agency Name & Location (Seal with authorised signature)' as Field102,'images/signs/'||sdoneby||(case compcode when 'mcrc' then '' else compcode end)||'.png' as Field103,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'|| (case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as Field104,'Verifiers Name: '||upper(rvername) as Field105,(case compcode when 'arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' ELSE upper(maincompany) END)||', '||upper(bcity) as Field106,(case when portfolio_id=1111 then '{SK!PTH15D@TA}' else 'Photographs' end),(case when portfolio_id=1111 then '{SK!PTH15D@TA}' else sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') end) as photographs from banklist_main_residence r where (val0) val1
Query296!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' - OFFICE/BUSINESS VERIFICATION REPORT' as Field1,'Region' as Field2,'Location' as Field3,'Branch' as Field4,'Ref No / File No' as Field5,'DELHI' as Field6,'DELHI' as Field7,upper(bkbranchname) as Field8,upper(applno) as Field9,'' as Field10,'Date of Verification Received*' as Field11,to_char(receivedate,'dd/MM/yyyy') as Field12,'Date of Report*' as Field13,to_char(sdoneon,'dd/MM/yyyy HH:MI:ss') as Field14,'Date & Time of Visit' as Field15,visitdate||' '||visittime as Field16,'CPV Verification Limit (Local/OGL)' as Field17,(CASE upper(isocl) WHEN 'YES' THEN 'OGL' ELSE 'LOCAL' END) as Field18,'Name of Applicant' as Field19,upper(customername) as Field20,'Office Name/ Business Name' as Field21,upper(companyname) as Field22,'Office/ Business Address' as Field23,upper(oaddr1)||coalesce(' '||oaddr2)||coalesce(' '||oaddr3) as Field24,'Employment Status (Salaried/ SEP/ SENP)' as Field25,upper(category) as Field26,'Applicant Contact Nos' as Field27,ophone||'/'||mobileno as Field28,'' as Field29,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as Field54,'Verification Details' as Field30,'Applicant Type' as Field31,upper(apptype) as Field32,'Address Confirmed (Y/N)' as Field33,upper(addrconfd) as Field34,'(App/Co-App/Gur/Connector/DSA)' as Field35,'Contacted Person Name' as Field36,upper(metperson) as Field37,'Designation of person met' as Field38,(CASE upper(metrela) WHEN 'OTHERS' THEN upper(metrealoth) ELSE upper(metrela) END) as Field39,'Applicant''s Name Confirmed (Y/N)' as Field38_1,(CASE upper(Field30_19) WHEN 'COULD NOT CONFIRM' THEN 'N' WHEN 'NA' THEN 'NA' ELSE 'Y' END) as Field38_2,'Applicant''s Desig Confirmed (Y/N)' as Field42,(CASE upper(Field30_19) WHEN 'COULD NOT CONFIRM' THEN 'N' WHEN 'NA' THEN 'NA' ELSE 'Y' END) as Field43,'Office Status (Owned/ Parental/ Rented/ Com. Provided/ Relative House)' as Field40,(CASE upper(ownership) WHEN 'OTHERS' THEN upper(owneroth) ELSE upper(ownership) END) as Field41,'No of years in employment' as Field41_1,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as Field40_2,'Business Constitution' as Field44,upper(busitype) as Field45,'Nature of Business' as Field46,upper(proddealt) as Field47,'(Prop/ Partnership/ Pvt Ltd Co/ Govt enterprise)' as Field48,'Type of Job (Contractual/ Permanent)' as Field49,upper(jobtype) as Field50,'Approx Area of Office' as Field51,upper(Field30_3) as Field52,'Observations' as Field55,'Office Name/ Business Sign Board Seen (Y/N)' as Field56,upper(bizboard) as Field57,'Office Interior Condition' as Field58,(CASE WHEN chkfield1='X' THEN 'PAINTED,' ELSE '' END)||(CASE WHEN chkfield2='X' THEN 'CLEAN,' ELSE '' END)||(CASE WHEN chkfield3='X' THEN 'CURTAINS,' ELSE '' END)||(CASE WHEN chkfield4='X' THEN 'CARPETED' ELSE '' END)||', OFF SETUP: '||upper(Field150_1) as Field59,'Location of Office' as Field60,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) END) as Field61,'Office Exterior' as Field62,upper(Field30_4) as Field63,'(Commercial/ Residential)' as Field64,'Address Locating (Easy/ Difficult/ Untracable)' as Field65,upper(easeloc) as Field66,'Nearest Landmark' as Field67,'' as Field68,'Type of Office Setup' as Field69,upper(Field30_22) as Field70,'Area Locality (Negative/ Slum/ Community Dominated Area)' as Field71,(CASE upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) END) as Field72,'(Proper/ Temporary)' as Field73,'Construction of Office Premises' as Field74,upper(Field30_22) as Field75,'Business Activity' as Field76,upper(busiact) as Field77,'(Very Good/ Good/ Average/ Bad)' as Field78,'(Good/ Low/ Avg)' as Field79,'TPC/ Neighbour Check' as Field80,'Name of the Neighbour / TP' as Field81,'' as Field82,'Neighbour/ TP check status' as Field83,upper(Field30_9) as Field84,'Neighbour/ TP Feedback Remarks' as Field85,upper(fieldtext_1) as Field86,'De-Dep status (Match found/ Not Match found)' as Field87,'' as Field88,'Overall Status (Recommended/ Not Recommended/ Referred)' as Field89,upper(status) as Field90,'Reasons (If Not recommended or referred)' as Field91,upper(negreason) as Field92,'Overall Remarks of the Visit' as Field93,upper(remarks) as Field94,'Agency Name & Location (Seal with authorised signature)' as Field95,'images/signs/'||sdoneby||(case compcode when 'mcrc' then '' else compcode end)||'.png' as Field96,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as Field97,'Verifiers Name: '||upper(overname) as Field98,(case compcode when 'arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' ELSE upper(maincompany) END)||', '||upper(bcity) as Field99,(case when portfolio_id=1111 then '{SK!PTH15D@TA}' else 'Photographs' end),(case when portfolio_id=1111 then '{SK!PTH15D@TA}' else sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') end) as photographs from banklist_main_office o where (val0) val1
Query297!C0L!insert!C0L!insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE UPPER(''val2'') WHEN ''BHIWADI'' THEN 1426 WHEN ''FARIDABAD'' THEN 1424 WHEN ''PITAMPURA'' THEN 1425 WHEN ''DELHI'' THEN 1156 WHEN ''NOIDA'' THEN 426 WHEN ''NEW DELHI'' THEN 1156 WHEN ''GHAZIABAD'' THEN 1153 WHEN ''GURGAON'' THEN 1154 WHEN ''GREEN PARK'' THEN 1133 WHEN ''JANAK PURI'' THEN 1155 ELSE 0 END),''val5'',(case when UPPER(''val4'')=''HL'' or UPPER(''val4'')=''NHL'' THEN ''Home Loan'' ELSE ''val4'' END),'''',''val6'',(CASE UPPER(trim(''val7'')) WHEN ''CO-APP'' THEN ''Co-Applicant'' WHEN ''GUARANTOR'' THEN ''Guarantor'' ELSE ''Applicant'' END),(case when UPPER(''val10'')=''SALARIED'' THEN ''Salaried'' WHEN UPPER(''val10'')=''SELF-EMPLOYED'' THEN ''Self Employed'' ELSE ''-1'' end),NULL,NULL,''val12'',(CASE WHEN ''val8'' <> ''RV'' and ''val8'' <> ''RRV'' THEN '''' ELSE ''RadDrXS-val9-ERadDrX'' END),(CASE WHEN ''val8'' <> ''RV'' and ''val8'' <> ''RRV'' THEN '''' ELSE ''RadDrX1'' END),(CASE WHEN ''val8'' <> ''RV'' and ''val8'' <> ''RRV'' THEN '''' ELSE ''RadDrX2'' END),NULL,0,-1,NULL,(CASE WHEN ''val8'' <> ''BV'' and ''val8'' <> ''RBV'' THEN ''val12'' ELSE '''' END),(CASE WHEN ''val8'' <> ''BV'' and ''val8'' <> ''RBV'' THEN '''' ELSE trim(''val13'') END),(CASE WHEN ''val8'' <> ''BV'' and ''val8'' <> ''RBV'' THEN '''' ELSE ''OadDrXS-val9-EOadDrX'' END),(CASE WHEN ''val8'' <> ''BV'' and ''val8'' <> ''RBV'' THEN '''' ELSE ''OadDrX1'' END),(CASE WHEN ''val8'' <> ''BV'' and ''val8'' <> ''RBV'' THEN '''' ELSE ''OadDrX2'' END),NULL,0,-1,NULL,NULL,''val11'',(CASE WHEN ''val8'' <> ''RV'' and ''val8'' <> ''RRV'' THEN ''val12'' ELSE '''' END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when ''val8''=''RV'' or ''val8''=''RRV'' then 1 else 0 end),(case when length(''val12'') > 0 and (''val8''=''RV'' or ''val8''=''RRV'') then 0 else 0 end),(case when ''val8''=''BV'' or ''val8''=''RBV'' then 1 else 0 end),(case when length(''val12'') > 0 and (''val8''=''BV'' or ''val8''=''RBV'') then 0 else 0 end),0,0,0,0,0,0,'''',0,0,0,NULL,trim(''val8''),NULL,NULL,NULL,NULL,NULL,NULL,NULL,val14,val15,0,''val16'',''val17'','''')
Query298!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Field Investigation Report - Residence' as Field1,'Fi Details' as Field2,'Application Ref. No' as Field3,upper(applno) as Field4,'' as Field5,'Customer Name' as Field6,upper(customername) as Field7,'' as Field8,'Residence Address 1' as Field9,upper(raddr1)||' '||coalesce(upper(raddr2),'') as Field10,'' as Field11,'Residence Address 2' as Field12,upper(raddr3) as Field13,'' as Field14,'Landmark' as Field15,upper(landmark) as Field16,'' as Field17,'PIN Code' as Field18,rpincode as Field19,'' as Field20,'Tel LL / Mobile No' as Field21,rphone||'/'||mobileno as Field22,'' as Field23,'City' as Field24,(case when upper(rcity)='-1' then '' else upper(rcity) end) as Field25,'' as Field26,'Within City Limit ( YES/NO )' as Field27,(case upper(isocl) when 'YES' then 'NO' when 'NO' then 'YES' else 'NA' end) as Field28,'' as Field29,'State' as Field30,(case when upper(rcity)='-1' then '' else upper(rcity) end) as Field31,'' as Field32,upper(status) as Field33,upper(status) as Field34,upper(status) as Field35,'FI Request Date' as Field36,to_char(receivedate,'DD/MON/YYYY') as Field37,'FI Request Time' as Field38,'' as Field39,'' as Field40,'Date & Time Reported' as Field41,to_char(sdoneon,'DD/MON/YYYY HH24:MI:SS') as Field42,'' as Field43,'' as Field44,'' as Field45,upper(status) as Field46,upper(status) as Field46_1,'Visit Details' as Field47,'Person Contacted' as Field48,upper(metperson) as Field49,'Relationship with Customer' as Field50,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as Field51,'' as Field52,'Date of Visit' as Field53,visitdate as Field54,'Time of Visit' as Field55,visittime as Field56,'' as Field57,upper(status) as Field58,upper(status) as Field59,upper(status) as Field60,upper(status) as Field61,'Residence Details' as Field62,'Doorplate' as Field63,upper(nameplate) as Field64,'Entry Allowed in House' as Field65,(case furlevel when 'Not Seen' then 'NO' when 'NA' then 'NA' else 'NO' end) as Field66,'' as Field67,'Type of Residence' as Field68,(case when restype='Others' then upper(typeoth) else upper(restype) end) as Field69,'Type of Locality' as Field70,(case when locality='Others' then upper(locaoth) else upper(locality) end) as Field71,'' as Field72,'Ownership' as Field73,(case when rowner='Others' then upper(owneroth) else upper(rowner) end) as Field74,'Years at Current Residence' as Field75,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as Field76,'' as Field77,'Interiors' as Field78,upper(interior) as Field79,'Locating (Easy/Difficult)' as Field80,upper(raccess) as Field81,'' as Field82,'Exteriors' as Field83,upper(exterior) as Field84,'Accessibility/Approachability' as Field85,upper(accmode) as Field86,'' as Field87,'Affiliation to any Political Party' as Field88,(case when political='Yes' then upper(political)||' - '||upper(politicdet) else upper(political) end) as Field89,'Market Repuration' as Field90,upper(Field30_16) as Field91,'' as Field92,'Assets Seen' as Field93,(case when chkfield1='X' then 'TV,' else '' end)||(case when chkfield2='X' then 'AC,' else '' end)||(case when chkfield3='X' then 'TELEPHONE,' else '' end)||(case when chkfield4='X' then 'VCR' else '' end) as Field94,'Previous Car' as Field95,(case when Field30_6='Four Wheeler' then upper(Field30_12) else '' end) as Field96,'' as Field97,'Security Guard' as Field98,upper(field30_17) as Field99,'Owned / Financed' as Field100,upper(Field50_3) as Field101,'' as Field102,'Previous Residence Deteails' as Field103,'NA' as Field104,'Years at Previous Residence' as Field105,upper(permadd) as Field106,'' as Field107,'Earning Family Member Details' as Field108,'TOTAL EARNING MEMBER - '||earning||','||(case when length(field30_7) > 3 then upper(field30_7)||' ('||upper(field30_8)||'), ' when length(field30_10) > 3 then upper(field30_10)||' ('||upper(field30_13)||'), ' else '' end) as Field109,'' as Field110,'' as Field111,'' as Field112,upper(status) as Field113,upper(status) as Field114,upper(status) as Field115,'End Use of the Vehicle' as Field116,upper(Field30_11) as Field117,'' as Field118,upper(status) as Field119,upper(status) as Field120,'Neighbour 1' as Field121,'Neighbour 2' as Field122,'Name of Neighbour' as Field123,upper(field30_2) as Field124,'Name of Neighbour' as Field125,upper(field30_18) as Field126,'' as Field127,'Address of Neighbour' as Field128,upper(field30_3) as Field129,'Address of Neighbour' as Field130,upper(field30_19) as Field131,'' as Field132,'Comments' as Field133,upper(fieldtext_1) as Field134,'Comments' as Field135,upper(fieldtext_2) as Field136,'' as Field137,upper(status) as Field138,upper(status) as Field139,'Detailed Comments' as Field140,'Fi Agency Dedupe' as Field141,'' as Field142,'' as Field143,'Overall Status' as Field144,upper(status) as Field145,'' as Field146,'Comments' as Field147,(remarks) as Field148,'' as Field149,upper(status) as Field150,upper(status) as Field151,'FI Agency Details' as Field152,'Name of FI Executive' as Field153,upper(rvername) as Field154,'' as Field155,'images/signs/'||sdoneby||'.png' as Field156,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'|| (case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as Field157,'' as Field158,'Kms' as Field159,upper(distance) as Field160,'Sign and Seal of FI Agency' as Field161,'Name of FI Agency' as Field162,upper(maincompany) as Field163,'' as Field164,upper(status) as Field165 from banklist_main_residence r where (val0) val1
Query299!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Field Investigation Report - Office' as Field1,'Fi Details' as Field2,'Application Ref. No' as Field3,upper(applno) as Field4,'' as Field5,'Customer Name' as Field6,upper(customername) as Field7,'' as Field8,'Name of Organisation' as Field9,upper(companyname) as Field10,'' as Field11,'Office Address 1' as Field12,trim(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')) as Field13,'' as Field14,'Office Address 2' as Field15,upper(oaddr3) as Field16,'' as Field17,'Landmark' as Field18,upper(Field50_5) as Field19,'' as Field20,'PIN Code' as Field21,opincode as Field22,'' as Field23,'Tel No / Mobile No' as Field24,ophone||'/'||mobileno as Field25,'' as Field26,'City' as Field27,upper(ocity) as Field28,'' as Field29,'Within City Limit (YES/NO)' as Field30,(case upper(isocl) when 'YES' then 'NO' when 'NO' then 'YES' else 'NA' end) as Field31,'' as Field32,'State' as Field33,upper(ocity) as Field34,'' as Field35,'Customer Segment ( Salaried / Self Employed )' as Field36,upper(category) as Field37,'' as Field38,status as Field39,status as Field40,status as Field41,'FI Request Date' as Field42,to_char(receivedate,'DD/MON/YYYY') as Field43,'FI Request Time' as Field44,'' as Field45,'' as Field46,'Date & Time Reported' as Field47,to_char(sdoneon,'DD/MON/YYYY HH24:MI:SS') as Field48,'' as Field49,'' as Field50,'' as Field51,status as Field52,status as Field53,'Visit Details' as Field54,'Person Contacted' as Field55,upper(metperson) as Field56,'Relationship with Customer' as Field57,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as Field58,'' as Field59,'Date of Visit' as Field60,visitdate as Field61,'Time of Visit' as Field62,visittime as Field63,'' as Field64,status as Field65,status as Field66,status as Field67,status as Field68,'Office Details' as Field69,'Name of Organisation' as Field70,upper(companyname) as Field71,'Designation of Customer' as Field72,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as Field73,'' as Field74,'Organisation Type ( Partnership firm / Proprietorship / Pvt / Pub )' as Field75,upper(busitype) as Field76,'' as Field77,'' as Field78,'' as Field79,'Nature of Business' as Field80,upper(proddealt) as Field81,'Entry Allowed in Office' as Field82,upper(field30_1) as Field83,'' as Field84,'Doorplate' as Field85,upper(bizboard) as Field86,'Type of Locality' as Field87,(case when locality='Others' then upper(locaoth) else upper(locality) end) as Field88,'' as Field89,'Type of Office' as Field90,(case when field30_16='Other' then upper(field30_17) else upper(field30_16) end) as Field91,'Years at Current Office' as Field92,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as Field93,'' as Field94,'Ownership' as Field95,(case when ownership='Others' then upper(owneroth) else upper(ownership) end) as Field96,'Quantity of Stock' as Field97,upper(stockdet) as Field98,'' as Field99,'Interiors' as Field100,upper(field30_20) as Field101,'Number of Customers' as Field102,(custperday) as Field103,'' as Field104,'Exteriors' as Field105,'' as Field106,'Locating (Easy / Difficult)' as Field107,upper(easeloc) as Field108,'' as Field109,'Business Activity Level' as Field110,(busiact) as Field111,'Accessibility / Approachability' as Field112,(Field30_23) as Field113,'' as Field114,'Number of Employees' as Field115,upper(Field30_19) as Field116,'Market Repuration' as Field117,upper(Field30_22) as Field118,'' as Field119,'Affiliation to any Political Party' as Field120,(case when upper(political)='YES' then upper(political)||'-'||upper(politicdet) else upper(political) end) as Field121,'Any other Business details (Company names - business)' as Field122,upper(field150_3) as Field123,'' as Field124,'Owned / Financed / Free' as Field125,'' as Field126,'Assets Seen' as Field127,(case when chkfield1='X' then 'FAX,' else '' end)||(case when chkfield2='X' then 'TELEPHONE,' else '' end)||(case when chkfield3='X' then 'PHOTOSTAT,' else '' end)||(case when chkfield4='X' then 'COMPUTERS' else '' end) as Field128,'' as Field129,'Security Guard' as Field130,'' as Field131,'Previous Car' as Field132,(case when Field50_7='Four Wheeler' then upper(Field50_7)||', '||upper(Field30_10)||','||upper(Field50_3) else '' end) as Field133,'' as Field134,'Previous Business Details' as Field135,'' as Field136,'Years in Previous Business' as Field137,'' as Field138,'' as Field139,status as Field140,status as Field141,status as Field142,'End Use of the Vehicle' as Field143,upper(Field30_12) as Field144,'' as Field145,status as Field146,status as Field147,'Neighbour 1' as Field148,'Neighbour 2' as Field149,'Name of Neighbour' as Field150,upper(field30_11) as Field151,'Name of Neighbour' as Field152,upper(field30_14) as Field153,'' as Field154,'Address of Neighbour' as Field155,upper(field30_13) as Field156,'Address of Neighbour' as Field157,upper(field30_15) as Field158,'' as Field159,'Comments' as Field160,upper(fieldtext_1) as Field161,'Comments' as Field162,upper(fieldtext_2) as Field163,'' as Field164,status as Field165,status as Field166,'Detailed Comments' as Field167,'Fi Agency Dedupe' as Field168,'' as Field169,'' as Field170,'Overall Status' as Field171,upper(status) as Field172,'' as Field173,'Comments' as Field174,upper(remarks) as Field175,'' as Field176,status as Field177,status as Field178,'FI Agency Details' as Field179,'Name of FI Executive' as Field180,upper(overname) as Field181,'' as Field182,'images/signs/'||sdoneby||'.png' as Field183,mvcode||'-'||applno||'-'||customername||'-'||coalesce(upper(metperson),'NA')||'-'||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9='-1' then 'NA' else upper(field30_9) end)||'-OFF-'||status as Field184,'' as Field185,'Kms' as Field186,upper(distance) as Field187,'Sign and Seal of FI Agency' as Field188,'Name of FI Agency' as Field189,upper(maincompany) as Field190,'' as Field191,status as Field192 from banklist_main_office o where (val0) val1
Query300!C0L!procedure!C0L!select finalizepcases('val0','val1',val2,'val3')
Query301!C0L!select!C0L!Select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id, ' ','RSIDENCE','VERIFICATION REPORT','Applicant Reference No:',applno,'Applicant Name:'as lbl1,upper(customername) as name,'Date of Initiation :'as lbl2, to_char(receivedate,'DD/MM/YYYY') as recdate,'Priority Customer :'as lbl3,'','Sigment :'as lbl4,' ','Info Required:'as lbl5,' ','RVR DETAILS'as lbl6, 'Residence Address :'as lbl6,upper(permadd) as addr,'City :'as lbh7,upper(field30_2)as city,'State :'as lbl8,upper(field30_3)as state,'Country :'as lbl9,upper(field30_4)as country,'Pin Code :'as pin,field30_5 as pin ,'Landmark :', upper(field50_1),'Chang In Address :'as lbl10,(case when upper(changeinadd)='YES'then 'images/tick.gif' else 'images/untick.jpg' end)as changeadd,'Yes'as lbl12,(case when upper(changeinadd)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'No'as lbl12,' ','Resion For Change :'as lbl13,(case when upper(field30_1)='CUSTOMER SHIFTED'then 'images/tick.gif' else 'images/untick.jpg' end), 'Coustomer Shifted'as lbl13,(case when upper(field30_1)='NOT KNOWN'then 'images/tick.gif' else 'images/untick.jpg' end),'Not Known'AS LBL14,(case when upper(field30_1)='TRANSFERRED'then 'images/tick.gif' else 'images/untick.jpg' end),'Transferred'AS LBL15,'Applicant Telephone No :'AS LBL16,phoneno||' / '||othphone,' ', 'images/untick.jpg','Neighbor'as lbl16,'images/untick.jpg','PCO'as lbl17,'images/untick.jpg','Relative'as lbl18,'images/tick.gif'as lbl19,'STD Both', 'Applicant Mobile /Pager No :',phoneno||' / '||othphone,'Name of Person Contacted :',upper(metperson),'Relationship with the applicant :'as lbl18,upper(metrela),' ', 'Person Contacted :'as lbl19,(case when upper(metrela)='APPLICANT'then 'images/tick.gif' else 'images/untick.jpg' end),'Applicant'AS LBL20,(case when upper(metrela)='COLLEAGUE'then 'images/tick.gif' else 'images/untick.jpg' end),'Colleague'AS LBL21,(case when upper(metrela)='FAMILY MEMBER'then 'images/tick.gif' else 'images/untick.jpg' end),'Family Member'AS LBL21, (case when upper(metrela)='FRIEND'then 'images/tick.gif' else 'images/untick.jpg' end),'Friend'AS LBL22,(case when upper(metrela)='NEIGHBOUR'then 'images/tick.gif' else 'images/untick.jpg' end),'Neighbour'AS LBL23,(case when upper(metrela)='OTHERS'then 'images/tick.gif' else 'images/untick.jpg' end),'Others',(case when upper(metrela)='SECURITY'then 'images/tick.gif' else 'images/untick.jpg' end),'Security'AS LBLL24,(case when upper(metrela)='STAFF'then 'images/tick.gif' else 'images/untick.jpg' end), 'Staff'AS LBL25,'IF APPLICANT/FAMILY MEMBER CONTECTED'AS LBL26,'Current Residence Period :'AS LBL27,yrsadd||'Yrs',mnthadd||'Mths','Residence Status :',(case when upper(rowner)='FAMILY/ANCESTRAL'then 'images/tick.gif' else 'images/untick.jpg' end), 'Family Ancedtral'AS LBL27,(case when upper(rowner)='BACHELOR ACCOMODATION'then 'images/tick.gif' else 'images/untick.jpg' end),'Bachelor Acco'AS LBL28,(case when upper(rowner)='COMPANY ACCOMODATION'then 'images/tick.gif' else 'images/untick.jpg' end),'Co.Provided'AS LBL29,(case when upper(rowner)='FAMILY OWNED'then 'images/tick.gif' else 'images/untick.jpg' end),'Family'AS LBL30,' ', (case when upper(rowner)='SELF OWNED'then 'images/tick.gif' else 'images/untick.jpg' end),'Own'AS LBL31,(case when upper(rowner)='PAYING GUEST'then 'images/tick.gif' else 'images/untick.jpg' end),'Paying Guest'AS LBL32,(case when upper(rowner)='RENTED'then 'images/tick.gif' else 'images/untick.jpg' end),'Rented 'AS LBL33,' ','Permanent Address:'AS LBL34, UPPER(permadd),'City :'as lbl35,upper(field30_2),'State :'as lbl36,upper(field30_3),'Country :'as lbl37,upper(field30_4),'Pin Code :'as lbl38,upper(field30_5),'Landmark :'as lbl39,upper(field50_1), 'Residence Type :'as lbl40,(case when upper(restype)='BUNGALOW'then 'images/tick.gif' else 'images/untick.jpg' end),'Bungalow'AS LBL41,(case when upper(restype)='CHAWL'then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl'AS LBL43,(case when upper(restype)='FLAT/PART OF INDEPENDENT'then 'images/tick.gif' else 'images/untick.jpg' end),'Flat'AS LBL43,(case when upper(restype)='OTHERS'then 'images/tick.gif' else 'images/untick.jpg' end),'Others'AS LBL44, (case when upper(restype)='SLUM'then 'images/tick.gif' else 'images/untick.jpg' end),'Slums'AS LBL45,'Residence Telephone at Permanent Address :',phoneno||'/'||othphone,'Applicant DOB :',dob, 'Applicant Qualification :'as lbl45,upper(field30_6),'No of Dependents :'as lbl46,dependent,'Applicant Desig :'as lbl48,upper(design),'Applicant Office Address :'as lbl48, upper(field50_3),'City :',upper(field30_7),'State :'as lbl49,upper(field30_8),'Country :'as lbl50,upper(field30_10),'Pin Code :'as lbl51,upper(field30_11),'Landmark :'as lbl52,upper(field50_2), 'Vehicle Type :'as lbl55,(case when upper(field30_12)='2 WHEELER'then 'images/tick.gif' else 'images/untick.jpg' end) ,'2 wheeler',(case when upper(field30_12)='3 WHEELER'then 'images/tick.gif' else 'images/untick.jpg' end),'3 wheeler'AS LBL56,(case when upper(field30_12)='4 WHEELER'then 'images/tick.gif' else 'images/untick.jpg' end),'4 wheeler','Vehicle Make :', ' ','Vehicle Is :'AS LBL57,(case when upper(field30_13)='CO. PROVIDED'then 'images/tick.gif' else 'images/untick.jpg' end),'Co.Provided',(case when upper(field30_13)='FINANCED'then 'images/tick.gif' else 'images/untick.jpg' end),'Financed'AS LBL57,(case when upper(field30_13)='OWNED'then 'images/tick.gif' else 'images/untick.jpg' end),'Owned'AS LBL59,(case when upper(field30_13)='OTHERS'then 'images/tick.gif' else 'images/untick.jpg' end), 'Other'AS LBL59,'Other :',(case when upper(field30_13)='OTHERS'then '' else ' ' end),'Incom Doc Submitted with Application :'as lbl61,UPPER(field50_1),'Credit Card :'as lbl62,(case when upper(field30_14)='YES'then 'images/tick.gif' else 'images/untick.jpg' end),'Yes'AS LBL62, (case when upper(field30_14)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'NO'AS LBL68,'Card Type :',(case when upper(field30_15)='VISA'then 'images/tick.gif' else 'images/untick.jpg' end),'VISA'AS LBL69,(case when upper(field30_15)='MASTER'then 'images/tick.gif' else 'images/untick.jpg' end),'Master'AS LBL70,(case when upper(field30_15)='OTHERS'then 'images/tick.gif' else 'images/untick.jpg' end),'Other'AS LBL72,' ', 'Card Number :'AS LBL72,field30_16,'Card Limit :'as lbl73,field30_17,'Card Expiry :','Month:'||field30_18,'Year:'||field30_19,' ','IF NEIGHBOUR HAS BEEN CONTECTED'as lbl75, 'Applicant is usually Available at :',upper(field30_20),'Spouse of Applicant Work :',(case when upper(spswork)='YES'then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(spswork)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'No'AS LBL79, 'Applicant Work At :'AS LBL80,UPPER(compname),'Verified From :',(case when upper(field30_21)='SICIETY NAME PLATE'then 'images/tick.gif' else 'images/untick.jpg' end),'Society name plate'AS LBL83,(case when upper(field30_21)='NEIGHBOUR'then 'images/tick.gif' else 'images/untick.jpg' end),'Neighbor'AS LBL85, (case when upper(field30_21)='OTHERS'then 'images/tick.gif' else 'images/untick.jpg' end),'Others'AS LBL86,(case when upper(field30_21)='NAME PLATE ON DOOR'then 'images/tick.gif' else 'images/untick.jpg' end),'Name Plate on door'AS LBL87,(case when upper(field30_21)='WATCHMAN'then 'images/tick.gif' else 'images/untick.jpg' end),'Watchman'AS LBL88,'Other:'AS LBL89,' ',' ', 'OBSERVATIONS'AS LBL90,'Residence Type :',(case when upper(restype)='FLAT/PART OF INDEPENDENT'then 'images/tick.gif' else 'images/untick.jpg' end),'Flat'AS LBL91,(case when upper(restype)='BUNGALOW'then 'images/tick.gif' else 'images/untick.jpg' end),'Bungalow'AS LBL92,(case when upper(restype)='CHAWL'then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl'AS LBL93, (case when upper(restype)='SLUM'then 'images/tick.gif' else 'images/untick.jpg' end),'Slums','Other:',(case when upper(restype)='OTHERS'then typeoth else ' ' end),'Aproximate Area(in sqft) :'as lbl95,upper(carpetarea),'No of People Living In the House :',totmem, 'Appearance of the residance :',(case when upper(furlevel)='HIGH'then 'images/tick.gif' else 'images/untick.jpg' end),'Excellent'AS LBL96,(case when upper(furlevel)='MIDDLE'then 'images/tick.gif' else 'images/untick.jpg' end),'Fair'AS LBL97,(case when upper(furlevel)='UPPER MIDDLE'then 'images/tick.gif' else 'images/untick.jpg' end),'Good'AS LBL96,(case when upper(furlevel)='POOR'then 'images/tick.gif' else 'images/untick.jpg' end), 'Poor'AS LBL97,'Locality:',(case when upper(locality)='LOWER CLASS'then 'images/tick.gif' else 'images/untick.jpg' end),'Low class Area'AS LBL98,(case when upper(locality)='LOWER MIDDLE CLASS'then 'images/tick.gif' else 'images/untick.jpg' end),'Lower middle Class'AS LBL99,(case when upper(locality)='MIDDLE CLASS'then 'images/tick.gif' else 'images/untick.jpg' end),'Middle class'AS LBL100,(case when upper(locality)='UPPER MIDDLE CLASS'then 'images/tick.gif' else 'images/untick.jpg' end),'Upper Middle Class',(case when upper(locality)='POSH'then 'images/tick.gif' else 'images/untick.jpg' end),'Posh'AS LBL101,'Locating the address :'AS LBL102,(case when upper(raccess)='DIFFICULT'then 'images/tick.gif' else 'images/untick.jpg' end),'Difficult'AS LBL104,(case when upper(raccess)='EASY'then 'images/tick.gif' else 'images/untick.jpg' end),'Easy'AS LBL105,(case when upper(raccess)='LITTLE DIFFICULT'then 'images/tick.gif' else 'images/untick.jpg' end),'Little Difficult'AS LBL106,(case when upper(raccess)='UNTRACEABLE'then 'images/tick.gif' else 'images/untick.jpg' end),'Unable to locate'AS LBL107,(case when upper(raccess)='VERY DIFFICULT'then 'images/tick.gif' else 'images/untick.jpg' end),'Very deficult'AS LBL108,'Assets Visibal :',(case when upper(chkfield1)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'TV'as lbl110,(case when upper(chkfield2)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'Phone'AS LBL111,(case when upper(chkfield3)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'Refrigrator'AS LBL112,(case when upper(chkfield4)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'Music System',(case when upper(chkfield5)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'Cooler'AS LBL114,(case when upper(chkfield6)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'A/C'AS LBL116,(case when upper(chkfield7)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'PC',(case when upper(chkfield8)!='X'then 'images/tick.gif' else 'images/untick.jpg' end),'Photocopier'AS LBL118,'Other :'AS LBL119,' ','Proof of Visit Collected :'AS LBL120,'images/tick.gif','Yes'as lbl121,'images/untick.jpg'as lbl,'No','Details :',' ','Rout Map Drawn :'as lbl122,(case when upper(field30_22)='YES'then 'images/tick.gif' else 'images/untick.jpg' end),'Yes'as lbl123,(case when upper(field30_22)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'No'as lbl124,'Negative Area :',(case when upper(field30_23)='YES'then 'images/tick.gif' else 'images/untick.jpg' end),'Yes'as lbl125,(case when upper(field30_23)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'No'as lbl126,'OCL :',(case when upper(isocl)='YES'then 'images/tick.gif' else 'images/untick.jpg' end),'Yes'as lbl127,(case when upper(isocl)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'No'as lbl128,'TPS Done Or Not :',(case when upper(field30_24)='YES'then 'images/tick.gif' else 'images/untick.jpg' end),'Yes'as lbl129,(case when upper(field30_24)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'No'as lbl130,'Details :'as lbl131,(case when upper(field30_24)='YES'then upper(field50_10) else 'NA' end),'Any Other Info :'as lbl133,upper(field50_2),' ','FE Code :'as lbl137,upper(field30_25),'FE Name :'as lbl138,upper(field50_3),'FE Sign :',' ',' ','FE Sign :',(case when upper(field50_4)='PRESENT'then 'images/tick.gif' else 'images/untick.jpg' end),'Present',(case when upper(field50_4)='NOT PRESENT'then 'images/tick.gif' else 'images/untick.jpg' end),'Not Present'as lbl,'Date :',to_char(sdoneon,'DD/MM/YYYY') ,'Time :',to_char(sdoneon,'HH24:MM:SS'),' ','Inputter Code :',' ','Inputter Name :',' ',' ','DE Agency Code :',mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode ,'Date :',to_char(sdoneon,'DD/MM/YYYY'),'Time :',to_char(sdoneon,'HH24:MM:SS'),' ','New Details Obtains :','','RATING','Address Confirmation :',(case when upper(field50_5)='NOT CONFIRMED'then 'images/tick.gif' else 'images/untick.jpg' end),'Not Confirmed',(case when upper(field50_5)='CONFIRMED'then 'images/tick.gif' else 'images/untick.jpg' end),'Confirmed',(case when upper(field50_5)='REFUSED TO PROVIDE'then 'images/tick.gif' else 'images/untick.jpg' end),'Refused to Provide',' ','Contactability :',(case when upper(field50_6)='NEIGHBOUR CONTACTED'then 'images/tick.gif' else 'images/untick.jpg' end),'Neighbour Contacted',(case when upper(field50_6)='UNCONTACTABLE'then 'images/tick.gif' else 'images/untick.jpg' end),'Uncontactable',(case when upper(field50_6)='ENGAGED'then 'images/tick.gif' else 'images/untick.jpg' end),'Engaged',(case when upper(field50_6)='CONTACTABLE'then 'images/tick.gif' else 'images/untick.jpg' end),'Contactable',(case when upper(field50_6)='OUT OF SERVICE'then 'images/tick.gif' else 'images/untick.jpg' end),'Out Of Service',(case when upper(field50_6)='PNR'then 'images/tick.gif' else 'images/untick.jpg' end),'RNR',':',(case when upper(field50_6)='TEMPORARILY DISCONECTED'then 'images/tick.gif' else 'images/untick.jpg' end),'Termporarily Disconected',(case when upper(field50_6)='INCORRECT NUMBER'then 'images/tick.gif' else 'images/untick.jpg' end),'Incorrect Number',(case when upper(field50_6)='INCOMPLETE NUMBER'then 'images/tick.gif' else 'images/untick.jpg' end),'Incomplete Number','Blank','Confirmation Of Application :',(case when upper(field50_7)='APPLIED'then 'images/tick.gif' else 'images/untick.jpg' end),'Applied',(case when upper(field50_7)='NOT APPLIED'then 'images/tick.gif' else 'images/untick.jpg' end),'Not Applied',(case when upper(field50_7)='NOT KNOWN'then 'images/tick.gif' else 'images/untick.jpg' end),'Not Known',(case when upper(field50_7)='UNABLE TO CONFIRM'then 'images/tick.gif' else 'images/untick.jpg' end),'Unable to Confirmed',' ','Profile :',(case when upper(field50_8)='POOR'then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(field50_8)='UNABLE TO CONFIRMED'then 'images/tick.gif' else 'images/untick.jpg' end),'Unable to Confirmed',(case when upper(field50_8)='EXCELLENT'then 'images/tick.gif' else 'images/untick.jpg' end),'Exellent',(case when upper(field50_8)='GOOD'then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field50_8)='BAD'then 'images/tick.gif' else 'images/untick.jpg' end),'Bad',(case when upper(field50_8)='AVERAGE'then 'images/tick.gif' else 'images/untick.jpg' end),'Average',(case when upper(field50_8)='FAILURE'then 'images/tick.gif' else 'images/untick.jpg' end),'Failure',' ','Reputation :',(case when upper(field50_9)='POOR'then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(field50_9)='UNABLE TO CONFIRMED'then 'images/tick.gif' else 'images/untick.jpg' end),'Unable to Confirmed',(case when upper(field50_9)='EXCELLENT'then 'images/tick.gif' else 'images/untick.jpg' end),'Exellent',(case when upper(field50_9)='GOOD'then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field50_9)='BAD'then 'images/tick.gif' else 'images/untick.jpg' end),'Bad',(case when upper(field50_9)='AVERAGE'then 'images/tick.gif' else 'images/untick.jpg' end),'Average',(case when upper(field50_9)='FAILURE'then 'images/tick.gif' else 'images/untick.jpg' end),'Failure','Negmatch :',(case when upper(field50_9)='YES'then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(field50_9)='NO'then 'images/tick.gif' else 'images/untick.jpg' end),'No','Overall Assesment :',(case when upper(status)='RCC REQUEST'then 'images/tick.gif' else 'images/untick.jpg' end),'RCC Request',(case when upper(status)='NEUTRAL'then 'images/tick.gif' else 'images/untick.jpg' end),'Neutral',(case when upper(status)='NEGATIVE'then 'images/tick.gif' else 'images/untick.jpg' end),'Not Recommended',(case when upper(status)='POSTIVE'then 'images/tick.gif' else 'images/untick.jpg' end),'Recommended',' ','Reason For above assessment :',upper(remarks),'Decline ressons :',upper(negreason),' ','Supervisor code :','','Supervisor Name:',upper(reportdoneby),'Supervisor Sign:',reportdoneby,' ','Date :',to_char(sdoneon,'DD/MM/YYYY'),'Time :',to_char(sdoneon,'HH24:MM:SS'),'CPV Agency Stamp:','images/signs/'||supervisor||'.png',' ','Sign Available :','images/tick.gif','Present','images/untick.jpg','Not Present','Stamp :','images/tick.gif','Present','images/untick.jpg','Not Present','CPV Score :',' ',status from banklist_main_residence where (val0) val1
Query--302OLD!C0L!procedure!C0L!select updateasdownloaded('val0','val1',val2,'val3');
Query302!C0L!select!C0L!select (case 'val0' when 'R' then resphotopath when 'O' then offphotopath else prophotopath end) as photopath from main_mainopr where mvcode='val1'
Query303!C0L!select!C0L!select uuid,fmvcode,applno,replace(customername,'&','and') as customername,apptype,visit,addr,city,pincode,phoneno,notes,'ver'||lower(verifiercode),portname,product,contactperson,to_char(allocationon,'YYYY/MM/DD HH24:MI:SS') as addedon,inittype,requiredphoto from mnimble_photosheet where branch_id=val0 order by fmvcode
Query304!C0L!procedure!C0L!select verphotomis('val0', 'val1', 'val2', val3, 'val4', 'val5', 'val6',val7)
Query305!C0L!procedure!C0L!select subphotoreport('val0', 'val1', val2, 'val3', 'val4', 'val5', 'val6',val7)
Query306!C0L!procedure!C0L!select monthvisitmis('val0', 'val1', 'val2', val3, 'val4', 'val5', 'val6', '',val7)
Query307!C0L!insert!C0L!insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',1091,''val0'',''Cross CPV'',''val2'',''val3'',''Applicant'',''-1'',NULL,NULL,''val5'',(CASE WHEN lower(''val9'') = ''rv'' THEN ''RadDrXS-val4-ERadDrX'' ELSE NULL END),(CASE WHEN lower(''val9'') = ''rv'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN lower(''val9'') = ''rv'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,(CASE WHEN lower(''val9'') = ''rv'' THEN ''val5'' ELSE NULL END),(CASE WHEN lower(''val9'') = ''bv'' THEN ''val8'' ELSE NULL END),(CASE WHEN lower(''val9'') = ''bv'' THEN ''OadDrXS-val6-EOadDrX'' ELSE NULL END),(CASE WHEN lower(''val9'') = ''bv'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN lower(''val9'') = ''bv'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,(CASE WHEN lower(''val9'') = ''bv'' THEN ''val7'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when lower(''val9'') = ''rv'' then 1 else 0 end),0,(case when lower(''val9'') =''bv'' then 1 else 0 end),0,0,0,0,0,0,0,''val1'',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val10,val11,0,''val12'',''val13'','''')
Query--308_OLD!C0L!insert!C0L!insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN ''val8'' = ''508'' THEN 1110 WHEN ''val8'' = ''509'' THEN 1813 ELSE -1 END),''val0'',''Home Loan'',NULL,''val3'',''Applicant'',(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''Salaried'' ELSE ''-1'' END),NULL,NULL,''val12'',(CASE WHEN ''val6'' = ''EXT_RES'' THEN ''RadDrXS-val11-ERadDrX'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_RES'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_RES'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val9'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''OadDrXS-val11-EOadDrX'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val18-val19'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val21'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val13'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val6'' = ''EXT_RES'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val6'' = ''EXT_RES'' THEN 0 ELSE 1 END),0,0,0,0,0,0,0,''val17'',0,0,0,NULL,(CASE ''val1'' WHEN ''B'' THEN ''Borrower'' WHEN ''C'' THEN ''Co-Borrower'' WHEN ''L'' THEN ''Local Contact'' WHEN ''P'' THEN ''POA'' WHEN ''PG'' THEN ''PG-Guarantor'' ELSE ''-1'' END),''val5'',NULL,NULL,NULL,NULL,NULL,NULL,val24,val25,0,''val26'',''val27'','''')
Query308!C0L!insert!C0L!insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN ''val9'' = ''508'' THEN 1110 WHEN ''val9'' = ''509'' THEN 1813 ELSE -1 END),''val0'',''Home Loan'',NULL,''val3'',''Applicant'',(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''Salaried'' ELSE ''-1'' END),NULL,NULL,''val13'',(CASE WHEN ''val6'' = ''EXT_RES'' THEN ''RadDrXS-val12-ERadDrX'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_RES'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_RES'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val10'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''OadDrXS-val12-EOadDrX'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val19-val20'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val22'' ELSE NULL END),(CASE WHEN ''val6'' = ''EXT_EMP'' THEN ''val14'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val6'' = ''EXT_RES'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val6'' = ''EXT_RES'' THEN 0 ELSE 1 END),0,0,0,0,0,0,0,''val18'',0,0,0,NULL,''val8'',''val5'',(CASE ''val1'' WHEN ''B'' THEN ''Borrower'' WHEN ''C'' THEN ''Co-Borrower'' WHEN ''L'' THEN ''Local Contact'' WHEN ''P'' THEN ''POA'' WHEN ''PG'' THEN ''PG-Guarantor'' ELSE ''-1'' END),NULL,NULL,NULL,NULL,NULL,val25,val26,0,''val27'',''val28'','''')
Query309!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN ''val3''=''SBS CS SAL'' THEN 1456 WHEN ''val3''=''PSBL'' THEN 1458 WHEN ''val3''=''SOL'' THEN 1455 WHEN ''val3''=''SPL'' THEN 1465 WHEN ''val3''=''LAP'' THEN 1463 WHEN ''val3''=''DLRM'' THEN 1496 WHEN ''val3''=''SHOL'' THEN 1459 WHEN ''val3''=''Home Loan'' THEN 1462 WHEN ''val3''=''SHL'' THEN 1464 WHEN ''val3''=''SBS CS HL'' THEN 1466 WHEN ''val3''=''SBS CS SHL'' THEN 1467 WHEN ''val3''=''PRO'' THEN 1469 WHEN ''val3''=''Doctors'' THEN 1472 WHEN ''val3''=''SBS CS PSBL'' THEN 1454 WHEN ''val3''=''SAL'' THEN 1457 ELSE ''-1'' END),''val2'',(CASE WHEN ''val3''=''PL'' THEN ''Personal Loan'' WHEN ''val3''=''SBS CS SAL'' THEN ''SAL'' WHEN ''val3''=''PSBL'' THEN ''BL'' WHEN ''val3''=''LAP'' THEN ''LAP'' WHEN ''val3''=''SHOL'' THEN ''SHOL'' WHEN ''val3''=''Home Loan'' THEN ''Home Loan'' WHEN ''val3''=''SHL'' THEN ''Home Loan'' WHEN ''val3''=''SBS CS HL'' THEN ''Home Loan'' WHEN ''val3''=''SBS CS SHL'' THEN ''Home Loan'' WHEN ''val3''=''Doctors'' THEN ''DOCTORS'' WHEN ''val3''=''DOCTORS'' THEN ''DOCTORS'' WHEN ''val3''=''SBS CS PSBL'' THEN ''BL'' WHEN ''val3''=''SPL'' THEN ''SPL'' WHEN ''val3''=''PRO'' THEN ''PL PRO'' WHEN ''val3''=''BL'' THEN ''BL'' WHEN ''val3''=''BOL'' THEN ''BOL'' WHEN ''val3''=''SAL'' THEN ''SAL'' WHEN ''val3''=''SOL'' THEN ''SOL'' WHEN ''val3''=''DLRM'' THEN ''DLRM'' ELSE ''-1'' END),NULL,''val1'',''Applicant'',''-1'',NULL,NULL,''val10'',(CASE WHEN ''val6''=''Residence verification'' THEN ''RadDrXS-val8-ERadDrX'' ELSE NULL END),(CASE WHEN ''val6''=''Residence verification'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val6''=''Residence verification'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,(CASE WHEN ''val6''=''Residence verification'' THEN ''val9'' ELSE NULL END),NULL,(CASE WHEN ''val6''=''Office verification'' THEN ''OadDrXS-val8-EOadDrX'' ELSE NULL END),(CASE WHEN ''val6''=''Office verification'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val6''=''Office verification'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,(CASE WHEN ''val6''=''Office verification'' THEN ''RadDrX2'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val6''=''Residence verification'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val6''=''Office verification'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val11,val12,0,''val13'',''val14'','''')
Query3091!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN ''val3''=''DLRM'' THEN 1496 ELSE 81 END),''val2'',(CASE WHEN ''val3''=''PL'' THEN ''Personal Loan'' WHEN ''val3''=''DLRM'' THEN ''DLRM'' ELSE ''-1'' END),NULL,''val1'',''Applicant'',''-1'',NULL,NULL,''val10'',(CASE WHEN ''val6''=''Residence verification'' THEN ''RadDrXS-val8-ERadDrX'' ELSE NULL END),(CASE WHEN ''val6''=''Residence verification'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val6''=''Residence verification'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,(CASE WHEN ''val6''=''Residence verification'' THEN ''val9'' ELSE NULL END),NULL,(CASE WHEN ''val6''=''Office verification'' THEN ''OadDrXS-val8-EOadDrX'' ELSE NULL END),(CASE WHEN ''val6''=''Office verification'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val6''=''Office verification'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,(CASE WHEN ''val6''=''Office verification'' THEN ''RadDrX2'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val6''=''Residence verification'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val6''=''Office verification'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val11,val12,0,''val13'',''val14'','''')
Query310!C0L!procedure!C0L!select vervisitmis('val0', 'val1', val2, 'val3', 'val4', 'val5', 'current_dist_visit_mis',val7)
Query311!C0L!procedure!C0L!select subvisreport('val0', 'val1', val2, 'val3', 'val4', 'val5', 'val6',val7)
Query312!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',465,''val2'',(CASE ''val3'' WHEN ''MSME TERM LOANS'' THEN ''Term Loan'' WHEN ''Property'' THEN ''Property'' WHEN lower(''home loan'') THEN ''Home Loan'' ELSE ''-1'' END),NULL,''val4'',(CASE ''val13'' WHEN ''App'' THEN ''Applicant'' WHEN ''Co'' THEN ''Co-Applicant'' WHEN ''Guarantor'' THEN ''Guarantor'' ELSE ''-1'' END),''-1'',NULL,NULL,''val8'',''RadDrXS-val5-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val7'',''val9'',''OadDrXS-val5-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,''val12'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN length(''val5'') > 5 THEN 1 ELSE 0 END),0,(CASE WHEN length(''val10'') > 5 THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val14,val15,0,''val16'',''val17'','''')
Query313!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE ''val1'' WHEN ''PRT'' THEN 100 WHEN ''DFC'' THEN 98 WHEN ''GUR'' THEN 797 ELSE -1 END),''val0'',(CASE ''val11'' WHEN ''HL'' THEN ''Home Loan'' WHEN ''HE'' THEN ''HE'' WHEN ''CONNECTOR'' THEN ''Connector'' WHEN ''DSA'' THEN ''DSA'' WHEN ''RENTAL'' THEN ''Rental'' WHEN ''SELLER'' THEN ''Seller'' ELSE ''-1'' END),NULL,''val3'',(CASE ''val2'' WHEN ''APPLICANT'' THEN ''Applicant'' WHEN ''CO-APPLICANT'' THEN ''Co-Applicant'' ELSE ''-1'' END),''-1'',NULL,NULL,(CASE WHEN length(''val6'') > 2 THEN ''val6'' ELSE NULL END),(CASE WHEN length(''val4'') > 2 THEN ''RadDrXS-val4-ERadDrX'' ELSE NULL END),''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,NULL,(CASE WHEN length(''val7'') > 2 THEN ''val7'' ELSE NULL END),(CASE WHEN length(''val8'') > 2 THEN ''OadDrXS-val8-EOadDrX'' ELSE NULL END),''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,(CASE WHEN length(''val10'') > 2 THEN ''val10'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN length(''val4'') > 2 THEN 1 ELSE 0 END),0,(CASE WHEN length(''val8'') > 2 THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val15,val16,0,''val17'',''val18'','''')
Query314!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN position(''GGN'' in ''val1'') > 0 THEN 977 WHEN position(''FBD'' in ''val1'') > 0 THEN 1256 ELSE -1 END),''val1'',''val4'',NULL,''val2'',(CASE ''val8'' WHEN ''App'' THEN ''Applicant'' WHEN ''Co'' THEN ''Co-Applicant'' WHEN ''Guarantor'' THEN ''Guarantor'' ELSE ''-1'' END),''-1'',NULL,NULL,''val6'',(CASE WHEN ''val5'' = ''Resi'' THEN ''RadDrXS-val3-ERadDrX'' ELSE NULL END),(CASE WHEN ''val5'' = ''Resi'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val5'' = ''Resi'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,(CASE WHEN ''val5'' = ''Resi'' THEN ''val6'' ELSE NULL END),NULL,(CASE WHEN ''val5'' = ''Office'' THEN ''OadDrXS-val3-EOadDrX'' ELSE NULL END),(CASE WHEN ''val5'' = ''Office'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val5'' = ''Office'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,(CASE WHEN ''val5'' = ''Office'' THEN ''val6'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val5'' = ''Resi'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val5'' = ''Office'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val9,val10,0,''val11'',''val12'','''')
Query315!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',825,''val0'',(CASE WHEN ''val15'' = ''HOME LOAN'' THEN ''Home Loan'' WHEN ''val15'' = ''LAP'' THEN ''LAP'' ELSE ''-1'' END),(CASE WHEN length(''val16'') > 2 THEN ''val16'' ELSE NULL END),''val3'',(CASE WHEN ''val2''=''APPLICANT'' THEN ''Applicant'' WHEN ''val2''=''CO-APPLICANT'' THEN ''Co-Applicant'' ELSE ''-1'' END),(CASE WHEN ''val5''=''BUSINESS'' THEN ''Self Employed'' WHEN ''val5''=''SALARIED'' THEN ''Salaried'' ELSE ''-1'' END),''val4'',NULL,(CASE WHEN length(''val9'') > 2 THEN ''val9'' ELSE NULL END),(CASE WHEN length(''val6'') > 2 THEN ''RadDrXS-val6-ERadDrX'' ELSE NULL END),(CASE WHEN length(''val6'') > 2 THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN length(''val6'') > 2 THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,(CASE WHEN length(''val8'') > 2 THEN ''val8'' ELSE NULL END),(CASE WHEN length(''val10'') > 2 THEN ''val10'' ELSE NULL END),(CASE WHEN length(''val12'') > 2 THEN ''OadDrXS-val12-EOadDrX'' ELSE NULL END),(CASE WHEN length(''val12'') > 2 THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN length(''val12'') > 2 THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,(CASE WHEN length(''val11'') > 2 THEN ''val11'' ELSE NULL END),(CASE WHEN length(''val13'') > 2 THEN ''val13'' ELSE NULL END),(CASE WHEN length(''val14'') > 2 AND ''val14'' <> ''NA'' THEN ''val14'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN length(''val6'') > 2 THEN 1 ELSE 0 END),(CASE WHEN length(''val6'') > 2 AND (length(''val9'') > 2 OR length(''val8'') > 2) THEN 1 ELSE 0 END),(CASE WHEN length(''val12'') > 2 THEN 1 ELSE 0 END),(CASE WHEN length(''val12'') > 2 AND (length(''val9'') > 2 OR length(''val13'') > 2) THEN 1 ELSE 0 END),0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val17,val18,0,''val19'',''val20'','''')
Query316!C0L!select!C0L!select ar_template,template_vals from autorem_templates where portfolio_id=val0 and report_type='val2' val1
Query(old)317!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Applicant Name:-'||upper(customername)||' AppRefNo:-'||applno,'ARVEE BIZPRO SOLUTION PVT.LTD','MERCHANT PRE- SIGN UP RISK REPORT','MERCHANT ESTABLISHMENT SITE VERIFICATION','App. Ref.#:-'as lbl1,applno,'Establishment Name:-'as lbl2,upper(customername) as establishname ,'Trading Name(Known As):-'as lbl3,upper(customername) as tradingname,'Contact Person:-'as lbl4 ,contactperson as contperson,'Tel.#:-'as lbl5,mobileno as mob,'Person Met:-'as lbl6,upper(field30_2),'Designation:-'as lbl7,upper(field30_3)as desig,'Address:-'as lbl8,upper(paddr1||' '||paddr2||' '||paddr3||' '||ppincode),'City:-'as lbl9,upper(paddr3),'Pin Code:-'as lbl10,ppincode,'Locality:-'as lbl11,(case when upper(field30_4)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),'Posh'as lbl12,(case when upper(field30_4)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial'as lbl13,(case when upper(field30_4)='RESIDENTAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential'as lbl14,(case when upper(field30_4)='HIGHWAY' then 'images/tick.gif' else 'images/untick.jpg' end),'Highway'as lbl15,'',(case when upper(field30_4)='REMOTE' then 'images/tick.gif' else 'images/untick.jpg' end),'Remote'as lbl16,(case when upper(field30_4)='SENSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Sensitive'as lbl17,(case when upper(field30_4)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum'as lbl18,(case when upper(field30_4)='OTHER' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'as lbl19,(case when upper(field30_4)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl20,'If Others:-'as lbl21,(case when upper(field30_4)='OTHER' then upper(field50_1) else '' end),'Appearance:-'as lbl22,(case when upper(field50_9)='SHABBY' then 'images/tick.gif' else 'images/untick.jpg' end),'Shabby'as lbl23,(case when upper(field50_9)='UNFURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Unfurnished'as lbl25,(case when upper(field50_9)='SEMI-FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Semi-Furnished'as lbl26,'',(case when upper(field50_9)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl27,(case when upper(field50_9)='EXCELLENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Excellent'as lbl29,(case when upper(field50_9)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'AS LBL30,'Nature Of Good Sold/Business:-'as lbl31,Upper(field50_2),'Stock Level:'as lbl32,(case when upper(field20_1)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Low'as lbl33,(case when upper(field20_1)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average'as lbl34,(case when upper(field20_1)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl35,(case when upper(field20_1)='VERY GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Very Good'as lbl36,(case when upper(field20_1)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl37,'Activity Observed:-'as lbl38,(case when upper(field20_2)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Low'as lbl39,(case when upper(field20_2)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average'as lbl40,(case when upper(field20_2)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl41,(case when upper(field20_2)='VERY HIGH ACTIVITY' then 'images/tick.gif' else 'images/untick.jpg' end),'Very High Activity'as lbl42,(case when upper(field20_2)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl43,'Premises:-'as lbl44,(case when upper(field20_3)='OWNED' then 'images/tick.gif' else 'images/untick.jpg' end),'Owned'as lbl45,(case when upper(field20_3)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end),'Rented'as lbl47,(case when upper(field20_3)='LEASED' then 'images/tick.gif' else 'images/untick.jpg' end),'Leased'as lbl48,(case when upper(field20_3)='OTHER' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'as lbl49,(case when upper(field20_3)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl49,'If Others:-'as lbl50,(case when upper(field20_3)='OTHER' then UPPER(field50_3) else '' end),'Ownership:-'as lbl51,(case when upper(field30_5)='MNC' then 'images/tick.gif' else 'images/untick.jpg' end),'MNC'as lbl52,(case when upper(field30_5)='CORPORATE' then 'images/tick.gif' else 'images/untick.jpg' end),'Corporate'as lbl53,(case when upper(field30_5)='PSU' then 'images/tick.gif' else 'images/untick.jpg' end),'PSU'as lbl54,(case when upper(field30_5)='PRIVATE LTD' then 'images/tick.gif' else 'images/untick.jpg' end),'Private LTD'as lbl55,(case when upper(field30_5)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl59,'',(case when upper(field30_5)='PARTNERSHIP' then 'images/tick.gif' else 'images/untick.jpg' end),'Partnership'as lbl60,(case when upper(field30_5)='PROPRIETARY' then 'images/tick.gif' else 'images/untick.jpg' end),'Proprietary'as lbl61,(case when upper(field30_5)='CO-OPERATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Co-Operative'as lbl62,(case when upper(field30_5)='OTHER' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'as lbl63,'If Others:-'as lbl64,(case when upper(field30_5)='OTHER' then UPPER(field50_4) else '' end),'No of Years In Business:-'as lbl65,field20_4||' Years','Apporiximate Turnover Rs:-'as lbl66,field20_5||' Lakhs','Part Of Chain Group:-'as lbl67,upper(field20_6),'If Yes,Name& Address Of Any Sister Concern:-'as lbl68,(case when upper(field20_6)='YES' then upper(field100_4) else '' end),'Already Accepting Cards:_'as lbl69,upper(field20_10),'If Yes:-'as lbl70,(case when upper(field20_10)='YES' then upper(field50_6) else '' end),'Acqiring Bank Name/Branch:-'as lbl71,upper(field50_7),'No of Years of The Relationship:-'as lbl72,field20_7||' Years','Types Of Cards:-'as lbl73,(case when upper(field30_6)='MASTER CARD' then 'images/tick.gif' else 'images/untick.jpg' end),'Master'as lbl74,(case when upper(field30_6)='VISA' then 'images/tick.gif' else 'images/untick.jpg' end),'Visa'as lbl75,(case when upper(field30_6)='DINERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Diners'as lbl76,(case when upper(field30_6)='AMEX' then 'images/tick.gif' else 'images/untick.jpg' end),'Amex'as bll77,(case when upper(field30_6)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl78,'No of EDC In The Shop:'as lbl79,field30_10,'No of Person Handling EDC Machine:-'as lbl79,field30_9,'MCC Type:-'as lbl80,upper(field30_7),'Does The Proprietor(s) of Establishment Holds Any Bank Credit:-'as lbl81,upper(field20_9),'If Yes'as lbl82,'Card Details:-'as lbl83,upper(field100_1),'Credit Limit:-'as lbl84,field30_8,'Market Information On Charge Back History:-'as lbl85,upper(field150_2),'Klowledge Level Of Staff In Card Acceptance:-'as lbl86,(case when upper(field100_3)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor'as lbl87,(case when upper(field150_3)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average'as lbl88,(case when upper(field150_3)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl89,(case when upper(field150_3)='EXCELLENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Excellent'as lbl90,(case when upper(field150_3)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA','Blank','Remarks:-'as lbl91,upper(remarks),(case when upper(overallstatus)='RECOMMENDED' then 'images/tick.gif' else 'images/untick.jpg' end),'Recommended'as lbl92,(case when upper(overallstatus)='NOT RECOMMENDED' then 'images/tick.gif' else 'images/untick.jpg' end),'Not Recommended'as lbl93,'','Date Of Visit:-'as lbl94,visitdate,'Time:-'as lbl95,visittime,'Verified By:-'as lbl96,upper(pvername),'Signature Of Verifier:-'as lbl96,upper(pvername),'Signature Of Agency Supervisor:-',reportdoneby,'Reviewed By:-','','Name of Field Risk Manager',reportdoneby,'','De_dupe Status:-',(case when upper(fieldtext_1)<>''then 'Match Found'else 'Match Not Found' end),'De_dupe Remarks:-'as lbl95,upper(fieldtext_1),'Signature of the Field Risk Manager:-','','','Site Image:-',sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||p.uuid||'''',',') as photographs,'','For Arvee Bizpro Solution PVT.LTD.','images/signs/'||supervisor||'arvee.png',(mvcode||'-'||applno||'-'||customername||'-PROP-'||status),'Stamp & Signature','Disclaimer Note: The Information Provided /Observation recorded in the report is purely based on verbal information provided by the person met/ observation done at the time of visit at the given address.We as a process do not check or collect any documentary proof to check the authenticity of the information gathered.','','System CaseId:-',caseid,'Applicant Nmae:-'||upper(customername)||' AppRefNo:-'||applno from banklist_main_property o where (val0) val1
Query317!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Applicant Name:-'||upper(customername)||' AppRefNo:-'||applno,'ARVEE BIZPRO SOLUTION PVT.LTD','MERCHANT PRE- SIGN UP RISK REPORT','MERCHANT ESTABLISHMENT SITE VERIFICATION','App. Ref.#:-'as lbl1,applno,'Establishment Name:-'as lbl2,upper(customername) as establishname ,'Trading Name(Known As):-'as lbl3,upper(customername) as tradingname,'Contact Person:-'as lbl4 ,contactperson as contperson,'Tel.#:-'as lbl5,mobileno as mob,'Person Met:-'as lbl6,upper(field30_2),'Designation:-'as lbl7,upper(field30_3)as desig,'Address:-'as lbl8,upper(paddr1||' '||paddr2||' '||paddr3||' '||ppincode),'City:-'as lbl9,upper(paddr3),'Pin Code:-'as lbl10,ppincode,'Locality:-'as lbl11,(case when upper(field30_4)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),'Posh'as lbl12,(case when upper(field30_4)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial'as lbl13,(case when upper(field30_4)='RESIDENTAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential'as lbl14,(case when upper(field30_4)='HIGHWAY' then 'images/tick.gif' else 'images/untick.jpg' end),'Highway'as lbl15,'',(case when upper(field30_4)='REMOTE' then 'images/tick.gif' else 'images/untick.jpg' end),'Remote'as lbl16,(case when upper(field30_4)='SENSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Sensitive'as lbl17,(case when upper(field30_4)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum'as lbl18,(case when upper(field30_4)='OTHER' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'as lbl19,(case when upper(field30_4)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl20,'If Others:-'as lbl21,(case when upper(field30_4)='OTHER' then upper(field50_1) else '' end),'Appearance:-'as lbl22,(case when upper(field50_9)='SHABBY' then 'images/tick.gif' else 'images/untick.jpg' end),'Shabby'as lbl23,(case when upper(field50_9)='UNFURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Unfurnished'as lbl25,(case when upper(field50_9)='SEMI-FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Semi-Furnished'as lbl26,'',(case when upper(field50_9)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl27,(case when upper(field50_9)='EXCELLENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Excellent'as lbl29,(case when upper(field50_9)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'AS LBL30,'Nature Of Good Sold/Business:-'as lbl31,Upper(field50_2),'Stock Level:'as lbl32,(case when upper(field20_1)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Low'as lbl33,(case when upper(field20_1)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average'as lbl34,(case when upper(field20_1)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl35,(case when upper(field20_1)='VERY GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Very Good'as lbl36,(case when upper(field20_1)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl37,'Activity Observed:-'as lbl38,(case when upper(field20_2)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Low'as lbl39,(case when upper(field20_2)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average'as lbl40,(case when upper(field20_2)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl41,(case when upper(field20_2)='VERY HIGH ACTIVITY' then 'images/tick.gif' else 'images/untick.jpg' end),'Very High Activity'as lbl42,(case when upper(field20_2)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl43,'Premises:-'as lbl44,(case when upper(field20_3)='OWNED' then 'images/tick.gif' else 'images/untick.jpg' end),'Owned'as lbl45,(case when upper(field20_3)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end),'Rented'as lbl47,(case when upper(field20_3)='LEASED' then 'images/tick.gif' else 'images/untick.jpg' end),'Leased'as lbl48,(case when upper(field20_3)='OTHER' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'as lbl49,(case when upper(field20_3)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl49,'If Others:-'as lbl50,(case when upper(field20_3)='OTHER' then UPPER(field50_3) else '' end),'Ownership:-'as lbl51,(case when upper(field30_5)='MNC' then 'images/tick.gif' else 'images/untick.jpg' end),'MNC'as lbl52,(case when upper(field30_5)='CORPORATE' then 'images/tick.gif' else 'images/untick.jpg' end),'Corporate'as lbl53,(case when upper(field30_5)='PSU' then 'images/tick.gif' else 'images/untick.jpg' end),'PSU'as lbl54,(case when upper(field30_5)='PRIVATE LTD' then 'images/tick.gif' else 'images/untick.jpg' end),'Private LTD'as lbl55,(case when upper(field30_5)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl59,'',(case when upper(field30_5)='PARTNERSHIP' then 'images/tick.gif' else 'images/untick.jpg' end),'Partnership'as lbl60,(case when upper(field30_5)='PROPRIETARY' then 'images/tick.gif' else 'images/untick.jpg' end),'Proprietary'as lbl61,(case when upper(field30_5)='CO-OPERATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Co-Operative'as lbl62,(case when upper(field30_5)='OTHER' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'as lbl63,'If Others:-'as lbl64,(case when upper(field30_5)='OTHER' then UPPER(field50_4) else '' end),'No of Years In Business:-'as lbl65,field20_4||' Years','Apporiximate Turnover Rs:-'as lbl66,field20_5||' Lakhs','Part Of Chain Group:-'as lbl67,upper(field20_6),'If Yes,Name& Address Of Any Sister Concern:-'as lbl68,(case when upper(field20_6)='YES' then upper(field100_4) else '' end),'Already Accepting Cards:_'as lbl69,upper(field20_10),'If Yes:-'as lbl70,(case when upper(field20_10)='YES' then upper(field50_6) else '' end),'Acqiring Bank Name/Branch:-'as lbl71,upper(field50_7),'No of Years of The Relationship:-'as lbl72,field20_7||' Years','Types Of Cards:-'as lbl73,(case when upper(field30_6)='MASTER CARD' then 'images/tick.gif' else 'images/untick.jpg' end),'Master'as lbl74,(case when upper(field30_6)='VISA' then 'images/tick.gif' else 'images/untick.jpg' end),'Visa'as lbl75,(case when upper(field30_6)='DINERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Diners'as lbl76,(case when upper(field30_6)='AMEX' then 'images/tick.gif' else 'images/untick.jpg' end),'Amex'as bll77,(case when upper(field30_6)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA'as lbl78,'No of EDC In The Shop:'as lbl79,field30_10,'No of Person Handling EDC Machine:-'as lbl79,field30_9,'MCC Type:-'as lbl80,upper(field30_7),'Does The Proprietor(s) of Establishment Holds Any Bank Credit:-'as lbl81,upper(field20_9),'If Yes'as lbl82,'Card Details:-'as lbl83,upper(field100_1),'Credit Limit:-'as lbl84,field30_8,'Market Information On Charge Back History:-'as lbl85,upper(field150_2),'Klowledge Level Of Staff In Card Acceptance:-'as lbl86,(case when upper(field100_3)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor'as lbl87,(case when upper(field150_3)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average'as lbl88,(case when upper(field150_3)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good'as lbl89,(case when upper(field150_3)='EXCELLENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Excellent'as lbl90,(case when upper(field150_3)='NA' then 'images/tick.gif' else 'images/untick.jpg' end),'NA','Blank','Remarks:-'as lbl91,upper(remarks),(case when upper(overallstatus)='RECOMMENDED' then 'images/tick.gif' else 'images/untick.jpg' end),'Recommended'as lbl92,(case when upper(overallstatus)='NOT RECOMMENDED' then 'images/tick.gif' else 'images/untick.jpg' end),'Not Recommended'as lbl93,'','Date Of Visit:-'as lbl94,visitdate,'Time:-'as lbl95,visittime,'Verified By:-'as lbl96,upper(pvername),'Signature Of Verifier:-'as lbl96,upper(pvername),'Signature Of Agency Supervisor:-',reportdoneby,'Reviewed By:-','','Name of Field Risk Manager',reportdoneby,'','De_dupe Status:-',(case when upper(fieldtext_1)<>''then 'Match Found'else 'Match Not Found' end),'De_dupe Remarks:-'as lbl95,upper(fieldtext_1),'Signature of the Field Risk Manager:-','','','Site Image:-','','','For Arvee Bizpro Solution PVT.LTD.','images/signs/'||supervisor||'arvee.png',(mvcode||'-'||applno||'-'||customername||'-PROP-'||status),'Stamp & Signature','Disclaimer Note: The Information Provided /Observation recorded in the report is purely based on verbal information provided by the person met/ observation done at the time of visit at the given address.We as a process do not check or collect any documentary proof to check the authenticity of the information gathered.','','System CaseId:-',caseid,'Applicant Nmae:-'||upper(customername)||' AppRefNo:-'||applno,'Photographs' as lblphotographs,coalesce(sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''P'' and uuid='''||o.uuid||'''',','),'NA') as photographs from banklist_main_property o where (val0) val1
Query321!C0L!select!C0L!select uuid, product, maincompany, bkbranchname,to_char( receivedate,'DD/MM/YYYY') as recdate, applno,upper( customername) cname, bank_branch_id,'FIELD INVESTIGATION REPORT'as lbl1,'Vehicle Details:'as lbl2,'NA','Tenure:'as lbl3,'NA','Financed Amount:'as lbl4, loanamount,'Receive Date:'as lbl5, to_char(receivedate,'DD/MM/YYYY'),'DMA/DSA'as lbl6,'NA','Reference No:'as lbl7, applno,'Submission Date:'as lbl8,visitdate,'Date Time Visit:'as lbl9,visitdate,visittime,' ','Applicants Name:'as lbl10,upper( customername),'DOB:'as lbl11, dob,'Residence Address:'as lbl12,upper( raddr),'Pin Code:'as lbl13,'NA','Land Mark:'as lbl14,upper( field50_1),'Distance From Nearest Station:'as lbl15,'NA','Resi Phone:'as lbl16,phoneno,'Mobile No:'as lbl17,othphone,' ','Residence OwnerShip Details'as lbl18,' ','Type Of House'as lbl19,'Self Owned'as lbl19,(case when upper( rowner)='SELF OWNED' then 'images/tick.gif'else 'images/untick.jpg' end),'Independent House'as lbl20,(case when upper(restype)='INDEPENDENT HOUSE' then 'images/tick.gif'else 'images/untick.jpg' end),'Spouse'as lbl21,(case when upper( rowner)='OWNED BY RELATIVES' then 'images/tick.gif'else 'images/untick.jpg' end ),'Part of Independent House'as lbl22,(case when upper(RESTYPE)='FLAT/PART OF INDEPENDENT' then 'images/tick.gif'else 'images/untick.jpg' end),'Owned By Parents'as lbl23,(case when upper( rowner)='OWNED BY PARENTS' then 'images/tick.gif'else 'images/untick.jpg' end),'Flat'as lbl24,(case when upper(restype)='FLAT/PART OF INDEPENDENT' then 'images/tick.gif'else 'images/untick.jpg' end),'Company Accomodation'as lbl25,(case when upper( rowner)='COMPANY ACCOMODATION' then 'images/tick.gif'else 'images/untick.jpg' end),'Bungalow'as lbl26,(case when upper(restype)='BUNGALOW' then 'images/tick.gif'else 'images/untick.jpg' end),'Rented'as lbl26,(case when upper( rowner)='RENTED' then 'images/tick.gif'else 'images/untick.jpg' end),'Chawl'as lbl27,(case when upper(restype)='CHAWL' then 'images/tick.gif'else 'images/untick.jpg' end),'Other(Specify)'as lbl28,(case when upper( rowner)='OTHERS' then 'images/tick.gif'else 'images/untick.jpg' end),'Row House'as lbl29,(case when upper(restype)='ROW HOUSE' then 'images/tick.gif'else 'images/untick.jpg' end),'Not Confirmed'as lbl30,'images/untick.jpg','Other(Specify)'as lbl31,(case when upper(restype)='OTHERS' then 'images/tick.gif'else 'images/untick.jpg' end),'Details:-'as lbl32,(case when upper( rowner)='OTHERS' then upper(owneroth) else ' ' end),'Color & Floor'as lbl33,'NA','Person Contacted(Resi):'as lbl34,upper(metperson),'Relationship With Applicant'as lbl35,upper(metrela),'Date of Birth/Age Of Applicant'as lbl36, dob,'Years Lived at Current Address'as lbl37,yrsadd||' Years'||mnthadd||' Month','Resi Area(in sq-Ft):'as lbl38,carpetarea||' SQFT','No of Years In Mumbai'as lbl38,yrscity||' Years and '||mnthcity||' Month',' ','PERSONAL'as lbl39,'Marital Status:'as lbl40,'No of Family Members:'as lbl41,totmem,'Single'as lbl41,(case when upper(maritial)='SINGLE' then 'images/tick.gif'else 'images/untick.jpg' end),'Working:'as lbl42,earning,'Married'as lbl43,(case when upper(maritial)='MARRIED' then 'images/tick.gif'else 'images/untick.jpg' end),'Children:'as lbl44,children,'Qualification'as lbl45,upper( field30_1),'Dependent Adults:'as lbl46,dependent,'Identification Document(One)'as lbl46,upper(proof),'Credit Card Bank:'as lbl47,upper( field50_3),'Identification Document Details(One)'as lbl47,upper(proofdet),'Credit Card No:'as lbl48, field30_3,'Identification Document(Two)'as lbl49,'NA','Club Membership'as lbl50,upper(field30_7),'Identification Document Details(Two)'as lbl50,'NA','Membership No:'as lbl51,(case when upper(field30_7)='YES' then Upper(field30_8) else ' ' end),'ASSET SEEN AT RESIDENCE'as lbl53,'TelePhone'as lbl54,(case when upper(chkfield1)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Television'as lbl55,(case when upper(chkfield2)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Servant'as lbl56,(case when upper(chkfield3)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Refrigater'as lbl57,(case when upper(chkfield4)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Air-Conditioner'as lbl58,(case when upper(chkfield5)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Well-Furnished'as lbl59,(case when upper(interior)='WELL FURNISHED' then 'images/tick.gif'else 'images/untick.jpg' end),'Music System'as lbl60,(case when upper(chkfield6)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Motor Vehicle'as lbl,(case when upper(chkfield7)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Reasonable Furnished'as lbl61,(case when upper(interior)='AVERAGELY FURNISHED' then 'images/tick.gif'else 'images/untick.jpg' end),'Sofa'as lbl62,(case when upper(chkfield8)='X' then 'images/tick.gif'else 'images/untick.jpg' end),'Cooler'as lbl63,'images/untick.jpg','DOOR STEP VISITS'as lbl64,'Living Standard'as lbl65,'Middle Class'as lbl66,(case when upper(furlevel)='MIDDLE' then 'images/tick.gif'else 'images/untick.jpg' end),'Upper Middle Class/Posh'as lbl67,(case when upper(furlevel)='UPPER MIDDLE' then 'images/tick.gif'else 'images/untick.jpg' end),'Slum/Chawl/Dirty'AS LBL68,(case when upper(furlevel)='POOR' then 'images/tick.gif'else 'images/untick.jpg' end),' ','Details Of Spouse'AS LBL69,'Name:'as lbl70,upper(spsname),'Age(in year)'as lbl71,field15_1,'Employment Details:'as lbl72,upper(spsdesign),' ','Other Vehicles'as lbl72,'1.Two Wheeler'as lbl73,'2.Four Wheeler'as lbl74,'Owned ',(case when upper(field50_2)='OWNED' then 'images/tick.gif'else 'images/untick.jpg' end),'Financed'as lbl75,(case when upper(field50_2)='FINANCED' then 'images/tick.gif'else 'images/untick.jpg' end),'Company Provided'as lbl76,(case when upper(field50_2)='COMPANY PROVIDED' then 'images/tick.gif'else 'images/untick.jpg' end),'Owned 'as lbl77,(case when upper(field50_3)='OWNED' then 'images/tick.gif'else 'images/untick.jpg' end),'Financed'as lbl78,(case when upper(field50_3)='FINANCED' then 'images/tick.gif'else 'images/untick.jpg' end),'Company Provided'as lbl79,(case when upper(field50_3)='COMPANY PROVIDED' then 'images/tick.gif'else 'images/untick.jpg' end),'Financed From:'as lbl80,(case when upper(field50_2)='FINANCED' then upper(field30_4) else ' ' end),'Financed From:'as lbl81,(case when upper(field50_3)='FINANCED' then upper(field30_5) else ' ' end),'Loan Amount:'as lbl82,field15_2,'Loan Amount:'as lbl83,field15_5,'Vehicle No:'as lbl84,upper(field15_3),'Vehicle No:'as lbl85,upper(field15_6),'Model:'as lbl86,upper(field15_4),'Model:'as lbl87,upper(field15_7),'Neighbour Reference'as lbl88,'+ve'as lbl89,(case when upper(field30_6)='POSITIVE' then 'images/tick.gif'else 'images/untick.jpg' end),'-ve'as lbl89,(case when upper(field30_6)='NEGATIVE' then 'images/tick.gif'else 'images/untick.jpg' end),'Details'as lbl90,upper(fieldtext_1),'Verifier Comments(Resi)'as lbl91,'Name Plate'as lbl92,upper(nameplate),'Car Parking'as lbl93,upper(field15_8),'Society Board'as lbl95,upper(socboard),'Lawn'as lbl96,upper(field15_9),upper(verremarks),'Residence Status'as lbl97,'Recommended'as lbl98,(case when upper(status)='POSITIVE' then 'images/tick.gif'else 'images/untick.jpg' end),'Not Recommended'as lbl99,(case when upper(status)='NEGATIVE' then 'images/tick.gif'else 'images/untick.jpg' end),'Remarks'as lbl100,upper(remarks),'TRV Remarks'as lbl101,'Spoken To'as lbl102,upper((select rcontpers from banklist_main_telecalling where val0)),'Owned/Rented'as lbl103,upper((select rowner from banklist_main_telecalling where val0)),'No of Years in Resi'as lbl104,upper((select rstayyrs from banklist_main_telecalling where val0))||' Years and '||upper((select rstaymnth from banklist_main_telecalling where val0))||' Month','Earning Member Details'as lbl105,upper((select field150_5 from banklist_main_telecalling where val0)),'No of Family Members:'as lbl106,upper((select field50_1 from banklist_main_telecalling where val0)),'Loan of any'as lbl107,upper((select field50_2 from banklist_main_telecalling where val0)),'Total Dependent Members'as lbl109,upper((select field30_2 from banklist_main_telecalling where val0)),'Details',upper((select field50_2 from banklist_main_telecalling where val0)),'Total Earning Members'as lbl111,upper((select field30_10 from banklist_main_telecalling where val0)),upper((select rremarks from banklist_main_telecalling where val0)),'Executive /Telecaller(Resi):'as lbl112,upper((select reportdoneby from banklist_main_telecalling where val0)),'images/signs/'||supervisor||'arvee.png' as stamp,'Data Entry(Resi):'as lbl113,upper(sdonebyname),'TVR Done'as lbl115,upper((select reportdoneby from banklist_main_telecalling where val0)),'Supervisor:'as lbl116,upper(reportdoneby),'Dy.Manager:'as lbl116,upper(portsupervisor),'Authorised Signator'as lbl118,' ','Designed By:'as lbl119,' ','Customer Name(1/2)'as lbl120,upper(customername),' ' from banklist_main_residence r where (val0) val1
Query322!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'FIELD INVESTIGATION REPORT','Vehicle Details:'as lbl1,'NA','Tenure:'as lbl2,'NA','Financed Amount:'as lbl3,loanamount,'Receive Date:'as lbl4,to_char(receivedate,'DD/MM/YYYY'),'DMA/DSA'as lbl5,'NA','Reference No:'as lbl5,applno,'Submission Date:'as lbl6,visitdate,'Date Time Visit:',visitdate,visittime,' ','Applicants Name:'as lbl7,customername,'DOB:'as lbl8,dob,'Office Address:'as lbl9,upper(oaddr),'Pin Code:'as lbl10,field15_1,'Land Mark:'as lbl10,upper(field50_1),'Distance From Nearest Station:'as lbl11,upper(field15_2),'Office Phone:'as lbl12,ophone,' ','OCCUPATION'as lbl13,'Self Employed'as lbl14,(case when upper(busitype)='SELF EMPLOYED' then 'images/tick.gif' else 'images/untick.jpg' end),'Salaried'as lbl15,(case when upper(busitype)='SALARIED' then 'images/tick.gif' else 'images/untick.jpg' end),'Business'as lbl16,(case when upper(busitype)='BUSINESS' then 'images/tick.gif' else 'images/untick.jpg' end),'Since(No of Yrs)'as lbl17,yrstot||' Years and '||mnthtot||' Month','Profession'as lbl18,(case when upper(busitype)='PROFESSIONAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Designation'as lbl19,upper(appdesign),'Since(No of Yrs)'as lbl21,'images/untick.jpg','Department'as lbl20,upper(appdept),'Indivisual'as lbl21,(case when upper(busitype)='INDIVIDUAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Partnership'as lbl22,'images/untick.jpg','HUF'as lbl23,(case when upper(busitype)='HUF' then 'images/tick.gif' else 'images/untick.jpg' end),'Private Limited'as lbl24,(case when upper(busitype)='PRIVATE LIMITED' then 'images/tick.gif' else 'images/untick.jpg' end),'Proprietorship'as lbl25,(case when upper(busitype)='PROPRIETORSHIP' then 'images/tick.gif' else 'images/untick.jpg' end),'Public Limited'as lbl26,(case when upper(busitype)='PUBLIC LIMITED' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'AS LBL28,(case when upper(busitype)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Nature Of Business'as lbl29,upper(compprof),'Business PREMISES OWNERSHIP'as lbl30,'Owned'as lbl31,(case when upper(ownership)='OWNED' then 'images/tick.gif' else 'images/untick.jpg' end),'Type of Premises(Bidg Firs & Colour)'as lbl33,upper(field50_5),'Parental'as lbl34,(case when upper(ownership)='PARENTAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Area(Sq.Ft)'as lbl35,upper(field50_4),'Spouse'as lbl36,(case when upper(ownership)='SPOUSE' then 'images/tick.gif' else 'images/untick.jpg' end),'Rent(Ps per month)'as lbl37,upper(field30_7),'Rental'as lbl38,(case when upper(ownership)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end),'No of Yrs with current organization'as lbl39,yrstot,'Company'as lbl40,(case when upper(ownership)='CONPANY' then 'images/tick.gif' else 'images/untick.jpg' end),'Employer/Business Name'as lbl41,upper(companyname),'Previous Employers Details'as lbl43,upper(prevjobdet),'ASSET SEEN BUSINESS'as lbl44,'TelePhone'as lbl45,(case when upper(Chkfield1)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Computer'as lbl45,(case when upper(Chkfield2)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Photocopier'as lbl46,(case when upper(Chkfield3)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Telex'as lbl47,(case when upper(Chkfield4)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Air-Conditioner'as lbl48,(case when upper(Chkfield5)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Reasonable-Furnished'as lbl49,(case when upper(Chkfield6)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Fax'as lbl50,(case when upper(Chkfield1)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Cooler'as lbl51,(case when upper(Chkfield8)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Name Board'as lbl52,(case when upper(Chkfield9)='X' then 'images/tick.gif' else 'images/untick.jpg' end),' ','Person Contacted (Office)'as lbl54,upper(metperson),'Relation With Applicant'as lbl55,upper(metrela),'No of Employee Seen'as lbl,field30_8,'No of Employee Conveyed'as lbl,field30_9,'Type Of Office'as lbl56,'Location Of Office'as lbl57,'Independent House'as lbl58,(case when upper(field50_2)='INDEPENDENT HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial Complex'as lbl59,(case when upper(locality)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Industry/Factory'as lbl60,(case when upper(field50_2)='INDUSTRY/FACTORY' then 'images/tick.gif' else 'images/untick.jpg' end),'Small Scale/Industrial Area'as lbl61,(case when upper(locality)='SMALL PRODUCTION UNITS' then 'images/tick.gif' else 'images/untick.jpg' end),'Small Scale/ Shed'as lbl62,(case when upper(field50_2)='SMALL SCALE/SHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Industry/Factory'AS lbl63,(case when upper(locality)='INDUSTRIAL/FACTORY' then 'images/tick.gif' else 'images/untick.jpg' end),'Share Office'as lbl64,(case when upper(field50_2)='SHARE OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end),'Shop/Office Complex'as lbl65,(case when upper(locality)='SHOP/OFFICE COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end),'Business Complex'as lbl66,(case when upper(field50_2)='BUSINESS CENTRE' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential'as lbl67,(case when upper(locality)='RESIDENTIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Shop 'as lbl68,(case when upper(field50_2)='SHOP' then 'images/tick.gif' else 'images/untick.jpg' end),'Plant'as lbl69,(case when upper(locality)='PLANT' then 'images/tick.gif' else 'images/untick.jpg' end),'Resi cum Office'as lbl70,(case when upper(field50_2)='RESIDENCE CUM OFFICE' then 'images/tick.gif' else 'images/untick.jpg' end),'Business Centre'as lbl71,(case when upper(locality)='BUSINESS CENTRE' then 'images/tick.gif' else 'images/untick.jpg' end),'Office Complex'as lbl72,(case when upper(field50_2)='OFFICE COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end),'Other'as lbl75,(case when upper(locality)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Clinic'as lbl76,(case when upper(field50_2)='CLINIC' then 'images/tick.gif' else 'images/untick.jpg' end),' ','Other'as lbl77,(case when upper(field50_2)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Discription'as lbl78,(case when upper(field50_2)='OTHERS' then upper(field150_2) else ' ' end),'Neighbour Reference'as lbl79,'+ve'as lbl80,(case when upper(field30_4)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'-ve'as lbl82,(case when upper(field30_4)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Details'as lbl83,upper(field150_2),'Verifier Comments(Office)','Company Name Board',(case when upper(Chkfield9)='X' then 'Seen' else 'Not Seen' end),'Car Parking'as lbl84,UPPER(FIELD15_3),'Setup and Activity'as lbl85,upper(field50_5),'Lawn'as lbl86,upper(field30_5),upper(verremarks),'Office Status'as lbl87,'Recommended'as lbl88,(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Not Recommended'as lbl89,(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),(case when upper(status)='REFER' then 'images/tick.gif' else 'images/untick.jpg' end),'REFER','Remarks'as lbl90,upper(remarks),'BTV Remarks'as lbl91,'Spoken To',upper((select ocontpers from banklist_main_telecalling where val0)),'Business Name'as lbl92,upper((select ocompname from banklist_main_telecalling where val0)),'Designation'as lbl93,upper((select odesign from banklist_main_telecalling where val0)),'Nature Of Business'as lbl94,upper((select onob from banklist_main_telecalling where val0)),'No of Yrs In Business'as lbl95,upper((select oworkyrs from banklist_main_telecalling where val0)),'Woned /Rented Office'as lbl96,upper((select field30_6 from banklist_main_telecalling where val0)),upper((select oremarks from banklist_main_telecalling where val0)),'Executive /Telecaller(off):',upper((select tvername from banklist_main_telecalling where val0)),'images/signs/'||supervisor||'arvee.png' as stamp,'Data Entry(Off):'as lbl96,upper(sdonebyname),'TVR Done:',upper(tvername),'Supervisor:',upper(portsupervisor),'Dy.Manager:',upper(portsupervisor),'Authorised Signator',' ','Designed By:',' ','Customer Name(1/2)',upper(customername),' ' from banklist_main_office o where (val0) val1
Query323!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' OFFLINE VERIFICATION FORMAT FOR RESIDENCE' as title,'Visit Date' as rvisdate,visitdate,'Visit Time' as rvistime,visittime,'Los ID' as label1,upper(applno) as applno1,'Applicant name' as label2,upper(customername) as customername2,'Applicant DOB'as lbl,dob,'Marital Status'as lbl,upper(maritial),'Residence address' as label3,upper(raddr) as raddr,'Locality of address' as label4,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Name plate name' as label5,(case when upper(nameplate)='YES' then upper(platedet) else upper(nameplate) end) as nameplate,'Society board name' as label6,(case when upper(socboard)='YES' then 'YES - '||upper(socboarddet) else upper(socboard) end) as socbard,'Residence type' as label7,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Negative area' as label8,(case when Field30_1='-1' then 'NA' else upper(Field30_1) end) as negarea,'Resi stability' as label9,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as rstay,'Address Proof' as lbl,(case when upper(proof)='YES' then upper(proofdet) else upper(proof) end),'OwnerShip'as lbl,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end),'TPC feedback (Mandatory)' as label10,upper(fieldtext_1) as neighrem,'Name of the person contacted' as label11,upper(metperson) as metperson,'Relation with applicant' as label12,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Verification match' as label13,upper(status) as status,'Visit proof' as label14,upper(proofdet) as proofdet,'Verification remarks' as label15,upper(remarks) as remarks,'Previous Employement Details'as lbl,upper(fieldtext_3),'Verifier Name'as lbl,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'Supervisor Name & Signature'as lbl,(case when upper(rvername)!='' then upper(rvername)||'- '||upper(rvercode) else 'NA' end),'images/signs/'||supervisor||'.png','','' from banklist_main_residence r where (val0)
Query324!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',val23,''val0'',''val3'',''val4'',''val7'',''val2'',''val1'',''val6'',NULL,''val8'',(CASE WHEN ''val18''=1 THEN ''RadDrXS-val9-ERadDrX'' ELSE NULL END),(CASE WHEN ''val18''=1 THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val18''=1 THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN ''val18''=1 THEN ''val11'' ELSE NULL END),0,-1,NULL,(CASE WHEN ''val20''=1 THEN ''val12'' ELSE NULL END),(CASE WHEN ''val19''=1 THEN ''val13'' ELSE NULL END),(CASE WHEN ''val19''=1 THEN ''OadDrXS-val14-EOadDrX'' ELSE NULL END),(CASE WHEN ''val19''=1 THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val19''=1 THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN ''val19''=1 THEN ''val16'' ELSE NULL END),0,-1,NULL,NULL,NULL,(CASE WHEN ''val19''=1 THEN ''val17'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,''val18'',''val20'',''val19'',''val21'',0,0,0,0,0,0,''val5'',0,0,0,NULL,NULL,''val22'',NULL,NULL,NULL,NULL,NULL,NULL,val24,val25,0,''val26'',''val27'','''')
Query325!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case when portfolio_id <> 70 then (case when upper(bkbranchname)='PREET VIHAR' then 'TCFSL' else (case when portfolio_id=12 then 'TCHFL' else '' end) end) else upper(name) end)||' - OFFICE VERIFICATION' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,upper(oaddr) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees ' as label18,upper(totemp) as totemp,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Type of Company' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of Company' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of Company' as label29,upper(field30_3) as carpetarea,'How Many Machines Manufacture in a Month'as lbl,field15_6,'Who are The Major Clients'as lbl,upper(field250_2) as client,'Machine in Premises(No of Machines as Inventory)'as lbl,field15_7 as machine,'Type of Machinery Manufacturer'as lbl,upper(field250_3)as manufacturer,'Price Range of machinery' as lbl,upper(field50_8),'Business board seen outside Company' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of Company' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the Company' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Interiors of the Company' as label33,upper(field150_1) as setup,'Ease of locating Company' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items Seen in Premises' as lblitmsn,upper(field150_2) as ofset,'Feed back from Nearby Market'as lbl,upper(fieldtext_1),'Proforma Invoice Verification'as lbl,upper(field50_9),'Current Status of Proposed Machinery as per Proforma Invoice'as lbl,upper(field250_3),'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'' as blank2,'A' as label39,'Residence Cum Office' as label40,'G' as label41,'Detail Mismatch' as label43,'B' as label44,'Non Target Area' as label45,'H' as label46,'Designation Incorrect' as label47,'C' as label48,'Outsite Geographical Limits' as label49,'I' as label50,'No Business Activity' as label51,'D' as label52,'Entry Not Allowed' as label53,'J' as label54,'Negative Neighbour Check' as label55,'E' as label56,'Address Not Traceable' as label57,'K' as label58,'Defaulter/Bad Market Reputation' as label59,'F' as label60,'Applicant Does Not Work Here' as label61,'L' as label62,'Any Other Reason' as label63,'' as blk4,'Agency Verifier' as label40,'B.B. Agency Supervisor' as label41,(case when portfolio_id=70 then 'ARVEE BIZPRO SOLUTIONS PVT LTD' else upper(maincompany) end) as maincomp,overname,upper(portsupervisor),'' as blk5,'' as blk6,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'' as blnk12,(case when portfolio_id=70 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,(case portfolio_id when 79 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case portfolio_id when 79 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs,upper(o.status) as hstatus from banklist_main_office o where (val0) val1
Query326!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'CHOLAMANDALAM INVESTMENT & FINANCE CO LTD'as lbl1,'PRE DISBURSAL SAMPLING REPORT'as lbl2,'1 . CASE DETAILS'as lbl3,'1 .Product 'as lbl4,'HOME EQUITY','2 . Sub Product 'as lbl5,'NA','3 . Sampling Type : Pickup/Referral/Mandatory'as lbl6,'NA','4 . PickUp Date 'as lbl7,visitdate,'5. Reason For Pickup /Refferal'as lbl8,upper(product),'6 . Lacation'as lbl9,'Delhi','7 . Branch Name'as lbl10,upper(bkbranchname),' ','2. APPLICATION DETAILS'as lbl11,'1. File No 'as lbl12,applno,'2. Name Of The Applicant 'as lbl13,sublist('select upper(customername) as field from main where applno='''||r.applno||''' and portfolio_id='''||r.portfolio_id||'''',' , '),'3. DOB 'as lbl14,dob,'4. Loan Amount'as lbl15,loanamount,'3. DSA DETAILS'as lbl16,'1. DST/DSA NAME'as lbl17,(select m.field1 from main m where m.uuid= r.uuid),'2. DST/DSA CODE'as lbl18,(select m.field2 from main m where m.uuid= r.uuid),'4. INVESTIGATION DETAILS'as lbl19,'1. Residence Check'as lbl20,(case when upper(field15_9)!='NO' then coalesce((sublist('select ''Residence Address: ''||upper(raddr)||'' and Remarks: ''||upper(remarks) as field from banklist_main_residence r where applno='''||r.applno||''' and portfolio_id='''||r.portfolio_id||'''and upper(field15_9)!=''NO''',' .')),'NA')else ' ' end),'2. Property Check'as lbl21,coalesce((sublist('select ''Property Address: ''||upper(paddr)||'' and Remarks: ''||upper(remarks) as field from banklist_main_property where applno='''||r.applno||''' and portfolio_id='''||r.portfolio_id||'''',' .')),'NA'),'3. Business Check'as lbl22,coalesce((sublist('select ''Office Address: ''||upper(oaddr)||'' and Remarks: ''||upper(remarks) as field from banklist_main_office where applno='''||r.applno||''' and portfolio_id='''||r.portfolio_id||'''',' .')),'NA'),'4. Financial/Income Document'as lbl24,'NA','5. Other Document Check'as lbl25,'NA','6. Dedupe Check'as lbl26,'NA','','5. REPORT DETAILS','1. Overall Result',upper(field50_13),'2.Type Of Reject'as lbl,'NA','3.Reason For Reject'as lbl,upper(negreason),'4.Final Report Date'as lbl,sdoneon,'5.Intrim Report Date'as lbl,'','6.TAT'as lbl,'NA','','Agency Name'as lbl27,'Matrix Credit Risk Control PVT LTD'as lbl28,'',' ','Signature and Seal Of RCU Agency'as lbl29,' ','images/signs/'||sdoneby||'.png',' ' from banklist_main_residence r where (val0) val1
Query327!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id, 'Cholamandalam Investment & Finance Co Ltd','VENDOR VERIFICATION REPORT','1 . VENDOR DETAILS','VENDOR NAME',upper(customername),'VENDOR ADDRESS',upper(raddr),'PERSON CONTACTED',upper(metperson),'DESIGNATION',(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end),'Constitution','','Date of Incorporation',yrsadd||' YEARS AND '||mnthadd||' MONTHS','Owner Name',upper(customername),'Infrastructure Details',upper(interior),'Employee Breakup Details','NA','Office Area',carpetarea,' ','2. PRODUCT DETAILS','PRODUCT',(select upper(field6) from main where uuid=r.uuid),'Function',(select field5 from main where uuid=r.uuid),'Category',upper(product),'Reffered by',(select upper(field3) from main where uuid=r.uuid),'Designation',(select upper(field4) from main where uuid=r.uuid),'Branch Name',upper(bkbranchname),'REFERENCE DETAILS','REFERENCE 1',upper(field30_20)||' ('||field30_21||' ). FEEDBACK:'||upper(fieldtext_3),'REFERENCE 2',upper(field50_14)||' ('||field50_15||' ). FEEDBACK :'||upper(fieldtext_4),'VERIFICATION DETAILS','Market feedback',upper(fieldtext_1),'Detailed verification feedback',upper(remarks),' ','5.REPORT DETAILS','Final status',upper(overallstatus),'Date In',to_char(receivedate,'DD/MM/YYYY'),'Date Out',to_char(sdoneon,'DD/MM/YYYY'),'FCU Vendor','Matrix Credit Risk Control Pvt Ltd.','','','Signature and Seal of FCU Agency','','images/signs/'||sdoneby||'.png' ,'' from banklist_main_residence r where (val0) val1
Query332!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id, 'Cholamandalam Investment & Finance Co Ltd','VENDOR VERIFICATION REPORT','1 . VENDOR DETAILS','VENDOR NAME',upper(customername),'VENDOR ADDRESS',upper(oaddr),'PERSON CONTACTED',upper(metperson),'DESIGNATION',(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) ,'Constitution',upper(busitype),'Date of Incorporation',yrstot||' YEARS AND '||mnthtot||' MONTHS','Owner Name',upper(customername),'Infrastructure Details',upper(field150_1),'Employee Breakup Details','Total Employee are-'||totemp||' and '||field30_17||' ware Seen ','Office Area',field30_3,' ','2. PRODUCT DETAILS','PRODUCT',(select upper(field6) from main where uuid=o.uuid),'Function',(select field5 from main where uuid=o.uuid),'Category',upper(product),'Reffered by',(select upper(field3) from main where uuid=o.uuid),'Designation',(select upper(field4) from main where uuid=o.uuid),'Branch Name',upper(bkbranchname),'REFERENCE DETAILS','REFERENCE 1',upper(field30_20)||' ('||field30_21||' ). FEEDBACK:'||upper(fieldtext_3),'REFERENCE 2',upper(field50_14)||' ('||field50_15||' ). FEEDBACK :'||upper(fieldtext_4),'VERIFICATION DETAILS','Market feedback',upper(fieldtext_1),'Detailed verification feedback',upper(remarks),' ','5.REPORT DETAILS','Final status',upper(overallstatus),'Date In',to_char(receivedate,'DD/MM/YYYY'),'Date Out',to_char(sdoneon,'DD/MM/YYYY'),'FCU Vendor','Matrix Credit Risk Control Pvt Ltd.','','','Signature and Seal of FCU Agency','','images/signs/'||sdoneby||'.png','' from banklist_main_office o where (val0) val1
Query334!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' - RESIDENCE VERIFICATION REPORT' as label1,'Application No.' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcode1,'Product' as label4,upper(product) as product1,'Applicant''s Name' as label5,upper(customername) as customername1,'Loan Amount' as label6,upper(loanamount) as loanamount1,'Address Confirmed' as label7,upper(addrconfd) as addrconfd,'Receipt Date' as label8,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Address' as label9,upper(raddr) as raddr,'Date & Time of Visit' label10,trim(coalesce(visitdate||' ','')||coalesce(visittime,'')) as visitdate,'Report Date' as label11,to_char(sdoneon,'DD/MM/YYYY') as repdate,'PERSONAL DETAILS' as label12,'Person Contacted' as label13,upper(metperson) as metperson,'Relationship' as label14,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Company/Firm Name ,Address and Designation of Applicant' as label15,upper(trim(coalesce(companyname||' ','')||coalesce(oaddr||' ','')||coalesce('Designation-'||designation,''))) as addeisg,'Date of Birth' as label16,(case when dob is null or length(dob) < 10 then (case when age is not null and age <> '0' then age||' YEARS' else 'NA' end) else dob end) as dob,'Residential Status' as label17,(case when rowner='Others' then upper(owneroth) else upper(rowner) end) as rowner,'Years in City & Years in Current Residence' as label18,'Years in City : '||coalesce(((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity <> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)),'NA')||' Years in Current Add : '|| coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Residence Within City Limits' as label19,(case when upper(isocl)='YES' then 'NO' else 'YES' end),'Permanent Address & Phone No.' as label20,upper(permadd) as permadd,'Locality Type' as label21,(case when locality='Others' then upper(locaoth) else upper(locality) end) as localityt,'Locality' as label22,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Marital Status' as label23,upper(maritial) as marital,'Spouse Details' as label24,(case when maritial='Married' then upper(trim('Name : '||coalesce(spsname||' ','NA')||'Occupation : '||coalesce(spsdesign||' ','NA')||'Mobile No : '||coalesce(Field30_2,'NA'))) else 'NA' end) as spsdet,'Qualification' as label25,(case when Field30_1='-1' then 'NA' else upper(Field30_1) end) as qual,'Residence Proof Verified' as label26,(case when proof='-1' then 'NA' else upper(coalesce(proof||' - ','')||(case when upper(proof)='YES' then upper(proofdet) else 'NA' end)) end) as proofdet,'Family Structure' as label27,upper(Field30_5) as famstruct,'No of Family Members Staying With Applicant' as label28,totmem,'No of Earning Members' as label29,earning,'Monthly Income and Details' as label30,'NA' as label31,'Dependents' as label32,dependent,'Existing Loan and Obligation Details' as label33,upper(Field50_2) as extloan,'Existing Vehicle Details' as label34,upper(Field50_3) as extveh,'Vehicle Reg. No.' as label35,upper(Field30_7) as regno,'Free/Finance Details' as label36,upper(Field50_4) as financer,'Other Loan Obligations' as label37,upper(Field50_5) as othloan,'*(for salaried profile office details and self employed business details to be mentioned) and telephone numbers' as label38,'OBSERVATIONS' as label39,'Type of Residence' as label40,(case when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Locality' as label41,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Area (in Sqft.)' as label42,upper(carpetarea) as carpetarea,'Society Board Seen' as label43,upper(socboard),'Accessibility & Distance from Bank' as label44,upper(raccess) as raccess,'Within City Limits' as label45,(case when upper(isocl)='YES' then 'NO' else 'YES' end) as isocl,'Construction of House' as label46,upper(construction) as construction,'Residence Entrance Motorable' as label47,upper(accmode) as accmode,'Prominent Landmark' as label48,upper(Field150_1) as plandmark,'Name Plate' as label49,upper(coalesce(nameplate||' - ','')||platedet) as nameplate,'Furnishing Details' as label50,upper(interior) as interior,'Car Park' as label51,(case when field30_8='-1' then 'NA' else upper(Field30_8) end) as carpark,'Residence Exterior Details' as label52,(case when Field30_9='-1' then 'NA' else upper(Field30_9) end) as exterior,'Type of Flooring' as label53,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as flooring,'Type of Roofing' as label54,(case when Field30_11='-1' then 'NA' else upper(Field30_11) end) as roofing,'No of Rooms and Approximate Size' as label55,upper(Field50_6) as roomsize,'Assets Seen' as label56,upper(Field150_2) as assetseen,'Standard of Living' as lablstandard,upper(furlevel) as furlevel,'Entry Permitted' as label57,(case when Field30_13='-1' then 'NA' else upper(Field30_13) end) as eperm,'Display of Any Political Party Affiliation Seen' as label58,upper(coalesce(political,'')||(case when upper(political)='YES' then coalesce(' - '||politicdet,'') else '' end)) as poldet,'Route Map' as label59,upper(Field150_3) as routemap,'' as linebreak,'NEIGHBOUR FEEDBACK' as lblnfeed,'Neigh. Check' as label60,'Neighbor-1' as label61,'Neighbor-2' as label62,'1. Name & Address' as label63,upper(Field150_5) as neigh1,upper(Field150_4) as neigh2,'Does Applicant Stay at Given Address' as label63,(case when Field30_3='-1' then 'NA' else upper(Field30_3) end) as appstay1,(case when Field30_12='-1' then 'NA' else upper(Field30_12) end) as appstay2,'No of Years Applicant Been Staying' as label64,upper(field30_4) as noyrs1,upper(Field30_14) as noyrs2,'Ownership Status' as label65,(case when field30_6='-1' then 'NA' else upper(Field30_6) end) as owner1,(case when field30_15='-1' then 'NA' else upper(Field30_15) end) as owner2,'OTHERS DETAILS' as label66,'Concerns if Any and Details' as label67,upper(alertrem) as alertrem,'Verifier''s Remarks' as label68,upper(verremarks) as verremarks,'SUPERVISOR''S COMMENT' as label69,'Remarks' as label70,upper(remarks) as remarks,'Final Status' as label71,upper(status) as status,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,upper(rvername) as rvername,upper(reportdoneby) as reportdoneby,(case when portfolio_id=87 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode from banklist_main_residence r where (val0) val1
Query335!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||' - OFFICE VERIFICATION REPORT' as label1,'Application No.' as label2,upper(applno) as applno1,'MV Code' as label3,upper(mvcode) as mvcode1,'Product' as label4,upper(product) as product1,'Applicant''s Name' as label5,upper(customername) as customername1,'Co-Applicant''s Name (if any)' as label6,(case when upper(apptype)='APPLICANT' then coalesce(sublist('select customername as field from temp_reporting where trim(upper(applno))='''||trim(upper(o.applno))||''' and bank_branch_id='||o.bank_branch_id||' and upper(apptype) <> ''APPLICANT''',','),'NA') else 'NA' end) as coapps,'Request Receipt Date' as label7,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Report Issued Date' as label8,to_char(sdoneon,'DD/MM/YYYY') as repdate, 'Office Name, Address and Phone Number' as label9,upper(oaddr)||' '||coalesce('PH : '||ophone,'') as oaddr,'Date & Time of Visit' label10,trim(coalesce(visitdate||' ','')||coalesce(visittime,'')) as visitdate,'Prominent Landmark' as label11,upper(field50_1) as landmark,'Address Confirmed' as label12,upper(addrconfd) as addrconfd,'GENERAL DETAILS' as label13,'Name of Person Met' as label14,upper(metperson) as metperson,'Relationship With Applicant' as label15,(case when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Name of the Company/Firm' as label16, upper(companyname) as companyname,'Designation/Role' as label17,(case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Phone Number' as label18,ophone,'Email-ID' as label19,upper(Field50_6) as emailid,'Visiting Card Collected' as label20,(case when Field30_2='-1' then 'NA' else upper(Field30_2) end) as vcard,'No of Years in Biz/Job' as label21,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Type/Nature of Business' as label22,upper(busitype) as busitype,'Product Dealt' as label23,upper(proddealt) as proddealt,'No of Employees Seen' as label24,upper(Field30_4) as empseen,'Area of Office (in Sqft.)' as label25,upper(Field30_5) as carparea,'Type of Office/Business' as label26,upper(busitype) as busitype1,'Locality of Office/Business' as label27,(case when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Common Office & Residence' as label28,(case when Field30_6='-1' then 'NA' else upper(field30_6) end) as isrco,'If Yes, Whether Distinct Entrance Available' as label29,(case when Field30_7='-1' then 'NA' else upper(field30_7) end) as distent,'Construction of Office' as label30,(case when Field30_8='-1' then 'NA' else upper(field30_8) end) as construction,'Exteriors' as label31,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as exteriors,'Interiors' as label32,upper(Field150_3) as interiros,'Business Level Activity' as label33,upper(busiact) as busiact,'Office Setup' as label34,upper(Field150_2) as offsetups,'Accessibility' as label35,upper(easeloc) as easeloc,'Route MAP' as label36,upper(Field150_1) as routemap,'SALARIED PROFILE' as label37,'Name of the Company' as label37,(case when (select category from main where mvcode= o.mvcode)='Salaried' then upper(companyname) else '' end) as companyname ,'Company Profile' as label38,(case when (select category from main where mvcode= o.mvcode)='Salaried' then upper(proddealt) else '' end) as proddealtsal,'Applicant Designation' as label39,(case when (select category from main where mvcode= o.mvcode)='Salaried' then (case when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) else '' end) as appdesignsal,'Department' as label40,upper(appdept) as appdept,'Reporting To' as label41,upper(reportingto) as reportingto,'Employee Number' as label42,upper(Field30_11) as empno,'Applicant''s Job' as label43,upper(jobtype) as jobtype,'Years of Experience' as label44,(case when (select category from main where mvcode= o.mvcode)='Salaried' then ((case when (yrstot<>'0' and yrstot<>'') then yrstot||' YEARS(S) ' else '' end)||(case when (mnthtot<> '0' and mnthtot<> '') then mnthtot||' MONTH(S)' else '' end)) else '' end) as yrsexp,'Salary Details' as label45,upper(saldetail) as saldetail,'Transferable Job' as label46,upper(transferable) as transferable,'Total No of Employee' as label47,upper(totemp) as totemp,'Number of Branches' as label48,totbranch,'Previous Job Details If Current Job < 1 Year' as label49,upper(prevjobdet) as prevjobdet,'SELF-EMPLOYED PROFILE' as label50,'Person Met and Relationship With Business' as label51,(upper(metperson)||' ('||(case when metrela='Others' then upper(metrealoth) else upper(metrela) end)||')') as metpers1,'Nature of Business' as label52,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end) as compprof,'Business Board Seen' as label53,upper(bizboard) as bizboard,'Business Proof Verified' as label54,(case when upper(Field30_12)='-1' then 'NA' else upper(Field30_12) end) as bproof,'Business Proof Details' as label55,upper(Field50_2) as proofdet,'Business Ownership' as label56,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Business Premises' as label57,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Exteriors of the Business Premises' as label58,(case when Field30_10='-1' then 'NA' else upper(Field30_10) end) as extofbus,'Interiors of the Business Premises' as label59,upper(Field150_3) as intbusse,'Total No of Employees' as label60,totemp,'Number of Employees Seen' as label61,upper(Field30_4) as empseense,'No of Customer Seen' as label62,custseen,'Average Billing Per Customer' as label63,upper(Field30_13) as bpc,'Number of Customers Per Day' as label64,custperday,'Average Monthly Turnover' as label65,upper(turnover) as turnover,'Stock & Machinery Details' as label66,upper(stockdet) as stockdet,'Peek Business Hours' as label67,upper(Field30_15) as pekbhour,'Market Holiday' as label68,(case when Field30_16='-1' then 'NA' else upper(Field30_16) end) as mkthol,'Level of Business Activity' as label69,upper(busiact) as busiact1,'Existing Vehicle Details' as label70,upper(Field50_3) as extveh,'Vehicle Reg. No.' as label71,upper(Field30_17) as regno,'Free/Finance Details' as label72,upper(Field50_5) as financer,'Other Loan Obligations' as label73,upper(Field50_4) as othloan,'Whether Affiliation to Any Political Party Visible' as label74,(case upper(political) when 'YES' then 'YES - '||upper(politicdet) when 'NO - '||upper(politicdet) then upper(political) else 'NA' end) as political,'NEIGHBOUR CHECK' as label75,'Neighbour Check 1' as label76,upper(Fieldtext_1) as neigh1,'Neighbour Check 2' as label77,upper(Fieldtext_2) as neigh2,'OTHER DETAILS' as label78,'Verifier''s Remarks' as label79,upper(verremarks) as verremarks,'Additional Income If Any and Details' as label80,upper(othsource) as othsource,'Any concerning Issue Noticed During Verification' as label81,upper(alertrem) as alertrem,'SUPERVISOR COMMENT' as label82,'Remarks' as label83,upper(remarks) as remarks,'Final Status' as label84,upper(status) as status,'Verifier''s Name & Signature' as label72,'Supervisor''s Name & Signature' as label73,'Agency Seal' as label74,upper(rvername) as rvername,upper(reportdoneby) as reportdoneby,(case when portfolio_id=87 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode from banklist_main_office o where (val0) val1
Query339!C0L!select!C0L!select uuid,verifier,mvcode,applno,customername,apptype,product,portname,bkbranchname,to_char(doneon, 'DD/MM/YYYY HH24:MI:SS') as doneon,batch,verifiercode,visit,(CASE WHEN (islocked=1 and lockedby>0 and lockedby!=val0) then '
' else '' end) as flags,islocked,COALESCE ((select displayname||' ('||loginid||')' from app_user where user_id=lockedby),'') as lockedbyusr,portfolio_id,'' as ispending,'' as doubtfull,to_char(receivedon, 'DD/MM/YYYY HH24:MI:SS') as receivedon,scannername,metrela, forcrosscheck, 0 as tempf from reporting_qcsoftupd1 where 1=1 and (val1) and (val2) val4 order by doneon,applno,visit desc
Query340!C0L!select!C0L!select group_id, name FROM user_group where (val0) order by name
Query341!C0L!select!C0L!select user_id,loginid||'-'||upper(displayname) FROM app_user where group_id=val0 and isactive=1 order by loginid
Query342!C0L!select!C0L!SELECT empname, fathername, curr_address, curr_city, curr_pincode,perm_address, perm_city, perm_pincode, pers_contactno, alt_contactno,to_char(dob,'dd/MM/yyyy') as dob, to_char(doj,'dd/MM/yyyy') as doj, prev_company, prev_designation, prev_duration, refname1, refcontactno1, refrelation1, refaddress1, refname2, refcontactno2, refrelation2, refaddress2, alloted_mobileno, to_char(cpvdate,'dd/MM/yyyy') as cpvdate, cpvstatus, cpvremarks, cpvdoneby, to_char(lefton,'dd/MM/yyyy') as lefton, leftreason, branch, emailid, entity_id, designation, to_char(sim_issuedon,'dd/MM/yyyy') as sim_issuedon ,to_char(sim_submittedon,'dd/MM/yyyy') as sim_submittedon, leftremarks, to_char(refcheckon,'dd/MM/yyyy') as refcheckon, refcheck_status, qualification, maritialstatus, ref1knowsince, ref2knowsince, fileno, emp_documents, cpv_documents, eid FROM employee WHERE branch=val0;
Query343!C0L!select!C0L!select uuid,bkbranchname,product,mvcode,applno,bkbranchname as bkbranchname1,field1,mvcode,field2,product as product1,applno as applno1,customername,'' as name, '' as lname,(case when field3='Others' then field4 else field3 end) as dsampled,field5,field9,field6,field150,loanamount,coalesce(paddr1||' '||paddr2,'') as paddr1,paddr3,pcity,ppincode,mobileno,companyname,coalesce(oaddr1||' '||oaddr2,'') as oaddr1,oaddr3,ocity,opincode,ophone,dob,field7,field8,(CASE WHEN resiverifier > 1 THEN (select upper(verifiername) from verifier where verifier_id=resiverifier) ELSE (select upper(verifiername) from verifier where verifier_id=offverifier) END) as bkdesc,status,fieldtext_1,remarks,field3_1,field20_1,field10_1,field10_3,field10_4,'' as chequedate,field10_2 from banklist_main_property where (val0)
Query344!C0L!insert!C0L!insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN ''val12'' = ''NOIDA_2'' THEN 1112 WHEN ''val12'' = ''HL_GURGAON'' THEN 476 WHEN ''val12'' = ''HL_DELHI_CP'' THEN 474 WHEN ''val12'' = ''DELHI_LAJPAT NAGAR'' THEN 477 WHEN ''val12'' = ''HL_NOIDA'' THEN 473 WHEN ''val12'' = ''HL_MOTI NAGAR'' THEN 1278 WHEN ''val12'' = ''HL_ROHINI'' THEN 472 WHEN ''val12'' = ''HL_EAST OF KAILASH'' THEN 475 WHEN ''val12'' = ''HL_VAISHALI'' THEN 478 WHEN ''val12'' = ''HL_FARIDABAD'' THEN 471 WHEN ''val12'' = ''HL_PATPARGANJ'' THEN 479 ELSE ''-1'' END),''val1'',(CASE WHEN ''val3'' = ''HL'' THEN ''Home Loan'' WHEN ''val3'' = ''LAPL'' THEN ''LAP'' ELSE ''-1'' END),NULL,''val4'',(CASE WHEN ''val15''=''APPLICANT'' THEN ''Applicant'' WHEN ''val15''=''CO-APPLICANT'' THEN ''Co-Applicant'' ELSE ''-1'' END),(CASE WHEN ''val0''=''SALARIED'' THEN ''Salaried'' ELSE ''-1'' END),''val11'',NULL,(CASE WHEN length(''val16'') > 2 THEN ''val16'' ELSE NULL END),(CASE WHEN ''val13'' = ''1'' THEN ''RadDrXS-val5-ERadDrX'' ELSE NULL END),(CASE WHEN ''val13'' = ''1'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val13'' = ''1'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,(CASE WHEN ''val13'' = ''1'' THEN ''val7'' ELSE NULL END),(CASE WHEN ''val14'' = ''1'' THEN ''val8'' ELSE NULL END),(CASE WHEN ''val14'' = ''1'' THEN ''OadDrXS-val9-EOadDrX'' ELSE NULL END),(CASE WHEN ''val14'' = ''1'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val14'' = ''1'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,(CASE WHEN ''val14'' = ''1'' THEN ''val10'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,''val13'',0,''val14'',0,0,0,0,0,0,0,'''',0,0,0,NULL,''val1'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,val17,val18,0,''val19'',''val20'','''')
Query345!C0L!select!C0L!select c.contact_id,pb.portname,pb.bkbranchname,c.contact_name,c.emailid,u.loginid,c.portfolio_id,c.bank_branch_id,c.isactive,ct.type_id,ct.contacttype,cm.contact_map_id,cm.mappedon,cm.mappedby,(case when cm.receipent_type = 1 then 'TO' else 'CC' end) as receipent_type from contacts c left join contact_mapping cm on c.contact_id=cm.contact_id left join contact_type ct on ct.type_id=cm.type_id left join app_user u on cm.mappedby=u.user_id left join portfolio_bank_branch pb on c.bank_branch_id=pb.portbranch_id where 1=1 and (val0)
Query346!C0L!procedure!C0L!select addemailid(val0, val1, 'val2', 'val3', val4, val5, 'val6', val7, val8)
Query347!C0L!select!C0L!select u.loginid, g.name, c.operation, to_char(c.operationon,'dd-MON-yyyy HH24:mm:ss') as operationon FROM contacts_history c left join app_user u on c.user_id=u.user_id left join user_group g on u.group_id=g.group_id where c.contact_id=val0;
Query348!C0L!select!C0L!select uuid,product,company_id,bank_branch_id,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(mvcode) as mvc1,'Customer Visit Report','','','SECURED BUSINESS LOAN - Periodic Review','','','Customer Name:',upper(customername),'','','Cust id -',applno,'Loan nos -',upper(bankcode),'','','Facility since:',to_char(dtfield1,'DD/MM/YYYY') as dtfield1,'Sanctioned Amount: Rs',upper(field2),'lacs','','','Current O/S',upper(field1),'Balance Tenure','','','','Total Borrowings from Banking / Financial sector: Rs.','','lacs','','','Prepared by:','','Person met:','','Visit Date','','','','Address of place visited','','','','City Name','','' , ' ','','Sr No','Description','Yes/No',' ',' ','1.','Nature Of Business ?',' ',' ','Manufacturing/Service/Trading Whole Sale/Trading Retail Industry :-',' ','2.','Is there a significant dip or spurt in sales ?','Yes/No',' ','If yes- aproximate % age______________%',' ','3.','Is there a significant delay of payments From customer''s debtors?','Yes/No',' ','If yes- aproximate days_____________days',' ','4.','a) Is there a change in the line of business ?','Yes/No',' ','b) If yes, has there been any diversion of funds to real estate',' ','5.','Future Expansion plans','Yes/No',' ','If Yes-',' ',' ','6.','Any new loans added in last 12 month','Yes/No',' ','If Yes-(pls give details)','1)',' ',' ','2)','_________________________________________________',' ',' ' ,'7.' ,'Has the customer indicated that they are unable to repay loans or interest or any other obligation ?' ,'Yes/No' ,' ' ,'If yes- Temporary problem/Major Problem' ,'Remarks: ' ,' ' ,'8.' ,'Any change in constitution of business - any addtion /deletion of partners/directors' ,'Yes/No' ,' ' ,'If Yes-(pls give details)' ,'1)' ,' ' ,' ' ,'2)' ,'_____________________' ,' ' ,' ' ,'9.' ,'Are the collaterals provided maintained in satisfactory condition ?' ,' Yes/No ' ,' ' ,' ' ,'10.' ,'Is there any other relevant information ?' ,' Yes/No ' ,' ' ,'If Yes (Please fill remarks below)' ,' ' ,'11.' ,'SC/ST status of the borrower Yes No' ,'Yes/No' ,' ' ,'','','','(In case of proprietorship firm , the SC/ST status of the proprietor is to be considered. Ignore if constitution is other than individual or sole proprietorship))',' ',' ',' ' ,'12.' ,'End Use of Loan :' ,'' ,' ' ,' ' ,' ','','','' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,'Remarks :' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,'Sign' ,' ' ,'Date:' ,' ' ,' ' ,'(For Office Use Only)' ,' ' ,'Reviewer''s Comment :' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,' ' ,'Are you satisfied with the conduct of the account ?' ,' ' ,' ' ,'Yes/No' ,' ' ,' ' ,' ' ,'Reviewer Name :' ,' ' ,'Designation:' ,' ' ,' ',' ' ,' ' ,'Signature:' ,' ' ,'Date :' ,' ' ,'c' from main t where (val0) val1
Query349!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',''466'',''val2'',''Business Loan'','''',''val1'',''Applicant'',''-1'',NULL,NULL,''val9'',''RadDrXS-val10 -ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,''-1'',NULL,''val9'','''',''OadDrXS-val11-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,''-1'',NULL,'''','''',''val8'','''',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val10'') > 3 and ''val10'' <> ''NA'' then 1 else 0 end),0,(case when length(''val11'') > 3 and ''val11'' <> ''NA'' then 1 else 0 end),0,0,0,0,0,0,0,'''',0,0,0,NULL,''val3'',''val6'',''val7'',NULL,NULL,NULL,''val5'',''val0'',val12,val13,0,''val14'',''val15'','''')
Query350!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',''90'',''val0'',''Two Wheeler Loan'',''val6'',''val1'',(case when ''val2''=''Self'' then ''Applicant'' when ''val2''=''Guarantor'' then ''Guarantor'' when ''val2''=''Co-Applicant'' then ''Co-Applicant'' end),(case when ''val3''=''Salaried'' then ''Salaried'' when ''val2''=''Self Employed'' then ''Self Employed'' else ''-1'' end),''val4'',NULL,''val5'',''RadDrXS-val8 -ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,''-1'',''val9'',''val10'',''val11'',''OadDrXS-val12-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,''-1'',''val13'','''',''val14'',''val15'','''',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val8'') > 3 and ''val8'' <> ''NA'' then 1 else 0 end),0,(case when length(''val12'') > 3 and ''val12'' <> ''NA'' then 1 else 0 end),0,0,0,0,0,0,0,''Model - ''||''val7'',0,0,0,NULL,'''',NULL,NULL,NULL,NULL,NULL,NULL,NULL,val16,val17,0,''val18'',''val19'','''')
Query351!C0L!select!C0L!SELECT uid, doctype, docpath FROM tagged_docs where uuid='val0' and vistype='val1' and isdeleted=0
Query352!C0L!procedure!C0L!select tagdocs('val0','val1','val2','val3',val4,'val5')
Query353!C0L!procedure!C0L!select updateemployee('val0',val1,'val2','val3')
Query354!C0L!procedure!C0L!select updatecasedocs('val0',val1,'val2','val3')
Query355!C0L!procedure!C0L!select portwisephotomis('val0', 'val1', val2, val3, val4, 'val5', 'val6', 'val7', 'val8')
Query400!C0L!insert!C0L!Insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',80,''val3'',(case when ''val4''=''LAP'' then ''LAP'' when ''val4''=''Home Loan'' then ''Home Loan'' else ''-1'' end),'''',''val1'',''Applicant'',''-1'',NULL,NULL,''val11'',(case when ''val7''=''Residence verification'' then ''RadDrXS-val9 -ERadDrX'' else ''RadDrXS- -ERadDrX'' end),''RadDrX1'',''RadDrX2'',NULL,0,''-1'',NULL,(case when ''val7''=''Residence verification'' then ''val10'' else '''' end),'''',(case when ''val7''=''Office verification'' then ''OadDrXS-val9-EOadDrX'' else ''OadDrXS--EOadDrX'' end),''OadDrX1'',''OadDrX2'',NULL,0,''-1'',NULL,'''',''val13'',(case when ''val7''=''Office verification'' then ''val10'' else '''' end),'''',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when ''val7''=''Residence verification'' then 1 else 0 end),0,(case when ''val7''=''Office verification'' then 1 else 0 end),0,0,0,0,0,0,0,'''',0,0,0,NULL,'''',NULL,NULL,NULL,NULL,NULL,''val5'',NULL,val12,val13,0,''val14'',''val50'','''')
Query401!C0L!select!C0L!select uuid,product,maincompany_o,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'For YES BANK Ltd Internal Use Only','VENDOR PRE-SIGN UP CHECK REPORT',' ',' ','Initiated Date ',receivedate_o,' ','Completed Date ',sdoneon_o,'1. GENERAL INFORMATION','Vendor to be empanelled ',': '||upper(customername_o),'Product ',': '||upper(product_o),'Nature of business ',':'||upper(compprof_o),'Off.Address with pin code',': '||upper(oaddr_o),'Phone No/Mobile',': '||ophone_o,'Email ID','define','Type Of Establishment',': '||upper(busitype_o),'Name of Proprietor/Director/Partners',': '||upper(field30_1_o),' ',' ','1. OFFICE VERIFICATION','Date and Time of visit',coalesce(': '||visitdate_o||' '||visittime_o,': '),'Contacted Person',coalesce(': '||upper(metperson_o),':'),'Area of office',coalesce(': '||upper(field30_4_o),':'),'Infrastructure Details ',' ','1. Furniture',coalesce(': '||upper(stockdet_o),''),'2.Telephones',coalesce(': '||field30_14_o,':'),'3.Fax',coalesce(': '||field30_15_o,':'),'4.Computer',coalesce(': '||field30_10_o,':'),'5.AC',coalesce(': '||field30_12_o,':'),'6.Internet',': ','7.Cabin/Cubicles','define',' ','Business activity',': '||upper(busiact_o),'Office name board',': '||upper(bizboard_o),'Manpower',': '||totemp_o,'No of years in business',': '||coalesce(yrstot_o,'0')||' Years and '||coalesce(mnthtot_o,'0')||' Month','Office',': '||upper(ownership_o),'Neighbour check and Confirmation : '||upper(fieldtext_1_o),' ','Office Locality :','1)',(case when upper(locality_O)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),'Posh',(case when upper(locality_O)='UPPER CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Upper Class',(case when upper(locality_O)='MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Middle Class',(case when upper(locality_O)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Lower Middle Class',(case when upper(locality_O)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum',' ','2)',(case when upper(locality_O)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial',(case when upper(locality_O)='RESIDENTIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential Area',(case when upper(locality_O)='SMALL SCALE INDUSTRIAL AREA' then 'images/tick.gif' else 'images/untick.jpg' end),'Small/Medium','img','Shops',(case when upper(locality_O)='SHOP/OFFICE COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end),'Market Area',(case when upper(locality_O)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Other',' ','Work Experience & Business Detailsof The Vendor','Previous Experience',': '||upper(prevjobdet_o),'Profile /Goodwill',': '||upper(busiact_o),'Fraud History',': '||(case when upper(redalert_o)='YES' then upper(alertrem_o) else '' end),'Prior terminations',': '||'NA','Police Verification',': '||'NA',' ','Additional Information','PAN details of the Vendor',': '||panno_o,'Bank Account details',': '||upper(bank_o),' ','Reference Check Details : NA',' ','Reference Check Details : NA',' ','Risk Alert and Other details :',(case when upper(redalert_o)='YES' then upper(alertrem_o) else 'NA' end),' ','Final Remarks of office verification :',upper(remarks_o),'3.DETAILS AND RESIDENCE VERIFICATION(Proprietor/Partner/Director as applicable)','Name of the Proprietor/Partnor/Director :',upper(spsname_r),'DOB & Qualifications ',': '||upper(dob_r)||' and '||upper(field30_11_r),'DOB & Qualifications ','define','Residence Address With Pin Code ',': '||upper(raddr_r),'Name Board ',': '||upper(nameplate_r),'Date and Time of visit',': '||visitdate_r||' : '||visittime_r,'Person contacted during visit',': '||upper(metperson_r)||'('||upper(metrela_r)||')','Ownership Status',upper(rowner_r),'Marital status & Family Structure',': '||upper(maritial_r)||'( Total family member-'||totmem_r,'Years in corrent residence',': '||upper(yrsadd_r)||' Years and '||coalesce(upper(mnthadd_r),'0')||' Month ','Years in city',': '||upper(yrscity_r)||' Years and '||coalesce(upper(mnthcity_r),'0')||' Month ',' ','Observations',' ','Type of Residence','Locality of Residence',' ',(case when upper(restype_r)='INDEPENDENT HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end),'Independent House',(case when upper(locality_r)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),'Posh',(case when upper(locality_r)='HOUSING COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end),'Housing Complex',(case when upper(restype_r)='FLAT' then 'images/tick.gif' else 'images/untick.jpg' end),'Flat',(case when upper(LOCALITY_r)='UPPER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Upper Middle Class',(case when upper(locality_r)='SMALL/MEDIUM SHOPS' then 'images/tick.gif' else 'images/untick.jpg' end),'Small/Medium Shops',(case when upper(restype_r)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum',(case when upper(LOCALITY_r)='MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Middle Class',(case when upper(LOCALITY_r)='MARKET AREA' then 'images/tick.gif' else 'images/untick.jpg' end),'Market Area',(case when upper(restype_r)='SITTING CHAWL/HUTMENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Hutment',(case when upper(LOCALITY_r)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Lower Middle Class',(case when upper(LOCALITY_r)='OTHER' then 'images/tick.gif' else 'images/untick.jpg' end),'Other',(case when upper(restype_r)='CHAWL' then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl',(case when upper(LOCALITY_r)='UNDER DEVELOPMENT AREA' then 'images/tick.gif' else 'images/untick.jpg' end),'Under-development Area',' ',(case when upper(restype_r)='SMALL UNIT WITHIN HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end),'Small unit within house',(case when upper(LOCALITY_r)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum',' ',' ',(case when upper(LOCALITY_r)='COMMERCIAL AREA' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial Area',' ','Area :',upper(carpetarea_r),' ',' ',' ','Construction','Exterior','Interior',(case when upper(construction_r)='PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end),'Pukka',(case when upper(FURLEVEL_r)='HIGH' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(INTERIOR_r)='WELL FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(CONSTRUCTION_r)='SEMI PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end),'Semi-Pukka',(case when upper(FURLEVEL_r)='MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average',(case when upper(INTERIOR_r)='AVERAGELY FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Average',(case when upper(CONSTRUCTION_r)='TEMPORARY' then 'images/tick.gif' else 'images/untick.jpg' end),'Temporary',(case when upper(FURLEVEL_r)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(INTERIOR_r)='POORLY FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(CONSTRUCTION_r)='BRICK WALLED' then 'images/tick.gif' else 'images/untick.jpg' end),'Brick Walled',(case when upper(FURLEVEL_r)='LIFT PRESENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Lift Present(Y/N)',' ',(case when upper(CONSTRUCTION_r)='PLASTERED' then 'images/tick.gif' else 'images/untick.jpg' end),'Plastered',(case when upper(chkfield12_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Watchman Present',' ',' ','Interior Condition','Durables Owned','Vehicles Owned','Income Group',(case when upper(field30_25_r)='PAINTED' then 'images/tick.gif' else 'images/untick.jpg' end),'Painted',(case when upper(field30_15_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'TV',(case when upper(chkfield1_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Two Wheelers',(case when upper(field30_24_r)='HIG' then 'images/tick.gif' else 'images/untick.jpg' end),'HIG',(case when upper(field30_25_r)='FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Furnished',(case when upper(field30_21_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'AC',(case when upper(field30_18_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Cars',(case when upper(field30_24_r)='MIG' then 'images/tick.gif' else 'images/untick.jpg' end),'MIG',(case when upper(field30_25_r)='CARPETED' then 'images/tick.gif' else 'images/untick.jpg' end),'Carpeted',(case when upper(field30_17_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Fridge',' ',(case when upper(field30_24_r)='LIG' then 'images/tick.gif' else 'images/untick.jpg' end),'LIG',(case when upper(field30_25_r)='CURTAINS' then 'images/tick.gif' else 'images/untick.jpg' end),'Curtains',(case when upper(field30_19_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Music System',' ',' ',(case when upper(chkfield17_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Clean',(case when upper(chkfield16_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Sofa',' ',' ',' ','Neighbour/TPC Check : '||upper(fieldtext_1_r),'Risk Alert and Other details :',(case when upper(redalert_r)='YES' then upper(alertrem_r) else 'NA' end),' ','Final Remarks of Residence verification :',upper(remarks_r),' ','4.DEDUPE CHECK STATUS (To be carried out at the bank and incorporated in the report)','Outcome of CIBIL check',': '||upper(negremarks_d),'Internal Dedupe Check',': '||upper(earremarks_d),' ','5.DOCUMENT VERIFICATION:','1)','NA','2)','NA','3)','NA','4)','NA','5)','NA','6)','NA',' ','6.SUMMARY :','Office Profile/Verification Status',': '||upper(status_o),'Residence Verification Status',': '||upper(status_r),'Previous Work Experience Check Status',': NA','Vendor Reference Status',': NA','Document Verification Status',': NA',' ','OVERALL STATUS',upper(overallstatus_o),' ','images/signs/'||sdoneby_o||'.png',' ',' ','Reviewed By -',upper(reportdoneby_o),' ','Stamp of Agency and Signature',' ','Date:',sdoneon from banklist_main_all m where (val0) val1
Query403!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,' ',' ','HDFC Bank Ltd- Risk Intelligence & Control',' ','Vendor Profiling Report',' ',' ','Initiated Date :',to_char(receivedate,'DD/MM/YYYY'),' ','Completed Date : ',to_char(sdoneon,'DD/MM/YYYY'),'1.General Information','Vendor to be empanelled ',Upper(field30_4_o),'Product',upper(field30_21_o),'Nature of business',(case when upper(compprof_o)='OTHERS' then upper(compprofoth_o) else upper(compprof_o) end),'Address with PIN Code',upper(oaddr_o),'Phone Nos/Mobile',(select mobileno from main where uuid=r.uuid ),'Emailid ','','Type of Setup ',upper(busitype_o),'No of Promoters',upper(field50_14_o),' ','2. Office Verification','Date and Time of Visit',visitdate_o||' : '||visittime_o,'Contacted Person',upper(metperson_o)||', '||(case when upper(metrela_o)='OTHERS' then upper(metrealoth_o) else upper(metrela_o) end ),'Area Of the Office',upper(field30_3_o),'Independent or a Resi-cum Office',upper(field30_2_o),'Infrastructure Details',upper(stockdet_o),'1. Furniture',field30_6_o,'2. Telephone',field30_8_o,'3. Fax',field30_11_o,'4. Computers',field30_7_o,'5. AC',field30_10_o,'6. Internet',field30_12_o,'7. Internet',field30_12_o,'8. Cabins/Cubicles',field30_13_o,'Business activity',upper(busiact_o),'Office name board',upper(field30_15_o),'Manpower','Informed',totemp_o,'Seen',field30_14_o,'No of Years in business',coalesce(yrsjob_o,'0')||' Years and '||coalesce(mnthjob_o,'0')||' Months','Office',upper(field50_13_o),' ','Neighbour check and confirmation',upper(fieldtext_1_o),upper(fieldtext_3_o),'Office Locality',upper(locality_o),' ',' ',' ','Work experience & Business details of the vendor','Previous Experience',coalesce(prevjobyrs_o,'0')||' Years ,'||upper(prevjobdet_o),'Profit/Goodwill',upper(field30_5_o),'Risk Alert History',(case when upper(redalert_o)='YES' then upper(alertrem_o) else 'NA' end),'Police Verification',upper(field30_20_o),'Prior Termination',upper(field30_16_o),' ','Additional Information','PAN details of the Vendor',panno_o,'Bank Account details',upper(bank_o),' ','Reference Check Details ',upper(fieldtext_2_o),' ',' ',' ',' ',' ','Risk Alert and Other details',UPPER(riskremarks_o),' ','Final Remarks of office verification :',upper(remarks_o),' ',' ',' ','3. Details & Residence Verification(Proprietor/Partner/Director as applicable)','Name of the Proprietor/Partner/Director :',upper(contactperson),'DOB & Qualifications ',coalesce(dob_r,'NA')||', '||upper(field30_4_r),'Residence Address with PIN',upper(raddr_r),'Name Board',upper(platedet_r),'Date and Time of Visit',visitdate_r||' : '||visittime_r,'Person Contacted During Visit',upper(metperson_r)||','||(case when upper(metrela_r)='OTHERS' then upper(metrealoth_r) else upper(metrela_r) end),'Ownership Status',upper(rowner_r),'Marital Status & Family Structure',upper(maritial_r)||' '||upper(field30_3_r),'Years in Current Residence',yrsadd_r||' Years and '||coalesce(mnthadd_r,'0')||' Months','Years in City',yrscity_r||' Years and '||coalesce(mnthcity_r,'0')||' Months',' ',' ',' ','Additional Information','PAN Details',upper(field30_13_r),'Bank Account Details',upper(field30_12_r),' ','Observations','Type of residence','Locality of Residence',' ',(case when upper(restype_r)='FLATE/PART OF INDEPENDENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Independent House',(case when upper(locality_r)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),'Posh',' ',(case when upper(restype_r)='FLAT' then 'images/tick.gif' else 'images/untick.jpg' end),'Flat',(case when upper(locality_r)='UPPER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Upper Middle Class',' ',(case when upper(restype_r)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum',(case when upper(LOCALITY_r)='MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Middle Class',' ',(case when upper(restype_r)='HUTMENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Hutment',(case when upper(LOCALITY_r)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Lower Middle Class',' ',(case when upper(restype_r)='CHAWL' then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl',(case when upper(LOCALITY_r)='UNDERDEVELOPED' then 'images/tick.gif' else 'images/untick.jpg' end),'Under Development Area',' ',(case when upper(LOCALITY_r)='SMALL UNIT WITH IN HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end),'Small unit with in House',(case when upper(LOCALITY_r)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum',' ',' ',(case when upper(LOCALITY_r)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial Area',' ','Area',upper(carpetarea_r),' ',' ',' ','Construction','Exterior','Interior',(case when upper(construction_r)='PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end),'Pukka',(case when upper(interior_r)='WELL FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field30_7_r)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(construction_r)='SEMI-PUKKA' then 'images/tick.gif' else 'images/untick.jpg' end),'Semi-Pukka',(case when upper(INTERIOR_r)='AVERAGELY FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Average',(case when upper(FIELD30_7_r)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average',(case when upper(construction_r)='TEMPORARY' then 'images/tick.gif' else 'images/untick.jpg' end),'Temporary',(case when upper(INTERIOR_r)='POORLY FURNISHED' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(FIELD30_7_r)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(construction_r)='BRICK WALLED' then 'images/tick.gif' else 'images/untick.jpg' end),'Brick Walled',' ',' ',(case when upper(construction_r)='PLASTERED' then 'images/tick.gif' else 'images/untick.jpg' end),'Plastered','Lift Present(Y/N)',UPPER(FIELD30_8_r),' ',' ','Watchman Present:',upper(field30_10_r),' ',' ','Interior Conditions','Durables Owned','Vehicles Owned','Income Group',(case when upper(chkfield1_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Painted',(case when upper(chkfield6_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'TV',(case when upper(field30_5_r)='TWO WHEELERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Two Wheelers',(case when upper(field50_15_r)='HIG' then 'images/tick.gif' else 'images/untick.jpg' end),'HIG',(case when upper(chkfield2_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Furnished',(case when upper(chkfield7_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'AC',(case when upper(field30_5_r)='CARS' then 'images/tick.gif' else 'images/untick.jpg' end),'Cars',(case when upper(field50_15_r)='MIG' then 'images/tick.gif' else 'images/untick.jpg' end),'MIG',(case when upper(chkfield3_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Carpeted',(case when upper(chkfield8_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Fridge',' ',(case when upper(field50_15_r)='LIG' then 'images/tick.gif' else 'images/untick.jpg' end),'LIG',(case when upper(chkfield4_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Curtains',(case when upper(chkfield9_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Music System',' ',' ',(case when upper(chkfield5_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Clean',(case when upper(chkfield10_r)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Sofa',' ',' ',' ','Neighbour/ TPC Check','Name of the Neighbor TPC Remarks',upper(fieldtext_1_r),'Name of the Neighbor TPC Remarks',upper(fieldtext_2_r),' ','Risk Alert and other Details',upper(riskremarks_r),' ','Final Remarks of Residence Verification',upper(remarks_r),'Dedupe check status (To be carried out at the Bank and incorporated in the report)' as dedupelabel,'Output of SAS / Internal Dedupe Check','','Outcome of CIBIL Score','','Summary','OfficeProfile/Verification Status',upper(status_o),'Residence Verificaition Status',upper(status_r),'Previous Work Experience Check Status','NOT SHARED','Vendor Rererence Status',Upper(field30_17_o),'Document Verification Status','','OVERALL STATUS','',' ',' ','',' ','Reviewed By -',' ',' ',sdonebyname,'Date:'||to_char(sdoneon_o,'DD/MM/YYYY'),' ','STAMP OF AGENCY','',' ','images/signs/'||supervisor_o||'.png' as sign,(case portfolio_id when 45 then 'Residence Photographs' else '{SK!PTH15D@TA}' end),(case portfolio_id when 45 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as resphotographs,(case portfolio_id when 45 then 'Office Photographs' else '{SK!PTH15D@TA}' end),(case portfolio_id when 45 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as offphotographs from hdfc_dsa_banklist1 r where (val0) val1
Query404!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,' ',' ',(CASE WHEN portfolio_id=174 THEN 'VASTU FINSERVE' ELSE 'NEOGROWTH CREDIT PVT. LTD. VERIFICATION FORMAT' END),'File No.',upper(applno),'#Residence Verificaition ',upper(field50_5),'Resi Address',upper(raddr),'Person Met',upper(metperson),'Relationship with App.',(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end),'Owned/Rented',(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end),'Number of Years Stay:',coalesce(yrsadd,'0')||' Years and '||coalesce(mnthadd,'0')||' Months','Total family members',totmem,'Working members:',earning,'Number of dependent:',dependent,'Applicant Occupation','Self Employed','Contact No. residence',rphone,'#Residence Verification Observation Points',' ','Assest seen',(case when upper(field150_1)!='' then 'YES' else 'NO' end),'Type of residence',(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end),'Standerd of living',upper(furlevel),'Area of premises',upper(carpetarea),'Interior:',upper(interior),'Premise has Pukka/Cemented Roof?' as premconst,(case upper(construction) when 'PUKKA' then 'YES' when 'NA' then 'NA' else 'NO' end) consttype,'Locality (Clearly mention if Slum Area)' as locatype,(case upper(locality) when 'OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Door color',upper(field15_10),'Name plate',upper(nameplate),'Society board',upper(socboard),'Total No. of story Building',upper(typeoth),'Building color',upper(field15_9),'First Neighbour confirmation',upper(fieldtext_1),'Second Neighbour confirmation',upper(fieldtext_4),'First landmark',upper(field50_2),'Second landmark','NA','Document check','NA','Verifier comment/Remarks- Part 1 (Mandatory)',upper(remarks),'Verifier comment/Remarks- Part 2 (Mandatory)',upper(fieldtext_3),'Neighbour''s Feedback',upper(field30_9),'Security & Reception staff feedback','NA','If TPC Negative then' as lblnegreason,'Residence Premise is rarely open/mostly closed.',(case when upper(field50_7)=upper('Residence Premise is rarely open/ mostly closed') then 'YES' else 'NA' end) as n1,'Borrower has political connections',(case when upper(field50_7)=upper('Borrower has political connections') then 'YES' else 'NA' end) as n2,'Residence Premise is frequently visited by collection staff of other Financiers',(case when upper(field50_7)=upper('Residence Premise is frequently visited by collection staff of the Financiers') then 'YES' else 'NA' end) as n3,'Other- pls specify', (case upper(field50_7) when 'OTHERS' then upper(field50_8) else upper(field50_7) end) as neighnegres,'Verifier name / Sign. & No.',upper(rvername),'Date',coalesce(visitdate,'')||coalesce(visittime,''),'Agnency name & No.',(case portfolio_id when 95 then 'Arvee Bizpro Solutions Pvt. Ltd.' else 'Matrix Credit Risk Control Pvt Ltd.' end),'Status- Positive / Negative',upper(status),'If Negative then reason',(case when upper(status)='NEGATIVE' then upper(negreason) else 'NA' end),(case when portfolio_id=174 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case when portfolio_id=174 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end),' ',(case portfolio_id when 95 then 'Arvee Bizpro Solutions Pvt. Ltd.' else 'Matrix Credit Risk Control Pvt Ltd.' end),mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(case portfolio_id when 95 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature from banklist_main_residence r where (val0) val1
Query405!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,' ' ,' ' ,(CASE WHEN portfolio_id=174 THEN 'VASTU FINSERVE' ELSE 'NEOGROWTH CREDIT PVT. LTD. VERIFICATION FORMAT' END),'File No.',upper(applno),'#Office Verificaition ' ,upper(field50_5) ,'Office Address' ,upper(oaddr) ,'Person Met' ,upper(metperson),'Met Person Designation Or Relation' ,( case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) ,'Sign Board on Shop/Office' ,upper(bizboard) ,'Number of Years in Bussiness' ,coalesce(yrstot,'0')||' Years and '||coalesce(mnthtot,'0')||' Months','Type of Organisation' ,upper(busitype),'Ownership of Premises' ,upper(ownership),'Number of Employees' ,totemp ,'Number of Braches' ,totbranch ,'No. of Years in the same Shop/Office' , coalesce(yrsjob,'0')||' Years and '||coalesce(mnthjob,'0')||' Months' ,'No. of EDC Terminal' ,upper(field15_10) ,'EDC Terminal acquiring Bank name' ,upper(field50_15) ,'#Office Verification Observation Points' ,' ' ,'Assest seen' ,(case when upper(field150_1)!='' then 'YES' else 'NO' end),'Interior Shop/Office' ,upper(field50_14),'Bussiness activity' ,upper(busiact) ,'Stock Seen' ,upper(stockdet),'Premise has Pukka/Cemented Roof?',(case upper(field30_22) when 'PUKKA' then 'YES' else 'NO' end) as contype,'Office contact no.' ,ophone,'Type of office' ,upper(busitype) ,'Locality (Clearly mention if slum area)' ,upper(locality),'Office area' ,upper(field30_3),'Shop/Office is in the market' ,upper(field15_8) ,'Documents check' ,'NA', 'First Neighbour confirmation' ,upper(fieldtext_1) ,'Second Neighbour confirmation' ,upper(fieldtext_4) ,'First Landmark' ,upper(field50_12) ,'Second Landmark' ,upper(field50_13),'App./Person Met Sign.' , upper(metperson),'Verifier comment/Remarks- Part 1 (Mandatory)' ,upper(remarks) ,'Verifier comment/Remarks- Part 2 (Mandatory)' ,upper(fieldtext_3),'Fire extinguisher' as fext, Field15_1 as fexit,'Hukka parlor' as hparlor,Field15_1 as hukparlor,'TPC from & Feedback' as tpcfed , upper(field30_9),'If negative then reason' as nnegres,'Business Premise is rarely open/mostly closed.',(case when upper(field50_7)=upper('Residence Premise is rarely open/ mostly closed') then 'YES' else 'NA' end) as n1,'Borrower has political connections',(case when upper(field50_7)=upper('Borrower has political connections') then 'YES' else 'NA' end) as n2,'Business Premise is frequently visited by collection staff of other Financiers',(case when upper(field50_7)=upper('Residence Premise is frequently visited by collection staff of the Financiers') then 'YES' else 'NA' end) as n3,'Other - Pls. Specify' as tpcnegoth,(case upper(Field50_7) when 'OTHERS' then upper(Field50_8) else 'NA' end) as tpcothnres,'Security & Reception Staff Feedback' ,'NA' ,'Verifier name / Sign. & No.' ,upper(overname) ,'Date' ,coalesce(visitdate,'')||coalesce(visittime,''),'Agnency name & No.' ,(case portfolio_id when 95 then 'Arvee Bizpro Solutions Pvt. Ltd.' else 'Matrix Credit Risk Control Pvt Ltd.' end) ,'Status- Positive / Negative' ,upper(status),'Remarks - any critical observation (Ex- Metro construction in vicinity, Road Widening works, Hoarding with merchants photo in politics)','' as blk1,'If Negative then reason' ,(case when upper(status)='NEGATIVE' then upper(negreason) else '' end) ,(case when portfolio_id=174 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,(case when portfolio_id=174 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end),' ' ,(case portfolio_id when 95 then 'Arvee Bizpro Solutions Pvt. Ltd.' else 'Matrix Credit Risk Control Pvt Ltd.' end) ,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode ,(case portfolio_id when 95 then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature from banklist_main_office o where (val0) val1
Query406!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'MATRIX CREDIT RISK CONTROLS PRIVATE LIMITED',' ','Employer Visit Report','Name of Appraiser',upper(specialinst),'Request receive date',to_char(receivedate,'DD/MM/YYYY'),'File No.',upper(applno),'Report date',to_char(sdoneon,'DD/MM/YYYY'),'Blank','Name of Customer/s',upper(contactperson),'Name of business entity',upper(customername),'Business type with end product nature of business (Manufacture/Service provider/trader/Comm. Agent)',upper(proddealt),'Constitution of the business entity',upper(busitype),'PAN Number','define','Brief note on nature of business',(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end),'Registration no/TIN no/CST no/IEC no/Excise no. please mention document checked if any','REGISTRATION NO- '||upper(field30_7)||' and CIN NO- '||upper(field50_3),'Details of promoters/promoter group','','Number of years in business',coalesce(upper(yrsjob),'0')||' YEARS AND '||coalesce(upper(mnthjob),'0')||' MONTHS','Business premises owned/rented with area details',(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end)||' AND AREA IN SQFT - '||upper(field30_24),'Number of employees Permanent/Contractual',upper(totemp),'Whether PF/ESI applicable (Yes/No)','NOT TOLD','Domain check if website is available',upper(field50_10),'Major Clients','NOT TOLD',' ','If business entity is a company following information requires','MCA check on directors',(case when upper(field30_13)!='NOT TOLD' then upper(field30_13)||'- '||upper(field30_14)||', ' when upper(field30_15)!='NOT TOLD' then upper(field30_15)||'- '||upper(field30_16)||', ' when upper(field30_17)!='NOT TOLD' then upper(field30_17)||'- '||upper(field30_18)||', ' when upper(field30_19)!='NOT TOLD' then upper(field30_19)||'- '||upper(field30_20)||', ' when upper(field30_21)!='NOT TOLD' then upper(field30_21)||'- '||upper(field30_22)||', ' else ' ' end),'Registered address as per MCA',upper(field150_3),'Paid up capital',upper(field30_8),'Date of incorporation',field30_10,'Index of charges details',upper(field50_2),' ','Financial Status as disclosed by the employer','Turnover of revenue',upper(turnover),' ','Profit','NOT TOLD','',' ','Name of person met',upper(metperson),'Department',(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end),'HR Mail id',upper(field30_6),'Contact number',field30_1,'Business set-up',upper(field50_2),'Stock & machinery details',upper(stockdet),'Furniture',upper(stockdet),'Employees seen',upper(custseen),'Location industrial/ residential/ commercial',(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end),'Name board displayed if no give details',upper(bizboard),' ',' ',' ','Discreet Check (Reason required if discreet check not done)','Details with whom check done & response',upper(fieldtext_1),'Details with whom check done & response','','','','','Observation','Comfort factors',' ',' ',upper(remarks),'Discomfort factors',' ','Final conclusion',upper(overallstatus),' ','Date of visit',visitdate,'Time of visit',visittime,' ','Signature of person visited',(case when (upper(overname)='VINAY SOLANKI' and upper(name)='HDFC LTD') then 'VIKAS CHANDEL' else upper(overname) end) as overname,'Name of authorized signatory',upper(sdonebyname),'Signature of authorized signatory',upper(sdonebyname),'images/signs/'||sdoneby||'.png' as singature from banklist_main_office o where (val0) val1
Query407!C0L!select!C0L! select empname ,date_part('day', CURRENT_DATE)||'dob' from employee WHERE DATE_PART('day', dob) = date_part('day', CURRENT_DATE+4) AND DATE_PART('month', dob) = date_part('month', CURRENT_DATE) and refcheck_status=' '
Query411!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid)values(,''xmvcodex'',''577'',''val0'',''Business Loan'','''',''val7'',(case when ''val6''=''APPLICANT'' then''Co-Applicant'' when ''val6''=''GUARANTOR'' then''Co-Applicant''when ''val6''=''Co-APPLICANT'' then''Co-Applicant'' else ''-1'' end),(case when ''val18''=''Salaried'' then''Salaried'' when ''val18''=''Self Employed'' then''Self Employed'' when ''val18''=''House Wife'' then''House wife'' else ''-1'' end),'''',NULL,(case when ''val14''=''val16'' then''val14'' when ''val16''=''val34'' then''va16'' else ''val14''||''/ val16''||''val34'' end),''RadDrXS-val10 -ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,(case when ''val11''=''Delhi'' then''Delhi'' when ''val11''=''Gurgaon'' then''Gurgaon'' else ''-1'' end),''val13'',''val14'','''',''OadDrXS- -EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,''-1'','''','''','''','''','''',NULL,NULL,NULL,NULL,NULL,NULL,NULL,''val26'',NULL,NULL,NULL,NULL,NULL,(case when length(''val10'') > 3 and ''val10'' <> ''NA'' then 1 else 0 end),0,0,0,0,0,0,0,0,0,''Model - ''||'''',0,0,0,NULL,'''',NULL,NULL,NULL,NULL,NULL,NULL,NULL,val35,val36,0,''val37'',''val38'','''')
Query408!C0L!select!C0L!select uuid,product,maincompany_o,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,' ',' ','HDFC Bank Ltd- Risk Intelligence & Control',' ','Vendor Profiling Report',' ',' ','Initiated Date :',to_char(receivedate,'DD/MM/YYYY'),' ','Completed Date : ',to_char(sdoneon,'DD/MM/YYYY'),'1.General Information','Vendor to be empanelled ',Upper(field30_4_o),'Product',upper(product_o),'Nature of business',(case when upper(compprof_o)!='OTHERS' then upper(compprofoth_o) else upper(compprof_o) end),'Address with PIN Code',upper(oaddr_o),'Phone Nos/Mobile',ophone_o,'Emailid ','define','Type of Setup ',upper(busitype_o),'No of Promoters',coalesce(sublist('select upper(customername) as field from main_mainopr where upper(applno)='''||upper(applno)||''' and receivedate='''||receivedate||''' and upper(apptype)=''CO-APPLICANT'' and portfolio_id='||portfolio_id,','),''),' ','2. Office Verification','Date and Time of Visit',visitdate_o||' : '||visittime_o,'Contacted Person',upper(metperson_o),'Area Of the Office',upper(field30_3_o),'Independent or a Resi-cum Office',upper(field30_2_o),'Infrastructure Details',upper(stockdet_o),'1. Furniture',field30_6_o,'2. Telephone',field30_8_o,'3. Fax',field30_11_o,'4. Computers',field30_7_o,'5. AC',field30_10_o,'6. Internet',field30_12_o,'7. Internet',field30_12_o,'8. Cabins/Cubicles',field30_13_o,'Business activity',upper(busiact_o),'Office name board',upper(field30_15_o),'Manpower','Informed',totemp_o,'Seen',field30_14_o,'No of Years in business',coalesce(yrstot_o,'0')||' Years and '||coalesce(mnthtot_o,'0'),'Office',upper(ownership_o),' ','Neighbour check and confirmation',upper(fieldtext_3_o),' ','Office Locality',upper(locality_o),' ',' ',' ','Work experience & Business details of the vendor','Previous Experience',coalesce(prevjobyrs_o,'0')||' Years ,'||upper(prevjobdet_o),'Profit/Goodwill',upper(field30_5_o),'Risk Alert History',(case when upper(redalert_o)='YES' then upper(alertrem_o) else 'NA' end),'Police Verification',upper(field30_20_o),'Prior Termination',upper(field30_16_o),' ','Additional Information','PAN details of the Vendor',panno_o,'Bank Account details',upper(bank_o),' ','Reference Check Details ',upper(fieldtext_2_o),' ',' ',' ',' ',' ','Risk Alert and Other details',(case when risklevel_o!='-1' then upper(risklevel_o)||','||upper(riskremarks_o) else 'NA' end),' ','Final Remarks of office verification :',upper(remarks_o),' ',' ',' ','Summary','OfficeProfile/Verification Status',upper(status_o),'Residence Verificaition Status',upper(status_r),'Previous Work Experience Check Status',' ','Vendor Rererence Status',Upper(field30_17_o),'Document Verification Status','','OVERALL STATUS',upper(overallstatus_o),' ',' ','RIC CHECK CONDUCTED BY',' ','Reviewed By -',' ',' ',upper(reportdoneby_o),'Date:'||to_char(sdoneon_o,'DD/MM/YYYY'),' ','STAMP OF AGENCY','',' ','images/signs/'||supervisor_o||'.png' as sign from banklist_main_all r where (val0) val1
Query356!C0L!select!C0L!select uid,doctype,docpath,updatedon,(select loginid from app_user where user_id=updatedby) as updatedby,doctitle,isdeleted from tagged_docs where uuid='val0' and vistype='val1' order by doctype
Query357!C0L!procedure!C0L!select tagdocs('val0','val1','val2','val3',val4,'val5','val6')
Query358!C0L!procedure!C0L!select untagdocs(val0,'val1',val2)
Query359!C0L!procedure!C0L!select updateqcremarks('val0','val1','val2','val3','val4','val5','val6',val7,'val8','val9','val10')
Query360!C0L!select!C0L!SELECT visit,visconfd,integrity_issue,contacted_no,contacted_person,feedback,dialedfrom,risklevel FROM qc_feedback where uuid='val0' and visit='val1'
Query361!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',1501,''val0'',''HL-val4'',NULL,''val1'',''Applicant'',''-1'',NULL,NULL,NULL,''RadDrXS-val2-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,NULL,''val6val7'',(CASE WHEN length(''val6'') > 2 THEN ''OadDrXS-val8 val9 val10 val11 val12-EOadDrX'' ELSE NULL END),(CASE WHEN (length(''val6'') > 2) THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN (length(''val6'') > 2) THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,1,0,(CASE WHEN (length(''val6'') > 2) THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val17,val18,0,''val19'',''val20'','''')
Query362!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername)||' ('||applno||')' as cname,bank_branch_id,'Borrower Residence Verification Sheet' as restitle,'' as blnk1,'Date:' as lbldate,visitdate,'Time: -' as lbltime,visittime,'' as blnk2,'' as blnk3,'Borrower Name' as lblcname,':' as lbl1,customername,'' as blnk4,'' as blnk5,'Residence address' as lblresadd,':' as lbl2,raddr,'' as blnk6,'' as blnk7,'Contact no' as lblcontno,':' as coll3,phoneno as contno,'' as blnk6,'' as blnk7,'Met Person' as lblcontno,':' as coll3,coalesce(upper(r.metperson)||' (','')||(CASE WHEN r.metrela='Others' THEN upper(r.metrealoth) ELSE upper(r.metrela) END)||')' as metrela,'' as bllkn,'' as blkdn,'Borrower resides at the given address' as lblbr,':' as lbl3,Field15_1,'' as blnk8,'' as blnk9,'If yes, is it Owned / Rented' as lblor,':' as lbl4,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'' as blnk10,'' as blnk11,'Borrower resides at the given address' as lblbr1,':' as lbl5,Field15_1,'' as blnk12,'' as blnk13,'If Not, to verify with atleast 2 to 3 neighbors to check the following:' as lblnfeed,'' as blnk14,'' as blnk15,'When did the borrower shift from the above address -' as lblwdas,'' as blnk16,'' as blnk17,(case when length(coalesce(Field50_1,'')) = 0 THEN 'NA' ELSE Field50_1 END) as lblrga,'' as lblsp1,'' as blnk18,'' as blnk19,'New address of the borrower:' as lblnab,'' as blnk20,'' as blnk21,(case when length(coalesce(Field150_1,'')) = 0 THEN 'NA' ELSE Field150_1 END) as shwn,'' as blnk22,'' as blnk23,'Current employment details of the borrower as per sources:' as lblempdet,'' as blnk24,'' as blnk25,(CASE WHEN length(trim((case when length(coalesce(compname,'')) > 2 THEN (compname||' ') ELSE '' end)||(case when length(coalesce(offaddr,'')) > 10 THEN (offaddr||' ') ELSE '' end)||(case when length(coalesce(design,'')) > 1 THEN design ELSE '' end))) = 0 THEN 'NA' ELSE trim((case when length(coalesce(compname,'')) > 2 THEN (compname||' ') ELSE '' end)||(case when length(coalesce(offaddr,'')) > 10 THEN (offaddr||' ') ELSE '' end)||(case when length(coalesce(design,'')) > 1 THEN design ELSE '' end)) END) as empdet,'' as blnk26,'' as blnk27,'Any other financial institution or banks inquiring about the borrower as per neighbors:' as lblnfeed,'' as blnk28,'' as blnk29,Field15_2,'' as blnk30,'' as blnk31,'If YES, kindly provide details:' as lblpdet,'' as blnk32,'' as blnk33,(case when upper(Field15_2) = 'YES' THEN Fieldtext_1 ELSE 'NA' END) as field15_2,'' as blnk34,'' as blnk35,'Any other relevant information about the borrower:' as lblremarks,'' as blnk36,'' as blnk37,remarks,status as col2 from banklist_main_residence r where (val0) val1
Query363!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername)||' ('||applno||')' as cname,bank_branch_id,'Borrower Office Verification Sheet' as col1,'' as col2,'Date:' as col3,visitdate as col4,'Time: -' as col5,visittime as col6,'' as col7,'' as col8,'Borrower Name' as col9,':' as col10,customername as col11,'' as col12,'' as col13,'Employee No' as col14,':' as col15,Field15_3 as col16,'' as col17,'' as col18,'Designation & Department' as col19,':' as col20,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as col21,'' as col22,'' as col23,'Employer Name' as col24,':' as col25,companyname as col26,'' as col27,'' as col28,'Office address' as col29,':' as col30,oaddr as col31,'' as col31a,'' as col31b,'Contact no' as col31c,':' as col31d,ophone as col31e,'' as col32, '' as col32a,'Met Person' as col31cb,':' as col31db,coalesce(upper(metperson)||' (','')||(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end)||')' as col31eb,'' as col32b, '' as col32ab,'Borrower working at the given address' as col33,':' as col34,Field15_1 as col35,'' as col36,'' as col37,'If yes, since when' as col38,':' as col39,(case when upper(Field15_1)='YES' then (((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end))) ELSE 'NA' END) as col40,'' as col41,'' as col42,'Current designation' as col43,':' as col44,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as col45,'' as col46,'' as col47,'If Not, to verify the following from sources:' as col47b,'' as col47a,'' as col47c,'When did the borrower left the above company -' as col48,'' as col49,'' as col50,(case when upper(Field15_1)='YES' then 'Currently working at same company at given address' ELSE (case when length(coalesce(Field50_1,'')) = 0 THEN 'NA' ELSE Field50_1 END) end) as col51,'' as col52,'' as col53,'' as col54,'New employment of the borrower:' as col55,'' as col56,'' as col57,(case when length(coalesce(Field150_1,'')) = 0 THEN 'NA' ELSE Field50_1 END) as col58,'' as col59,'' as col60,'Address of the new employer:' as col61,'' as col62,'' as col63,(case when length(coalesce(Field150_2,'')) = 0 THEN 'NA' ELSE Field50_1 END) as col64,'' as col65,'' as col66,'New contact number of the borrower:' as col67,'' as col68,'' as col69,(case when length(coalesce(ophone,'')) = 0 THEN 'NA' ELSE Field50_1 END) as col70,'' as col71,'' as col72,'' as col73,'Any other financial institution or banks inquiring about the borrower as per neighbors:' as col74,'' as col75,'' as col76,Field15_2 as col77,'' as col78,'' as col79,'If YES, kindle provide details:' as col80,'' as col81,'' as col82,(case when upper(Field15_2)='YES' THEN Fieldtext_1 ELSE 'NA' END) as col83,'' as col84,'' as col85,'Any other relevant information about the borrower:' as col86,'' as col87,'' as col88,remarks as col89,status as col90 from banklist_main_office o where (val0) val1
Query364!C0L!select!C0L!select user_id, loginid, displayname, ug.name as groupname, (CASE u.isactive WHEN 1 THEN 'Active' ELSE 'Disabled' END) as isactive from app_user u, user_group ug where u.group_id = ug.group_id and branch_id=val0 and ug.isactive = 1 order by u.isactive desc
QueryOLD_366!C0L!select!C0L!select (case 'val0' when 'R' then resmapurl when 'O' then offmapurl else promapurl end) as gpsloc from main_mainopr where mvcode='val1'
Query366!C0L!select!C0L!select 'https://www.google.com/maps/embed/v1/place?key=AIzaSyCeBQPZSFrFOuIODuOF1sNRIWfuklSi1bQ&q='||coalesce((select trim(trailing '00' FROM longitude::text)||','||trim(trailing '00' FROM latitude::text) from mnimble_messages_lat_long mcm where latitude <> 0 and longitude <> 0 and mcm.uuid=(select uuid from main where mvcode = 'val1') and mcm.visit='val0' order by mcm.uid limit 1),'NA') as gpsloc
Query412!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id ,'images/shreram_logo_blank.png' as logo,(case when portfolio_id=52 then 'Contact Point Verification (Residence) - '||(case when portfolio_id=52 and upper(product)='HOME LOAN' then 'Shriram Housing Finance Ltd.' when portfolio_id=52 and upper(product) <> 'HOME LOAN' then 'Shriram Housing Finance Ltd.' else '' end) else 'Residence Verification Report' end) as title,'Date:',visitdate,' Time:',visittime,'Branch code & Name:','CP'||'(Connaught Place)',' ','Distance from the branch:',' ','Applicant Name / Residence address:',upper(customername)||' ,Address- '||upper(raddr),'Native place & address:',upper(permadd),'Phone Numbers/ mobile nos:',(select mobileno from main where uuid=r.uuid),'Other earning family members:',earning,'No of family members & relationship:',totmem,'If less than 1 year then earlier residence address:',' ','Person met:',upper(metperson),'No of years at same residence:',coalesce(yrsadd,'0')||' YEARS AND '||coalesce(mnthadd,'0')||' MONTHS','Person relationship to business:',(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end),'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'','Description of Residence','Residence:',(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end),'Accessibility:',' ','If rented rent paid:',(case when upper(rowner)='RENTED' then upper(owneroth) else '' end),(case when upper(accmode)='BY ALL MODES' then 'images/tick.gif' else 'images/untick.jpg' end),'By all means of transport',(case when upper(accmode)='BY TWO WHEELER' then 'images/tick.gif' else 'images/untick.jpg' end),'TW',(case when upper(accmode)='BY FOUR WHEELER' then 'images/tick.gif' else 'images/untick.jpg' end),'Car',(case when upper(accmode)='BY ONFOOT' then 'images/tick.gif' else 'images/untick.jpg' end),'On Foot','Type of Residence','Area in Sq ft. / no of rooms','Locality of visiting office',(case when upper(restype)='FLAT/PART OF INDEPENDENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Independent house',(case when upper(restype)='FLAT/PART OF INDEPENDENT' then UPPER(carpetarea) else ' ' end),(case when upper(locality)='COMMERCIALAS' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial',(case when upper(restype)='BUNGALOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Bunglow',(case when upper(restype)='BUNGALOW' then upper(carpetarea) else '' end),(case when upper(locality)='RESIDENTIALS' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential',(case when upper(restype)='FLAT' then 'images/tick.gif' else 'images/untick.jpg' end),'Flat',(case when upper(restype)='FLAT' then upper(carpetarea) else ' ' end),(case when upper(locality)='RESIDENTIAL CUM COMMERCIALS' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential cum commercial',(case when upper(restype)='CHAWL' then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl area',(case when upper(restype)='CHAWL' then UPPER(carpetarea) else ' ' end),(case when upper(locality)='OTHERSS' then 'images/tick.gif' else 'images/untick.jpg' end),'Others (Please specify) ',(case when upper(locality)='OTHERSS' then upper(locaoth) else ' ' end),(case when upper(restype)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Others (Please specify) ',(case when upper(restype)='OTHERS' then upper(typeoth) else ' ' end),'Landmark:',upper(landmark),' ','Locality details ','Locality type ',(case when upper(field30_25)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),' Posh',(case when upper(field30_25)='UNDEVELOPED' then 'images/tick.gif' else 'images/untick.jpg' end),'Undeveloped',(case when upper(field30_25)='UPPER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Upper middle class ',(case when upper(field30_25)='TROUBLE PRONE' then 'images/tick.gif' else 'images/untick.jpg' end),'Trouble prone ',(case when upper(field30_25)='MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Middle class',(case when upper(field30_25)='UNAUTHORIZED' then 'images/tick.gif' else 'images/untick.jpg' end),'Unauthorized ',(case when upper(field30_25)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Lower middle class ',' ',' ','Other Details ','Furnishing ','Durables visible ','Visibility:',(case when upper(furlevel)='HIGH' then 'images/tick.gif' else 'images/untick.jpg' end),'High',(case when upper(chkfield1)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'TV',' ',(case when upper(furlevel)='MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Medium',(case when upper(chkfield2)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Fridge','Name plate -',upper(platedet),(case when upper(furlevel)='LOWER MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Low',(case when upper(chkfield3)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'AC',' ',(case when upper(furlevel)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(chkfield4)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Washing M/C','House No:',' ',' ',(case when upper(chkfield5)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Music System',' ',' ',(case when upper(field50_15)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Other (Specify)',' ',' ','CPV comments: ',upper(remarks),'Any issues observed:',upper(riskremarks),'Road map to applicant residence from '||(case when portfolio_id=52 and upper(product)='HOME LOAN' then 'SHFL' when portfolio_id=52 and upper(product) <> 'HOME LOAN' then 'SHFL' else '' end)||' office:',' ',' ','CPV Results ','CPV Assessment ','Neighborhood Feedback ',(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Positive',(case when upper(field50_14)='VERY GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Very Good',(case when upper(field50_14)='FAIR' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Negative',(case when upper(field50_14)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field50_14)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',' ','Name of CO ( Maker):',upper(sdonebyname),'Signature with date:',upper(sdonebyname)||' ,'||sdoneon,'Name of verifier:',upper(rvername),'Signature with date: ',upper(rvername)||' '||sdoneon,'images/signs/'||supervisor||'arvee.png',(case when portfolio_id=123 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=123 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs from banklist_main_residence r where (val0) val1
Query413!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id ,'images/shreram_logo_blank.png' as logo,(case when portfolio_id=52 then 'Contact Point Verification (Office) - '||(case when portfolio_id=52 and upper(product)='HOME LOAN' then 'Shriram Housing Finance Ltd.' when portfolio_id=52 and upper(product) <> 'HOME LOAN' then 'Shriram Housing Finance Ltd.' else '' end) else 'Office Verification Report' end) as title,'Date:',visitdate,' Time:',visittime,'Branch code & Name:','CP'||'(Connaught Place)',' ','Distance from the branch:','' ,'Applicant Name / business name / and address:'||upper(customername)||', Business-'||(select companyname from main where uuid=o.uuid)||' ,Address- '||upper(oaddr),'Entity : ',(case when upper(busitype)='PRIVATE LIMITED' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Pvt Ltd Company/ ',(case when upper(busitype)='SELF EMPLOYED' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Firm',(case when upper(busitype)='PUBLIC LIMITED' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Public Ltd Company/ ',(case when upper(busitype)='PROPRIETORSHIP' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Sole proprietorship ',(case when upper(busitype)='OTHERS' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Others please specify','Phone Numbers/ mobile nos (Business)',(select mobileno from main where uuid=o.uuid),'No of years in same business:',coalesce(yrstot,'0')||' Years and '||coalesce(mnthtot,'0')||' Months','Partners / Directors (relationship with applicant):',' ','Any other branch go down address with contact nos :',' ','Person met (Designation):',upper(metperson)||'('||upper(metrela)||')','Meeting place :',' ','Person relationship to business:',(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end),'Any other source of income:',' ',' ',' Description of Office ','Meeting office:',upper(ownership),'Other office:',' ','If rented rent paid:',upper(owneroth),'If rented rent paid:',' ','Operating since: ',coalesce(yrstot,'0')||' Years and '||coalesce(mnthtot,'0')||' Months','Operating since',' ','Type of visiting office','Area in Sq mt.','Locality of visiting office',(case when upper(field30_11)='INDEPENDENT OFFICE' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Independent office',(case when upper(field30_11)='INDEPENDENT OFFICE' then upper(field30_5) else '' end),(case when upper(locality)='COMMERCIAL' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Commercial complex',(case when upper(field30_11)='FACTORY' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Industry /Factory ',(case when upper(field30_11)='FACTORY' then UPPER(field30_5) else ' ' end),(case when upper(locality)='SMALL PRODUCTION UNIT' then 'images/tick.gif ' else 'images/untick.jpg ' end),' Small Scale Industrial Area',(case when upper(field30_11)='SMALL SCALE' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Small scale / Shed',(case when upper(field30_11)='SMALL SCALE' then UPPER(field30_5) else ' ' end),(case when upper(locality)='PLANT' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Plant ',(case when upper(field30_11)='OFFICE CABIN' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Shared office',(case when upper(field30_11)='OFFICE CABIN' then upper(field30_5) else ' ' end),(case when upper(locality)='SHOP/OFFICE COMPLEX' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Shop / Office complex',(case when upper(field30_11)='COMMERCIAL BUILDING' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Business Center',(case when upper(field30_11)='COMMERCIAL BUILDING' then upper(field30_5) else ' ' end),(case when upper(locality)='RESIDENTIAL' then 'images/tick.gif ' else 'images/untick.jpg ' end),' Residential',(case when upper(field30_11)='SHOPPING COMPLEX' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Shop',(case when upper(field30_11)='SHOPPING COMPLEX' then upper(field30_5) else ' ' end),(case when upper(locality)='INDUSTRIAL/FACTORY' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Industry / Factory',(case when upper(field30_11)='OFFICE COMPLEX' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Office complex',(case when upper(field30_11)='OFFICE COMPLEX' then upper(field30_5) else ' ' end),(case when upper(locality)='BUSINESS CENTRE' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Business Centre',(case when upper(field30_11)='OTHERS' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Others (Please specify) ','' ,(case when upper(LOCALITY)='OTHERS' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Others (Please specify)',(case when upper(LOCALITY)='OTHERS' then upper(locaoth) else ' ' end),'Accessibility:',' ','Landmark:',(case when upper(LOCALITY)='OTHERS' then upper(locaoth) else ' ' end),(case when upper(field30_24)='BY ALL MEANS OF TRANSPORT' then 'images/tick.gif ' else 'images/untick.jpg ' end),'By all means of transport',' ',(case when upper(field30_24)='TW' then 'images/tick.gif ' else 'images/untick.jpg ' end),'TW',' ',(case when upper(field30_24)='CAR' then 'images/tick.gif ' else 'images/untick.jpg ' end),'Car',' ',(case when upper(field30_24)='ON FOOT' then 'images/tick.gif ' else 'images/untick.jpg ' end),'On Foot',' ',' ','Locality details ','Locality type ',(case when upper(field30_25)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),' Posh',(case when upper(field30_25)='UNDEVELOPED' then 'images/tick.gif' else 'images/untick.jpg' end),'Undeveloped',(case when upper(field30_25)='UPPER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Upper middle class ',(case when upper(field30_25)='TROUBLE PRONE' then 'images/tick.gif' else 'images/untick.jpg' end),'Trouble prone ',(case when upper(field30_25)='MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Middle class',(case when upper(field30_25)='UNAUTHORIZED' then 'images/tick.gif' else 'images/untick.jpg' end),'Unauthorized ',(case when upper(field30_25)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Lower middle class ',' ',' ','Activity in the office ','Type of business activity:',upper(busiact),'Stock seen:',upper(stockdet),'Stock stage:',' ','Visibility :',' ','Business dealing:',' ','Stock told:',' ',' ','Name Board:',upper(bizboard),' ',' ',' ','Visiting Card:',upper(field30_6),'Furnishing ','Level of activity','Automation Level','Number of Employees seen:',totemp,(case when upper(field30_13)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),' High ',(case when upper(busiact)='VERY BUSY' then 'images/tick.gif' else 'images/untick.jpg' end),'Very busy','images/untick.jpg ','Fax',' ',(case when upper(field30_13)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Medium',(case when upper(BUSIACT)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Busy','images/untick.jpg ','Telephone','Number of Employees told:',totemp,(case when upper(field30_13)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end),'LOW',(case when upper(busiact)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair','images/untick.jpg ','Computer',' ',(case when upper(field30_13)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(busiact)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',' ',' ',' ','Vehicle Owned','Type','Nos','Financier',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','CPV comments: ',upper(remarks),' ','Any issues observed:',riskremarks,' ','Road map to applicant office from '||(case when portfolio_id=52 and upper(product)='HOME LOAN' then 'SHFL' when portfolio_id=52 and upper(product) <> 'HOME LOAN' then 'SHFL' else '' end)||' office:',' ',' ','CPV results ','CPV Assessment ','Market Reputation ',(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Positive',(case when upper(field30_14)='VERY GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Very Good',(case when upper(field30_14)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Negative',(case when upper(field30_14)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field30_14)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',' ','Name of CO ( Maker):',upper(sdonebyname),'Signature with date:',upper(sdonebyname)||' ,'||sdoneon,'Name of verifier:',upper(overname),'Signature with date:',upper(rvername)||' '||sdoneon,'images/signs/'||sdoneby||(case when compcode='mcrc' then '' else compcode end)||'.png',(case when portfolio_id=159 or portfolio_id=123 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=159 or portfolio_id=123 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs from banklist_main_office o where (val0) val1
Query414!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id , 'RESIDENCE VERIFICATION REPORT','Ref. No',applno,'Sent On',sdoneon,'Received On',receivedate,'Agency Name','ARVEE BIZPRO SOLUTIONS PVT.LTD','Agent Name',upper(rvername),'Application Details Confirmation ','Objective Information',' ','Name:',upper(customername),'Address:',upper(raddr),'Profession:',' ','Marital Status',(case when upper(maritial)='SINGLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Single',(case when upper(maritial)='MARRIED' then 'images/tick.gif' else 'images/untick.jpg' end),'Married','No. Of Dependents:',UPPER(dependent),'Other Source of Income ','images/untick.jpg','Yes','images/untick.jpg','No','If Yes Source',' ','Amount',' ','Observation','Residence Proof & Identity: ',upper(proofdet),'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'','Name Board/Security Board',(case when upper(socboard)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(socboard)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'No','Building Name:',' ','If Flats Builders Name','','Society Name',UPPER(socboarddet),'Residence Accessibility: ','Given Address/Accessibilty:',(case when upper(raccess)='EASY' then 'images/tick.gif' else 'images/untick.jpg' end),'Easy to Locate/Access',(case when upper(raccess)='DIFFICULT' then 'images/tick.gif' else 'images/untick.jpg' end),'Difficult to locate ',(case when upper(raccess)='UNTRACEABLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Untraceable','Approach ',(case when upper(field50_14)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field50_14)='FAIR' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(field50_14)='BAD' then 'images/tick.gif' else 'images/untick.jpg' end),'Bad','Is Resi entrance motorable','images/untick.jpg','Yes','images/untick.jpg','No','Parking Space',(case when upper(field30_21)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(field30_21)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'No','Land Mark',UPPER(field50_2),'Type of Residence: ',(case when upper(restype)='BUNGALOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Bungalow',(case when upper(RESTYPE)='FLAT/PART OF INDEPENDENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Independent House','images/untick.jpg','Flat',(case when upper(RESTYPE)='ROW HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end),'Row House','images/untick.jpg','Mansion',(case when upper(RESTYPE)='CHAWL' then 'images/tick.gif' else 'images/untick.jpg' end),'Hut',(case when upper(RESTYPE)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Others','Locality:',(case when upper(field50_13)='BIG HOUSING COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end),'Big Housing Complex',(case when upper(field50_13)='RESIDENTIAL BUILDING' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential Building',(case when upper(field50_13)='COMMERCIAL BUILDING' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial Building',(case when upper(field50_13)='UNDEVELOPED AREA' then 'images/tick.gif' else 'images/untick.jpg' end),'Undeveloped Area',(case when upper(field50_13)='CHAWL AREA' then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl Area',(case when upper(field50_13)='SLUM AREA' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum Area',(case when upper(field50_13)='SLUM BOARD HOUSE[SRA]' then 'images/tick.gif' else 'images/untick.jpg' end),'Slum Board Houses[SRA]',(case when upper(field50_13)='LIG/EWS COMPLEX' then 'images/tick.gif' else 'images/untick.jpg' end),'LIG/EWS Complex','Residence Lay out:','Approx Size',UPPER(carpetarea),'No. Of Rooms',' ','Exteriors',(case when upper(field30_4)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field30_4)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(field30_4)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Bad','Standard Of Living :',(case when upper(FURLEVEL)='HIGH' then 'images/tick.gif' when upper(FURLEVEL)='UPPER MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(FURLEVEL)='MIDDLE' then 'images/tick.gif' when upper(FURLEVEL)='LOWER MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(FURLEVEL)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Bad','Telephone','images/tick.gif','Yes','images/untick.jpg','No','If Yes',phoneno||'/'||othphone,'Electronic Gadgets:',' ','Furniture:',upper(field150_1),'Lawn/Garden',(case when upper(field30_22)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(field30_22)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'No','Domestic Help',(case when upper(field30_19)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(field30_19)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'No','Security',(case when upper(field30_20)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(field30_20)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'No','Vehicle',(case when upper(field30_6)!='' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(field30_6)='' then 'images/tick.gif' else 'images/untick.jpg' end),'No',(case when upper(field30_6)!='' then upper(field30_6) else '' end),'Reg.No.',' ','Driving Licence No.:','','Validity:',' ','Following are based on confirmation from applicant /person contacted','Person Contacted: ',upper(metperson)||' ,'||(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end),'Does the applicant stay here?',(case when upper(yrsadd)!='0' then 'images/tick.gif' when upper(mnthadd)!='0' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes','images/untick.jpg','No','Applicant availability','','Ownership Status:',(case when upper(rowner)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end),'Owned',(case when upper(rowner)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end),'Rental',(case when upper(rowner)='COMPANY ACCOMODATION' then 'images/tick.gif' else 'images/untick.jpg' end),'Company Provided',(case when upper(rowner)='PAYING GUEST' then 'images/tick.gif' else 'images/untick.jpg' end),'Paying Guest',(case when upper(rowner)='LEASED' then 'images/tick.gif' else 'images/untick.jpg' end),'Leased',(case when upper(rowner)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end),'Self Owned',(case when upper(rowner)='OWNED BY PARENTS' then 'images/tick.gif' else 'images/untick.jpg' end),'Family Owned',(case when upper(rowner)='OWNED BY RELATIVES' then 'images/tick.gif' else 'images/untick.jpg' end),'Relative Owned',(case when upper(rowner)='BACHELOR ACCOMMODATION' then 'images/tick.gif' else 'images/untick.jpg' end),'Bachelor Accommodation','If rented duration of lease:','','Years at current residence:',coalesce(yrsadd,'0')||' Years and '||coalesce(mnthadd,'0')||' Months','Name of the Company:',upper(compname),'Designation:',upper(design),'Neighbourhood Check: '||upper(field30_9),'Name and address of the neighbour: ',upper(fieldtext_1),'Does the applicant stay here','images/untick.jpg','Yes','images/untick.jpg','No','Year s at current residence: ',' ','Ownership Status',(case when upper(rowner)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end),'Owned',(case when upper(rowner)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end),'Rental',(case when upper(rowner)='LEASED' then 'images/tick.gif' else 'images/untick.jpg' end),'Leased',(case when upper(rowner)='COMPANY ACCOMMODATION' then 'images/tick.gif' else 'images/untick.jpg' end),'Company Provided',(case when upper(rowner)='PAYING GUEST' then 'images/tick.gif' else 'images/untick.jpg' end),'Paying Guest','Verifier s Comments',UPPER(remarks),'Overall Status: ',(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Positive',(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Negative',(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end),'Refer To Credit','images/signs/'||sdoneby||'arvee.png',sdonebyname,sdoneon,'COMPANY SEAL','SIGNATURE','DATE','Photographs' as lblphotographs,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') as photographs from banklist_main_residence r where (val0) val1
Query415!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id ,'BUSINESS VERIFICATION REPORT','Ref. No',applno,'Sent On',sdoneon,'Received On',receivedate,'Agency Name',' ARVEE BIZPRO SOLUTIONS PVT. LTD','Agent Name',upper(overname),'Application Details Confirmation ','Name:',upper(customername),'Category:',(case when upper(category)='SELF EMPLOYED' then 'images/tick.gif' else 'images/untick.jpg' end),'Self Employed',(case when upper(category)='SALARIED' then 'images/tick.gif' else 'images/untick.jpg' end),'Salaried','Co. Name:',UPPER(companyname),'Co. Add:',upper(oaddr),'Designation:',upper(appdesign),'Department:',upper(appdept),'Phone No.',ophone,'Extn No.:',extn,'Observation','Office Proof & IDENTITY: ','Office Name Board',(case when upper(bizboard)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(bizboard)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'No','If Yes',' ','Building Name',' ','Accessibility:',(case when upper(easeloc)='EASY' then 'images/tick.gif' else 'images/untick.jpg' end),'Easy to Locate/Access',(case when upper(easeloc)='DIFFICULT' then 'images/tick.gif' else 'images/untick.jpg' end),'Difficult to locate ',(case when upper(easeloc)='UNTRACEABLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Untraceable','Approach ',(case when upper(field50_14)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field50_14)='FAIR' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(field50_14)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Bad','Land Mark:',UPPER(field50_13),'Layout :',UPPER(field30_3),'No. of Employees:',totemp,'Security',(case when upper(field30_20)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'Yes',(case when upper(field30_20)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'No','Interiors:',(case when upper(field50_15)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field50_15)='FAIR' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(field50_15)='BAD' then 'images/tick.gif' else 'images/untick.jpg' end),'Bad','Equipment:',' ','Furniture:',' ','Company Details','Company:',(case when upper(BUSITYPE)='PROPRIETORSHIP' then 'images/tick.gif' else 'images/untick.jpg' end),'Proprietorship',(case when upper(BUSITYPE)='PARTNERSHIP' then 'images/tick.gif' else 'images/untick.jpg' end),'Partnership',(case when upper(BUSITYPE)='PRIVATE LIMITED' then 'images/tick.gif' else 'images/untick.jpg' end),'Pvt. Ltd',(case when upper(BUSITYPE)='PUBLIC LIMITED' then 'images/tick.gif' else 'images/untick.jpg' end),'Pub. Ltd',(case when upper(BUSITYPE)='MNC' then 'images/tick.gif' else 'images/untick.jpg' end),'MNC',(case when upper(BUSITYPE)='GOVERNMENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Govt.',(case when upper(BUSITYPE)='SEMI GOVERNMENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Semi Govt.',(case when upper(BUSITYPE)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Others','Business Nature:',(case when upper(COMPPROF)='OTHERS' then UPPER(compprofoth) else upper(compprof) end),'Products:',upper(proddealt),'Existence',coalesce(yrsjob,'0')||' years and '||coalesce(mnthjob,'0')||' Months','No. of Emp.:',totemp,'Building:',(case when upper(locality)='RESIDENTIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential',(case when upper(locality)='COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial',(case when upper(locality)='INDUATRIAN/FACTORY' then 'images/tick.gif' else 'images/untick.jpg' end),'Industrial',(case when upper(locality)='BUSINESS CENTER' then 'images/tick.gif' else 'images/untick.jpg' end),'Business Center',(case when upper(locality)='SHOP' then 'images/tick.gif' else 'images/untick.jpg' end),'Shop',(case when upper(locality)='RESIDENTIAL CUM COMMERCIAL' then 'images/tick.gif' else 'images/untick.jpg' end),'Office Cum Res.','Ownership:',(case when upper(ownership)='SELF OWNED' then 'images/tick.gif' else 'images/untick.jpg' end),'Own',(case when upper(ownership)='RENTED' then 'images/tick.gif' else 'images/untick.jpg' end),'Rent',(case when upper(ownership)='LEASED' then 'images/tick.gif' else 'images/untick.jpg' end),'Leased',' ','Business Turnover',(case when upper(BUSIACT)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'High',(case when upper(BUSIACT)='MEDIUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Medium',(case when upper(BUSIACT)='AVERAGE' then 'images/tick.gif' else 'images/untick.jpg' end),'Average',(case when upper(BUSIACT)='LOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor','Person Contacted (Name):',UPPER(metperson),'Designation / Relation:',(case when upper(metrela)='OTHERS' then UPPER(metrealoth) else upper(metrela) end),'Designation of Applicant:',(case when upper(appdesign)='OTHERS' then UPPER(appdesignoth) else upper(appdesign) end),'Yrs at work',coalesce(yrstot,'0')||' Years and '||coalesce(mnthtot,'0')||' Months ','Applicant Emp. Status',(case when upper(jobtype)='PROBATION' then 'images/tick.gif' else 'images/untick.jpg' end),'Probation',(case when upper(jobtype)='PERMANENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Confirm','Number of branches/locations',TOTBRANCH,'Co. existence ',' ','Office phone numbers:',ophone||'/'||extn,'Number of employees:',totemp,'Verifier s Comments ',upper(remarks),'Overall Status: ',(case when upper(STATUS)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Positive',(case when upper(STATUS)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Negative',(case when upper(status)='REFERRED' then 'images/tick.gif' else 'images/untick.jpg' end),'Refer To Credit','images/signs/'||sdoneby||'arvee.png',UPPER(sdonebyname),sdoneon,'COMPANY SEAL','SIGNATURE','DATE','Photographs' as lblphotographs,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') as photographs from banklist_main_office o where (val0) val1
Query416!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id , 'MATRIX CREDIT RISK CONTROLS PVT.LTD.','CHOLAMANDALAM CBSL VETTING REPORT','Sr #',upper(applno),'Branch','PUSA ROAD','Location','DELHI','State','DELHI','CBSL Employee name',UPPER(customername),'CBSL Employee DOB',dob,'Department',upper(field50_9),'Product',upper(field50_10),'Date initiated',receivedate,'Report received Date',sdoneon,'STATUS',upper(status),'Remarks',upper(remarks),'Residence Address',upper(raddr),'Previous Employee Name and Address','NA','','','','Signature & Seal of Agency',' ',' ','images/signs/'||supervisor||'.png',' ' from banklist_main_residence r where (val0) val1
Query435!C0L!insert!C0L!insert into main(portfolio_id,mvcode,bank_branch_id,bankcode,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,applno,company_id,branch_id,addedby,addedon,receivedate,uuid)values(,''xmvcodex'',''val6'',''val0'',(case when ''val3''=''HL'' then ''Home Loan'' else ''val3'' end),''val4'',''val7'',(case when ''val2''=''Applicant'' then''Applicant'' when ''val2''=''Guarantor'' then''Guarantor'' when ''val2''=''Co-Applicant'' then''Co-Applicant'' end),''-1'','''',NULL,''val8'',''RadDrXS-val9 -ERadDrX'',''RadDrX1'',''RadDrX2'',''val11'',0,''-1'',''val10'',''val12'',''val13'',''OadDrXS-val14-EOadDrX'',''OadDrX1'',''OadDrX2'',''val16'',0,''-1'',''val15'','''','''',''val17'','''',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val9'') > 3 and ''val9'' <> ''NA'' then 1 else 0 end),0,(case when length(''val14'') > 3 and ''val14'' <> ''NA'' then 1 else 0 end),0,0,0,0,0,0,0,'' ''||'''',0,0,0,''val5'','''',NULL,NULL,NULL,NULL,NULL,NULL,replace(''val22'',''A'',''''),val23,val24,0,''val25'',''val26'','''')
Query436!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',val6,''val0'',''val3'',NULL,''val7'',''val2'',''val1'',(CASE WHEN length(''val22'') > 0 THEN substring(''val22'',1,10) ELSE NULL END),NULL,''val8'',''RadDrXS-val9-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,NULL,''val13'',''OadDrXS-val14-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val18,0,val19,0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val23,val24,0,''val25'',''val26'','''')
Query437!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,(case portfolio_id when 117 then 'Product' else 'Agency Name' end) as label2,'Arvee Bizpro Solutions Pvt Ltd' as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,upper(raddr) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(coalesce(visitdate,'')||' '||coalesce(upper(visittime),'')) as visitdate,'Father Name',upper(fathname),'Contact No ',phoneno,'Reference Name',upper(field150_4),'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Lower Middle Class',upper(Field30_2) as lmc,'Village',upper(Field30_3) as village,'Community Dominated',upper(Field30_6) as comdom,'Slum',upper(Field30_7) as slum,'Difficult to Locate',upper(Field30_8) as diftol,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)||' ADDRESS PROOF : '||upper(proofdet)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Scanned By' as label47,portsupervisor,'' as blank1,'Residence Cum Office' as label48,'A' as label49,'Defaulter/Bad market reputation' as label50,'G' as label51,'Non target Area' as label51,'B' as label52,'Person does not exist' as label53,'H' as label54,'Outside Geographical Limits' as label55,'C' as label56,'Address not traceable/does not exist' as label57,'I' as label58,'Applicant of Family member not met' as label59,'D' as label60,'Detail mismatch' as label61,'J' as label62,'Door Locked' as label63,'E' as label64,'Negative neighbourhood check' as label65,'K' as label66,'Poor living conditions' as label67,'F' as lbl33,'Any other reason(not covered by above)' as label68,'L' as label69,'Shared/Bachelor Accomodtion (Applicable for Credit Card only)' as label70,'M' as label71,'' as blank2,'Agency Verifier' as label45,'Agency Supervisor' as label46,'ARVEE BIZPRO SOLUTIONS PVT LTD' as mcomp,upper(rvername),upper(portsupervisor),'' as blank3,'' as blank4,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'' as blank5,(case when (portfolio_id=70 or portfolio_id=90 or portfolio_id=98 or portfolio_id=110 or portfolio_id=104 or portfolio_id=113 or portfolio_id=117) then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,'Photographs' as lblphotographs,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') as photographs from banklist_main_residence r where (val0) val1
Query438!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,(case portfolio_id when 117 then 'Product' else 'Agency Name' end) as label2,'Arvee Bizpro Solutions Pvt Ltd' as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,upper(raddr) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(coalesce(visitdate,'')||' '||coalesce(upper(visittime),'')) as visitdate,'Father Name',upper(fathname),'Contact No ',phoneno,'Reference Name',upper(field150_4),'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Lower Middle Class',upper(Field30_2) as lmc,'Village',upper(Field30_3) as village,'Community Dominated',upper(Field30_6) as comdom,'Slum',upper(Field30_7) as slum,'Difficult to Locate',upper(Field30_8) as diftol,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)||' ADDRESS PROOF : '||upper(proofdet)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Scanned By' as label47,portsupervisor,'' as blank1,'Residence Cum Office' as label48,'A' as label49,'Defaulter/Bad market reputation' as label50,'G' as label51,'Non target Area' as label51,'B' as label52,'Person does not exist' as label53,'H' as label54,'Outside Geographical Limits' as label55,'C' as label56,'Address not traceable/does not exist' as label57,'I' as label58,'Applicant of Family member not met' as label59,'D' as label60,'Detail mismatch' as label61,'J' as label62,'Door Locked' as label63,'E' as label64,'Negative neighbourhood check' as label65,'K' as label66,'Poor living conditions' as label67,'F' as lbl33,'Any other reason(not covered by above)' as label68,'L' as label69,'Shared/Bachelor Accomodtion (Applicable for Credit Card only)' as label70,'M' as label71,'' as blank2,'Agency Verifier' as label45,'Agency Supervisor' as label46,'ARVEE BIZPRO SOLUTIONS PVT LTD' as mcomp,upper(rvername),upper(portsupervisor),'' as blank3,'' as blank4,mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'' as blank5,(case when (portfolio_id=70 or portfolio_id=90 or portfolio_id=98 or portfolio_id=110 or portfolio_id=104 or portfolio_id=113 or portfolio_id=117) then 'images/signs/'||supervisor||'arvee.png' else 'images/signs/'||supervisor||'.png' end) as singature,'Photographs' as lblphotographs,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') as photographs from banklist_main_residence r where (val0) val1
Query439!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',1498,''val1'',''BL'',NULL,''val4'',''val2'',''-1'',(CASE WHEN length(''val3'') > 0 THEN substring(''val3'',1,10) ELSE NULL END),NULL,''val7'',''RadDrXS-val6-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,NULL,''val8'',''OadDrXS-val9-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,(CASE WHEN length(''val10'') > 0 THEN ''val10'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN length(''val6'') > 0 THEN 1 ELSE 0 END),0,(CASE WHEN length(''val9'') > 0 THEN 1 ELSE 0 END),0,0,0,0,0,0,0,''val11'',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val12,val13,0,''val14'',''val15'','''')
Query440!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',val5,''val0'',''val3'',''val4'',''val6'',''val2'',''val1'',(CASE WHEN length(''val17'') > 0 THEN substring(''val17'',1,10) ELSE NULL END),NULL,''val7'',''RadDrXS-val8-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val9'',''val10'',''OadDrXS-val11-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,''val12'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val13,0,val14,0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val18,val19,0,''val20'',''val21'','''')
Query441!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',463,''val1'',''BL'',NULL,''val2'',''val3'',''-1'',NULL,NULL,''val9'',''RadDrXS-val6-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val8'',(case when ''val3''=''Applicant'' and length(''val7'') > 5 then ''val2'' else NULL end),''OadDrXS-val7-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val6'') > 5 then 1 else 0 end),(case when length(''val7'') > 5 and (length(''val8'') > 5 or length(''val9'') > 5) then 1 else 0 end),(case when length(''val7'') > 5 then 1 else 0 end),(case when length(''val7'') > 5 and length(''val9'') > 5 then 1 else 0 end),0,0,0,0,0,0,'''',0,0,0,NULL,NULL,''ERFL'',NULL,NULL,NULL,NULL,NULL,NULL,val10,val11,0,''val12'',''val13'','''')
Query442!C0L!select!C0L!select user_id,displayname from app_user where isactive=1 and val0
Query443!C0L!procedure!C0L!select hourlyusermis('val0','val1',val2,'val3','val4','val5','val6',val7)
Query444!C0L!procedure!C0L!select usercasesmis(val0,val1,val2,'val3','val4','val5','val6','val7',val8,'val9','val10','val11')
Query445!C0L!select!C0L!select uuid||'!S3PC0L!'||portname||'!S3PC0L!'||mvcode||'!S3PC0L!'||applno||'!S3PC0L!'||customername||'!S3PC0L!'||coalesce(ropr,'')||'!S3PC0L!'||coalesce(oopr,'')||'!S3PC0L!'||coalesce(popr,'')||'!S3PC0L!'||(case when rv!=1 then 'OFF' else coalesce(rveri,'NI') end)||'!S3PC0L!'||(case when ov!=1 then 'OFF' else coalesce(overi,'NI') end)||'!S3PC0L!'||(case when pv!=1 then 'OFF' else coalesce(pveri,'NI') end)||'!S3PC0L!'||receivedon||'!S3PC0L!'||batch||'!S3PC0L!'||(case when rv=1 then (case when (rlock=1 and rlockby!=val0 and rlockby is not null) then '
' else (case when (rrisklevel='1' and rvdone=1) then 'R' else (case when (rdoubtfull='Yes' and rvdone=1) then 'R' else (case when rvdone=1 then 'R' else (case when (rpenremarks is not null and length(rpenremarks)>0) then 'R' else 'R' end) end) end) end) end) else 'X' end)||'!S3PC0L!'||(case when ov=1 then (case when (olock=1 and olockby!=val0 and olockby is not null) then '
' else (case when (orisklevel='1' and rvdone=1) then 'O' else (case when (odoubtfull='Yes' and ovdone=1) then 'O' else (case when ovdone=1 then 'O' else (case when (openremarks is not null and length(openremarks)>0) then 'O' else 'O' end) end) end) end) end) else 'X' end) ||'!S3PC0L!'||(case when pv=1 then (case when (plock=1 and plockby!=val0 and plockby is not null) then '
' else (case when (prisklevel='1' and rvdone=1) then 'P' else (case when (pdoubtfull='Yes' and pvdone=1) then 'P' else (case when pvdone=1 then 'P' else (case when (ppenremarks is not null and length(ppenremarks)>0) then 'P' else 'P' end) end) end) end) end) else 'X' end)||'!S3PC0L!'||(case when (rtv=1 or otv=1) then (case when (tlock=1 and tlockby!=val0 and tlockby is not null) then '
' else (case when tvrdone=1 then 'T' else (case when (tpenremarks is not null and length(tpenremarks)>0) then 'T' else 'T' end) end) end) else 'X' end)||'!S3PC0L!'||rtv||'!S3PC0L!'||otv||'!S3PC0L!'||(case when (refv=1) then (case when (rtlock=1 and rtlockby!=val0 and rtlockby is not null) then '
' else (case when rtdone=1 then 'RT' else 'RT' end) end) else 'X' end)||'!S3PC0L!'||docv||'!S3PC0L!'||rco||'!S3PC0L!'||rcp||'!S3PC0L!'||ocp||'!S3PC0L!'||(case when ear='Y' then 'Y' else coalesce(ear,'') end)||'!S3PC0L!'||(case when neg='Y' then 'Y' else coalesce(neg,'') end)||'!S3PC0L!'||coalesce(rvdone::text,'0')||'!S3PC0L!'||coalesce(rvdoneon::text,'')||'!S3PC0L!'||coalesce(rvdoneby::text,'0')||'!S3PC0L!'||coalesce(ovdone::text,'0')||'!S3PC0L!'||coalesce(ovdoneon::text,'')||'!S3PC0L!'||coalesce(ovdoneby::text,'0')||'!S3PC0L!'||coalesce(tvrdone::text,'0')||'!S3PC0L!'||coalesce(tvrdoneon::text,'')||'!S3PC0L!'||coalesce(tvrdoneby::text,'0')||'!S3PC0L!'||coalesce(pvdone::text,'0')||'!S3PC0L!'||coalesce(pvdoneon::text,'')||'!S3PC0L!'||coalesce(pvdoneby::text,'0')||'!S3PC0L!'||coalesce(docdone::text,'0')||'!S3PC0L!'||coalesce(docdoneon::text,'')||'!S3PC0L!'||coalesce(docdoneby::text,'0')||'!S3PC0L!'||coalesce(rlock::text,'0')||'!S3PC0L!'||coalesce(rlockon::text,'')||'!S3PC0L!'||coalesce(rvlockby::text,'0')||'!S3PC0L!'||coalesce(olock::text,'0')||'!S3PC0L!'||coalesce(olockon::text,'')||'!S3PC0L!'||coalesce(ovlockby::text,'0')||'!S3PC0L!'||coalesce(tlock::text,'0')||'!S3PC0L!'||coalesce(tlockon::text,'')||'!S3PC0L!'||coalesce(tvlockby::text,'0')||'!S3PC0L!'||coalesce(plock::text,'0')||'!S3PC0L!'||coalesce(plockon::text,'')||'!S3PC0L!'||coalesce(pvlockby::text,'0')||'!S3PC0L!'||coalesce(dlock::text,'0')||'!S3PC0L!'||coalesce(dlockon::text,'')||'!S3PC0L!'||coalesce(dlockby::text,'0')||'!S3PC0L!'||coalesce(sdone::text,'0')||'!S3PC0L!'||coalesce(sdoneon::text,'')||'!S3PC0L!'||coalesce(svdoneby::text,'0')||'!S3PC0L!'||portfolio_id||'!S3PC0L!'||coalesce(rtlock::text,'0')||'!S3PC0L!'||coalesce(rtlockon::text,'')||'!S3PC0L!'||coalesce(reflockby::text,'0')||'!S3PC0L!'||coalesce(rtdone::text,'0')||'!S3PC0L!'||coalesce(rtdoneon::text,'')||'!S3PC0L!'||coalesce(rtdoneby::text,'0')||'!S3PC0L!'||(case when (fdlock=1 and fdlockby!=val0 and fdlockby is not null) then '
' else (case when tobesolved=0 then 'FDO' else 'FD' end) end)||'!S3PC0L!'||coalesce(fdlock::text,'0')||'!S3PC0L!'||coalesce(fdlockon::text,'')||'!S3PC0L!'||coalesce(fdvlockby::text,'0')||'!S3PC0L!'||coalesce(tobesolved::text,'0')||'!S3PC0L!'||coalesce(rvrdoneby::text,'0')||'!S3PC0L!'||coalesce(ovrdoneby::text,'0')||'!S3PC0L!'||coalesce(teldoneby::text,'')||'!S3PC0L!'||coalesce(pvrdoneby::text,'0')||'!S3PC0L!'||coalesce(refdoneby::text,'0')||'!S3PC0L!'||(case (commverifier+bothrented) when 0 then '' when 2 then '
' else (case when commverifier=1 then '
' else '
' end) end)||'!S3PC0L!'||loanamount||'!S3PC0L!'||0 as tempf from query_scan_grid where sdone=0 and (val1) and (val2) and (val3) and (val4) and (val5) order by receivedon,mvcode,apptype
Query446!C0L!select!C0L!select portfolio_id,portname from portfolio where portfolio_id in (select distinct portfolio_id from cutoff_operations where (dedcutby is null or dedcutby=0) and ((earlierby>0 and earlier=1) or earlier=0) and ((negativeby>0 and negative=1) or negative=0) and (earlier=1 or negative=1)) and branch_id=val0 order by portname
Query447!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',val23,''val0'',''val3'',''val4'',''val7'',''val2'',''val1'',''val6'',NULL,''val8'',''RadDrXS-val9-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val8'',(case when length(''val13'') > 5 then ''val13'' else NULL end),''OadDrXS-val14-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val18,val20,val19,val21,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val24,val25,0,''val26'',''val27'','''')
Query448!C0L!procedure!C0L!select tobesolvedmis(val0,'val1','val2','val3')
Query449!C0L!procedure!C0L!select edptracker('val0','val1',val2,'val3','val4','val5','val6')
Query450!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(aliasname)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,(case compcode when 'arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' ELSE upper(maincompany) END) as mcomp,'Product' as lblprod,upper(product) as product3,'Loan amount as initiated by bank' as lbllamt,upper(loanamount) as loanamounta,'Vehicle Model and Make' as vehmod,upper(field6) as vehmodel,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time of Visit' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information has to be obtained from the applicant or any body available at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Contact No.' as lblcontno,coalesce(mobileno||',','') ||coalesce(rphone||',','') as contno,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation on the date of visit' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as repdoneby,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Scanned by: '||upper(sdonebyname) as sdonebyname,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Standard of Living' as lblstdliv,furlevel,'Door Color' as lbldcolor,field30_18,'Total No. of story Building' as lblnostory,field30_19,'Society Board' as lblsocboard,socboard||(case upper(socboard) when 'YES' then '-'||upper(socboarddet) else '' end) as socboard,'Name Plate' as lblnmplate,nameplate||(case upper(nameplate) when 'YES' then '-'||upper(platedet) else '' end) as nmplate,'Residence Address Proof' as lblresproof,upper(proofdet) as proofdet,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Negative reason' as label46,(case when negreason='-1' then 'NA' else upper(negreason) end) as negreason,('Remarks : '||upper(remarks)) as rem,'Agency Supervisor' as label47,portsupervisor,'Agency Verifier' as lblagver,upper(rvername) as rvername,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-RES-'||status as bcode,'' as bcell232,'Scanned by: '||upper(sdonebyname) as sdonebyuser,status as watmark,(case portfolio_id when 130 then 'Photographs' else '{SK!PTH15D@TA}' end),(case portfolio_id when 130 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query451!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,' ' ,' ' ,upper(aliasname)||'-OFFICE' as title,'#Office Verificaition ' ,upper(field50_5) ,'Office Address' ,upper(oaddr) ,'Person Met' ,'Address Confirmed' as lbladdconf,addrconfd,upper(metperson),'Met Person Designation Or Relation' ,( case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) ,'Phone No.' as lblphone,coalesce(mobileno||',','')||coalesce(ophone||',','') as contno,'Sign Board on Shop/Office' as lblsign,upper(bizboard) ,'Nature of Business' as lblnob,(case upper(compprof) when 'OTHERS' then upper(compprofoth) else upper(compprof) end) as comprof,'Number of Years in Bussiness' ,coalesce(yrstot,'0')||' Years and '||coalesce(mnthtot,'0')||' Months','Type of Organisation' ,upper(busitype),'Ownership of Premises' ,upper(ownership),'Number of Employees' ,totemp ,'Number of Braches' ,totbranch ,'No. of Years in the same Shop/Office' , coalesce(yrsjob,'0')||' Years and '||coalesce(mnthjob,'0')||' Months' ,'Avg Monthly Income' as lblavinc, upper(turnover),'Avg Monthly Purchased' as lblavpur, upper(field30_5),'No. of EDC Terminal' ,upper(field15_10) ,'EDC Terminal acquiring Bank name' ,upper(field50_15) ,'#Office Verification Observation Points' ,' ' ,'Assest seen' ,(case when upper(field150_1)!='' then 'YES' else 'NO' end),'Interior Shop/Office' ,upper(field50_14),'Bussiness activity' ,upper(busiact) ,'Stock Seen' ,upper(stockdet),'Number of Employees Seen' as lbnoemp,Field30_17 as empseen,'Whether any display / affiliation to Political party seen' as lblpol,political||(case upper(political) when 'YES' then '-'||upper(politicdet) else '' end) as poldet,'Office contact no.' ,ophone,'Type of office' as lbtoff,((case when Field30_22='NA' or upper(Field30_22)='OTHERS' then '' else upper(Field30_22)||' CONSTRUCTION,' end)||(case when Field30_4='NA' then '' else upper(Field30_4)||' EXTERIOR,' end)||(case when Field50_14='NA' then '' else upper(Field50_14)||' INTERIOR,' end)||(case when coalesce(upper(chkfield1),'')='X' then 'PAINTED,' else '' end)||(case when upper(coalesce(chkfield2,''))='X' then 'CLEAN,' else '' end)||(case when upper(coalesce(chkfield3,''))='X' then 'CURTAINS,' else '' end)||(case when upper(coalesce(chkfield3,''))='X' then 'CARPETED,' else '' end)) as lbltoff,'Locality' ,upper(locality),'Office area' ,upper(field30_3),'Ease of locating office' as lblease,upper(easeloc) as easeloc,'Shop/Office is in the market' ,upper(field15_8) ,'Documents check' ,stxno ,'First Neighbour confirmation' ,upper(fieldtext_1) ,'Second Neighbour confirmation' ,upper(fieldtext_4) ,'First Landmark' ,upper(field50_12) ,'Verifier comment/Remarks- Part 1 (Mandatory)' ,upper(remarks) ,'Verifier comment/Remarks- Part 2 (Mandatory)' ,upper(fieldtext_3),'Neighbour''s Feedback' , upper(field30_9),'Verifier name / Sign. & No.' ,upper(overname) ,'Date' ,visitdate,'Agnency name & No.' ,(case portfolio_id when 130 then 'Arvee Bizpro Solutions Pvt. Ltd.' else 'Matrix Credit Risk Control Pvt Ltd.' end) ,'Status- Positive / Negative' ,upper(status),'If Negative then reason' ,(case when upper(status)='NEGATIVE' then upper(negreason) else '' end) ,' ' ,(case portfolio_id when 130 then 'Arvee Bizpro Solutions Pvt. Ltd.' else 'Matrix Credit Risk Control Pvt Ltd.' end) ,mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode ,'images/signs/'||supervisor||(case compcode when 'mcrc' then '' else compcode end)||'.png' as singature,(case portfolio_id when 130 then 'Photographs' else '{SK!PTH15D@TA}' end),(case portfolio_id when 130 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query452!C0L!select!C0L!select COALESCE((select templatefile from bankreport where format_id=pf.resireport),'') as rvqid,COALESCE((select templatefile from bankreport where format_id=pf.offreport),'') as ovqid,COALESCE((select templatefile from bankreport where format_id=pf.telereport),'') as tvqid,COALESCE((select templatefile from bankreport where format_id=pf.propreport),'') as pvqid,COALESCE((select templatefile from bankreport where format_id=pf.refrencereport),'') as refvqid,COALESCE((select templatefile from bankreport where format_id=pf.dedreport),'') as ddqid,COALESCE((select templatefile from bankreport where format_id=pf.tracker),'') as trackqid,COALESCE((select templatefile from bankreport where format_id=pf.offsareport),'') as trackqid,COALESCE((select templatefile from bankreport where format_id=pf.extrareport),'') as extraqid from bankreport_mapping pf where pf.portfolio_id=val0
Query453!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Sales' as vtype,companyname,trim(coalesce(oaddr1||' ','')||coalesce(oaddr2||' ','')||coalesce(oaddr3||' ','')||coalesce('-'||opincode,'')) as oaddr,upper(busitype_o) as btype,to_char(receivedate,'DD-MON-YYYY') as recdate,mvcode,'VIKAS CHAUDHARY' as mgr,UPPER(CONTACTPERSON) as contpers,(case when dob_r is null or length(dob_r)=0 then (case when age_r is null or age_r='0' then 'NA' else coalesce(age_r||' YEAR(s)','NA') end) else dob_r end) as dob,trim(coalesce(raddr1||' ','')||coalesce(raddr2||' ','')||coalesce(raddr3||' ','')||coalesce('-'||rpincode,'')) as raddr,rphone,mobileno,'NA' as email,upper(Field30_4_r) as qual,upper(panno_o) as panno,upper(field250_1_o) as prevworkexp,upper(field30_19_o) as relworkexp,(case ownership_o when 'NA' then upper(owneroth_o) else upper(ownership_o) end) as ownership,upper(Field30_3_o) as carparea,(case locality_o when 'NA' then upper(locaoth_o) else upper(locality_o) end) as locality,upper(ownership_o) as tooffice,totemp_o,ophone,'NA' as faxno,(case when (Field30_12_o is null or Field30_12_o='0' or length(Field30_12_o) > 0) then 'NO' else 'YES' end) as internet,upper(busitype_o) as btype_o,(case upper(bizboard_o) when 'YES' then 'SITED' WHEN 'NO' THEN 'NOT SITED' ELSE 'NA' END) as bboard,(visitdate_o) as visdate,upper(metperson_o)||(CASE when LENGTH(metperson_o) > 2 then (case upper(metrela_o) when 'OTHERS' then '('||upper(metrealoth_o)||')' else '('||upper(metrela_o)||')' end) else 'NA' end) as metpers,(case when ref1relation_re is null or ref1relation_re='-1' then '' else ref1relation_re end) as reflink1,(case when ref2relation_re is null or ref2relation_re='-1' then '' else ref2relation_re end) as reflink2,(case when ref1relation_re is null or ref1relation_re='-1' then '' else ref1relation_re end) as reflink3,(case when ref2relation_re is null or ref2relation_re='-1' then '' else ref2relation_re end) as reflink4,refname1_re,refname2_re,upper(ref1remarks_re) as refrem1,upper(ref2remarks_re) as refrem2,refcontactno1_re as refcont1,refcontactno2_re as refcont2,ref1status_re as ref1stat,ref2status_re as ref2stat,'',coalesce('RESIDENCE REMARKS: '||remarks_r||'','')||coalesce('OFFICE REMARKS: '||remarks_o,'') as remarks,overallstatus,overallstatus,'-' from banklist_main_all o where (val0)
Query454!C0L!procedure!C0L!select fetchdocrem('val0','val1',val2)
Query455!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Residence Verification Report','BASIC DETAILS','Case No.',': '||applno,'Product',': '||upper(product),'Location',': DELHI','Name',': '||customername,'Address',': '||raddr,'Date of Visit',': '||COALESCE(visitdate,'NA'),'Time of Visit',': '||COALESCE(visittime,'NA'),'VERIFICATION DETAILS','Name of the person contacted',': '||COALESCE(metperson,'NA'),'Relationship with Applicant',': '||COALESCE((case upper(metrela) when 'OTHERS' then upper(metrealoth) else upper(metrela) end),'NA'),'House owned by applicant?',': '||COALESCE((case upper(rowner) when 'SELF OWNED' then 'YES (OWNERSHIP PROOF NOT SHOWN)' else 'NO' end),'NA'),'No. of years at Current Residence',': '||COALESCE(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as stay,'OBSERVATIONS','Applicant''s House Type',(case upper(restype) when 'OTHERS' then upper(typeoth) else upper(restype) end),'Carpet Area',upper(carpetarea),'(Approx)','In which area is the house located?',(case upper(locality) when 'OTHERS' then upper(locaoth) else upper(locality) end),'How easy is it to locate the house?',upper(raccess),'Did you see the name of applicant on the -',(case upper(nameplate) when 'YES' then 'NAME PLATE' else 'NO NAME PLATE SEEN' end),'No Society Board Available?','Comment on Exteriors / Compound','1:','Building Wall','('||coalesce(upper(Field15_1),'NA')||')','2:','Fenced / Compound Wall','('||coalesce(upper(Field15_2),'NA')||')','3:','Security','('||coalesce(upper(Field15_3),'NA')||')','4:','Elevator','('||coalesce(upper(Field15_4),'NA')||')','5:','Garden','('||coalesce(upper(Field15_5),'NA')||')','6:','Recreation House','('||coalesce(upper(Field15_6),'NA')||')','7:','Car Parking','('||coalesce(upper(Field15_7),'NA')||')','Entry in to the house allowed',': '||COALESCE(upper(Field15_8),'NA'),'Any visible indicators of affiliation to any particular political party',': '||COALESCE((case upper(political) when 'YES' then 'YES: '||upper(politicdet) else upper(political) end),'NA'),'Comment on locality',': '||COALESCE(upper(locality),'NA'),'OVERALL STATUS OF RESIDENCE FI','Positive',(case when upper(status)='POSITIVE' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','Negative',(case when upper(status)='NEGATIVE' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','SUPERVISOR REMARKS',UPPER(remarks),'OTHER DETAILS','RESIDENCE PROOF - '||COALESCE((case when upper(proof)='YES' then upper(proofdet) WHEN upper(proof)='NO' THEN 'NOT SHOWN' ELSE 'NA' end),'NA')||', NEIGHBOURS FEEDBACK -'||COALESCE((case WHEN length(FIELDTEXT_1) > 0 then UPPER(FIELDTEXT_1) ELSE 'NA' END),'NA'),'(Tick appropriate reason below for not recommending)','1) Residence-Cum-Office',(case when upper(negreason)='RESIDENCE CUM OFFICE' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','2) Non-Targeted Area',(case when upper(negreason)='NEGATIVE AREA' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','3) Outside Geographical Limits',(case when upper(negreason)='OCL' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','4) Applicant or Family Member Not met at both residence & office',(case when upper(negreason)='APP OR FAMILY MEMBER NOT MET AT ANY ADDRESS' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','5) Defaulter',(case when upper(negreason)='DEFAULTER' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','6) No such person exists',(case when upper(negreason)='NO SUCH PERSON' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','7) Address not traceable or Does not exist',(case when upper(negreason)='ADDRESS NOT TRACEABLE' OR (negreason)='WRONG ADDRESS' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','8) Bad living conditions',(case when upper(negreason)='LOW STABILITY' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','9) Profile Mismatch',(case when upper(negreason)='BACHELOR ACCOMMODATION' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','10) Any Other (Details Required):',upper(negreason),mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,'images/signs/'||supervisor||'arvee.png','','Agency Seal and Signature' from banklist_main_residence r where (val0) val1
Query456!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Office Verification Report','BASIC DETAILS','Case No.',': '||upper(applno),'Product',': '||upper(product),'Location',': DELHI','Name',': '||upper(customername),'Address',': '||upper(oaddr),'Date of Visit',': '||coalesce(visitdate,'NA'),'Time of Visit',': '||coalesce(visittime,'NA'),'VERIFICATION DETAILS','Name of the person contacted',': '||coalesce(upper(metperson),'NA'),'Designation of the person contacted',': '||coalesce((case upper(metrela) when 'OTHERS' then upper(metrealoth) else upper(metrela) end),'NA'),'Type of Organization',': '||coalesce(upper(busitype),'NA'),'No. of years at Current Business',': '||coalesce((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end),'NA'),'BUSINESS DETAILS(Transporters)','BUSINESS DETAILS(Captive Funding)','Ownership of Premises',': '||coalesce((case upper(ownership) when 'OTHERS' then upper(owneroth) else upper(ownership) end),'NA'),'Ownership of Premises',': '||coalesce((case upper(ownership) when 'OTHERS' then upper(owneroth) else upper(ownership) end),'NA'),'Fleet Size',': '||coalesce(upper(Field30_1),'NA'),'Nature of Business',': '||coalesce((case upper(compprof) when 'OTHERS' then upper(compprofoth) else upper(compprof) end),'NA'),'Proposed Use',': '||coalesce(upper(Field30_2),'NA'),'Major Products',': '||coalesce(upper(Field150_1),'NA'),'Proposed Route',': '||coalesce(upper(Field30_6),'NA'),'Place of Registration',': '||coalesce(upper(Field30_3),'NA'),'OBSERVATIONS','1. Office Premises Type',': '||coalesce((case upper(Field30_4) when 'OTHERS' then upper(Field30_5) else upper(Field30_4) end),'NA'),'2. Is It a Residence-Cum-Office',': '||coalesce((case upper(Field30_4) when 'OTHERS' then upper(Field30_5) else upper(Field30_4) end),'NA'),'3. Is it the Main Office',': '||coalesce(upper(Field15_2),'NA'),'If No, where is the main office located',': '||coalesce(upper(Field150_2),'NA'),'4. In which area is the office located?',(case upper(locality) when 'OTHERS' then upper(locaoth) else upper(locality) end),'5. a) How easy is it to locate the office?',upper(easeloc),'b) Sign Board Seen',': '||coalesce(upper(bizboard),'NA'),'6. Estimate of sq.ft. area of office',': '||coalesce(upper(Field15_3),'NA'),'7. Comment on locality','','8. Comment on business activity','(For Offices)','1. No. of customer seen',upper(custseen),'','2. No. of employees seen',upper(Field15_5),'','(For Factory/Shop)','1. No. of customer seen',upper(custseen),'','2. Stock seen',upper(Field15_4),'','2. No. of employees seen',upper(Field15_5),'','Overall Activity level',(CASE WHEN upper(busiact)='GOOD' THEN '(HIGH)' ELSE '('||UPPER(BUSIACT)||')' END),'OVERALL STATUS','Positive',(case when upper(status)='POSITIVE' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','Negative',(case when upper(status)='NEGATIVE' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','SUPERVISOR REMARKS',UPPER(remarks),'OTHER DETAILS','NEIGHBOURS FEEDBACK -'||COALESCE((case WHEN length(FIELDTEXT_1) > 0 then UPPER(FIELDTEXT_1) ELSE 'NA' END),'NA'),'(Tick appropriate reason below for not recommending)','1) Residence-Cum-Office',(case when upper(negreason)='RESIDENCE CUM OFFICE' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','2) Non-Targeted Area',(case when upper(negreason)='NON TARGET AREA' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','3) Outside Geographical Limits',(case when upper(negreason)='OUTSIDE GEOGRAPHICAL LIMITS' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','4) Applicant or Family Member Not met at both residence & office',(case when upper(negreason)='APP OR FAMILY MEMBER NOT MET AT ANY ADDRESS' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','5) Defaulter',(case when upper(negreason)='DEFAULTER/BAD MARKET REPUTATION' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','6) No such person exists',(case when upper(negreason)='NO SUCH PERSON' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','7) Address not traceable or Does not exist',(case when upper(negreason)='ADDRESS NOT TRACEABLE' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','8) Bad living conditions','images/blankbox.jpg','','9) Profile Mismatch',(case when upper(negreason)='DETAIL MISMATCH' then 'images/tickbox.jpg' else 'images/blankbox.jpg' end),'','10) Any Other (Details Required):',upper(negreason),mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,'images/signs/'||supervisor||'arvee.png','','Agency Seal and Signature' from banklist_main_office o where (val0) val1
Query457!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,Receivedate,sdoneon,oaddr1||' '||oaddr2||' '||oaddr3,customername,busitype_o,panno_o,fieldtext_2_o,raddr1||' '||raddr2||' '||raddr3,oaddr1||' '||oaddr2||' '||oaddr3,upper(ocity),coalesce(mobileno||',','')||coalesce(rphone||' ,','')||coalesce(ophone,''),(case upper(locality_o) when 'OTHERS' then upper(locaoth_o) else upper(locality_o) end),totemp_o,field150_1_o,(case upper(compprof_o) when 'OTHERS' then upper(compprofoth_o) else upper(compprof_o) end),((case when (yrsjob_o<>'0' and yrsjob_o<>'') then yrsjob_o||' YEARS(S) ' else '' end)||(case when (mnthjob_o<> '0' and mnthjob_o <> '') then mnthjob_o||' MONTH(S)' else '' end)) as yrsjob,metperson_o,(case upper(metrela_o) when 'OTHERS' then upper(metrealoth_o) else upper(metrela_o) end) as metrela,(case upper(compprof_o) when 'OTHERS' then upper(compprofoth_o) else upper(compprof_o) end),((case when (yrstot_o<>'0' and yrstot_o<>'') then yrstot_o||' YEARS(S) ' else '' end)||(case when (mnthtot_o<> '0' and mnthtot_o <> '') then mnthtot_o||' MONTH(S)' else '' end)) as yrstot,Field30_5_o,setupdet_o,Field150_4_o,Field150_3_o,'NA',coalesce('RESIDENCE REMARKS: '||remarks_r||'','')||coalesce('OFFICE REMARKS: '||remarks_o,'') as remarks,fieldtext_1_o,fieldtext_3_o,fieldtext_4_o,overallstatus, 'images/signs/'|| sdoneby ||'arvee.png' as sdoneby from banklist_main_all o where (val0)
Query458!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(case bank_branch_id=1757 or bank_branch_id=1759 or bank_branch_id=1770 THEN 'Religare Finvest Ltd' else 'Religare Housing Development Finance Corporation Limited' end) as title,'FCU PROPERTY FI REPORT','CASE DETAILS','Application ID',upper(applno) as applno1,'Region',upper(pcity),'Product',upper(product),'Branch Name',upper(bkbranchname),'Loan Amount',upper(loanamount),'DSA/DST Name','NA','Pickup Date',to_char(Receivedate,'DD/MON/YYYY') as recdate,'Final Report Date',to_char(sdoneon,'DD/MON/YYYY') as donedate,'APPLICANT DETAILS','Applicant Name',upper(customername) as custname,'Co-Applicant Name',(case when upper(apptype)='APPLICANT' then coalesce(sublist('select customername as field from temp_reporting where trim(upper(applno))='''||trim(upper(p.applno))||''' and bank_branch_id='||p.bank_branch_id||' and upper(apptype) <> ''APPLICANT''',','),'NA') else 'NA' end) as coapps,'Property Address',coalesce(paddr1||' ','')||coalesce(paddr2||' ','')||coalesce(paddr3||' ','') as paddr,'Property FI Details','Check Parameters','Check Results','Detailed location of the property',upper(field30_5) as locality,'Colour of the Building from outside',upper(field30_7) as bcolor,'Property Type (Resi/Comm/Mixed)',upper(field30_5) as btype,'Occupancy (Self-occupied/Tenanted-partially/Fully)',upper(field30_14) as occustat,'Details of the occupant (Name with Occupance details)',upper(fieldtext_2) as occudetails,'Any Other Remarks',upper(remarks) as remarks,'Met property owner (Yes/No) with details',(case upper(field3_1) when 'YES' then upper(field3_1)||'-'||upper(field150_1) when 'NO' then 'NO' else 'NA' end) as metowner,'Final Report Details','Overall Status',upper(status) as status,'TAT','1','Verification Agency Name','Arvee Bizpro Solutions Pvt. Ltd.','Seal & signature of Verification Agency','images/signs/'|| sdoneby ||compcode||'.png' as sdoneby,mvcode||'-'||applno||'-'||customername||'-'||coalesce(Field50_1,'NA')||'-'||coalesce(upper(Field50_1),'NA')||'-'||(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end)||'-OTH-'||status as bcode,(case when portfolio_id= 137 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphoto,(case when portfolio_id= 137 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''P'' and uuid='''||p.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_property p where (val0) val1
Query459!C0L!procedure!C0L!select negreasonmis('val0', 'val1', val2, val3, val4, 'val5', 'val6', 'val7', 'val8')
Query460!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'MATRIX CREDIT RISK CONTROLS PRIVATE LIMITED','Employer Visit Report','Name of appraiser','NA','Request receive date',to_char(receivedate,'DD-MON-YYYY') as receivedate,'FILE NUMBER',upper(applno) as applno,'Report date',to_char(sdoneon,'DD-MON-YYYY') as sdoneon,'' as bcell1,'Name of customer/s',upper(contactperson) as contactperson,'Name of business entity',upper(customername) as customername,'Business type with end product - Nature of business (Manufacturer/Service Provider/Trader/Comm. Agent)',(case upper(compprof) when 'OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof,'Constitution of the business entity',upper(busitype) as busitype,'PAN Number',upper(panno) as panno,'Brief note on nature of business',upper(proddealt) as proddealt,'Registration No/TIN No/CST No/Excise No./IEC No. Please mention document checked if any', ('CIN NO.: '||upper(Field50_3)||', REGISTRATION NO.: '||upper(Field30_7)) as regno,'Detais of promoters/Promoter group','NOT TOLD' as bcell2,'Number of years in business',((case when (yrsjob_o<>'0' and yrsjob_o<>'') then yrsjob_o||' YEARS(S) ' else '' end)||(case when (mnthjob_o<> '0' and mnthjob_o <> '') then mnthjob_o||' MONTH(S)' else '' end)) as yrsjob,'Business premises owned/rented with area details','GIVEN PREMISES IS '||(case upper(ownership) when 'OTHERS' then upper(owneroth) else upper(ownership) end)||' THE COMPANY MEASURING AREA'||upper(Field30_24) as ownership,'Number of employees Permanent/Contractual',totemp,'Whether PF/ESI applicable (Yes/No)','NA' as bcell3,'Domain check if website is available',upper (Field50_10) as domain,'Major clients','NOT TOLD' as bcell4,'if business entity is a company - following information requires','MCA check on directors',sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''DIRECTORS'' and vistype=''O'' and uuid='''||o.uuid||'''',','),'Registered address as per MCA',upper(Field150_3) as regaddr,'Paid up capital',upper(Field30_8) as pupcapital,'Date of incorporation',upper(Field30_10) as doi,'Index of charges',sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''INDEX'' and vistype=''O'' and uuid='''||o.uuid||'''',','),'Financial status - as disclosed by the employer','Turnover of revenue',upper(turnover) as turnover,'NOT TOLD','Profit',upper(Field15_1) as profit,'NOT TOLD','Activity level seen at site','Address visited',(upper(oaddr1)||' '||upper(oaddr2)||' '||upper(oaddr3)) as addr,'Name of person met',upper(metperson) as metperson,'Department',(case upper(metrela) when 'OTHERS' then upper(metrelaoth) else upper(metrela) end) as metrela,'HR email id',upper(Field30_11) as emailid,'Contact number',upper(Field30_1) as contno,'Business set-up',upper(Field150_2) as interior,'Employees seen',upper (Field15_5) as empseen,'Location - Industrial/Residential/Commercial',(case upper(locality) when 'OTHERS' then upper(locaoth) else upper(locality) end) as locality, 'Name board displayed if no- give details',upper(bizboard) as bizboard,'Discreet Check (Reason required if discreet check not done)','1','Details with whom check done & response',upper(Fieldtext_1) as neigh1,'2','Details with whom check done & response',upper(Fieldtext_2) as neigh2,'Comfort factors','' as bcell5,'' as bcell6,upper (remarks),'Discomfort factors','' as bcell7,'' as bcell8,upper(riskremarks) as riskrem,'Origin place',upper(specialinst) as specialinst,'Final conclusion',upper(status),'' as bcell9,'Date of visit',visitdate,'Time of visit',visittime,'' as bcell10,'Signature of person visited',upper(overname) as vername,'Name of authorized signatory','(SELECT upper (u.displayname) from app_user u where u.user_id = supervisor) ','Signature of authorized signatory','images/signs/'||supervisor||'.png','bcode','Photographs' as lblphoto,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') as photographs from banklist_main_office o where (val0) val1
Query461!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(case ''val3'' when ''Business Loan'' then 1772 else 1781 end),''val0'',''val3'',NULL,''val5'',''val2'',''val1'',NULL,NULL,''val6'',(CASE WHEN length(''val7'') > 2 THEN ''RadDrXS-val7-ERadDrX'' ELSE NULL END),(CASE WHEN length(''val7'') > 2 THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN length(''val7'') > 2 THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN ''val16'' = ''1'' THEN ''val9'' ELSE NULL END),0,-1,NULL,(CASE WHEN ''val16'' = ''1'' THEN ''val10'' ELSE NULL END),''val11'',(CASE WHEN length(''val12'') > 2 THEN ''OadDrXS-val12-EOadDrX'' ELSE NULL END),(CASE WHEN length(''val12'') > 2 THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN length(''val12'') > 2 THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN ''val17'' = ''1'' THEN ''val14'' ELSE NULL END),0,-1,NULL,NULL,(CASE WHEN ''val17'' = ''1'' THEN ''val4'' ELSE NULL END),(CASE WHEN ''val17'' = ''1'' THEN ''val15'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,''val16'',0,''val17'',0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val18,val19,0,''val20'',''val21'','''')
Query462!C0L!select!C0L!select uuid,product,(case when rv=1 then maincompany_r else maincompany_o end),bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,to_char(receivedate,'DD/MM/YYYY'), to_char(sdoneon,'DD/MM/YYYY'),customername,product,proddealt_o,oaddr1_o||' '||oaddr2_o||coalesce(' '||oaddr3_o,''),coalesce(ophone||',','')||coalesce(mobileno,''),Field30_1_o,busitype_o,Field50_14_o,visitdate_o||' '||visittime_o,metperson_o||' ('|| ( case when upper(metrela_o)='OTHERS' then upper(metrealoth_o) else upper(metrela_o) end) ,Field30_3_o,stockdet_o,Field30_8_o,Field30_11_o,Field30_7_o,Field30_10_o,Field30_12_o,Field30_13_o,busiact_o,Field30_15_o,COALESCE(Field30_14_o,'')||'/'||coalesce(totemp_o,''),((case when (yrsjob_o<>'0' and yrsjob_o<>'') then yrsjob_o||' YEARS(S) ' else '' end)||(case when (mnthjob_o<> '0' and mnthjob_o <> '') then mnthjob_o||' MONTH(S)' else '' end)),'NA',coalesce(Fieldtext_1_o||'','')||coalesce(Fieldtext_3_o,''), ( case upper(locality_o) when 'OTHERS' then locaoth_o else locality_o end), Field250_1_o,Field30_5_o,'NA',Field30_20_o,'NA',Field30_16_o,panno_o,bank_o,'NA',Fieldtext_2_o,'',riskremarks_o,remarks_o,Field50_14_o,dob_r,raddr1_r||' '||raddr2_r||coalesce(' '||raddr3_r,''),nameplate_r||' ('||platedet_r||') ',visitdate_r||' '||visittime_r, metperson_r||' ('|| ( case when upper(metrela_r)='OTHERS' then metrealoth_r else metrela_r end) , (case upper(rowner_r) when 'OTHERS' then upper(owneroth_r) else upper(rowner_r) end), maritial_r,((case when (yrsadd_r<>'0' and yrsadd_r<>'') then yrsadd_r||' YEARS(S) ' else '' end)||(case when (mnthadd_r <> '0' and mnthadd_r <> '') then mnthadd_r||' MONTH(S)' else '' end)), ((case when (yrscity_r<>'0' and yrscity_r<>'') then yrscity_r||' YEARS(S) ' else '' end)||(case when (mnthcity_r <> '0' and mnthcity_r <> '') then mnthcity_r||' MONTH(S)' else '' end)),Field30_15_r,Fieldtext_2_r,riskremarks_r,remarks_r,(case when upper(restype_r) ='INDEPENDENT HOUSE' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='POSH' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='HOUSING COMPLEX' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='FLAT/PART OF INDEPENDENT' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='UPPER MIDDLE CLASS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(locality_r) ='SMALL/MEDIUM SHOP' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='SLUM' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='MIDDLE CLASS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(locality_r) ='MARKET AREA' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='HUTMENT' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='LOWER MIDDLE CLASS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(locality_r) ='OTHERS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='CHAWL' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='UNDERDEVELOPED' then 'images/wticked.png' else 'images/wuticked.png' end),locaoth_r,(case when upper(restype_r) ='SMALL UNIT WITHIN HOUSE' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='SLUM' then 'images/wticked.png' else 'images/wuticked.png' end),carpetarea_r,(case when upper(locality_r) ='COMMERCIAL' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='PUKKA' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_7_r) ='GOOD' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(interior_r) ='GOOD' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='SEMI-PUKKA' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_7_r) ='AVERAGE' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(interior_r) ='AVERAGE' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='TEMPORARY' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_7_r) ='POOR' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(interior_r) ='POOR' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='BRICK WALLED' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_8_r) ='YES' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(construction_r) ='PLASTERED' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_10_r) ='YES' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield1_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield6_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), 'images/wuticked.png',(case when upper(Field30_14_r) ='HIG' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield2_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield7_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), 'images/wuticked.png',(case when upper(Field30_14_r) ='MIG' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield3_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield8_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Field30_14_r) ='LIG' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield4_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield9_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield5_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield10_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), 'NA','NA','NA',UPPER(status_o),UPPER(status_r),'NOT SHARED', UPPER(status_o), 'NA', UPPER(overallstatus) ,(CASE WHEN rv=1 THEN upper(sdonebyname_r) else sdonebyname_o end),(CASE WHEN rv=1 THEN upper(sdonebyname_r) else sdonebyname_o end),'images/signs/'||sdoneby||'.png',to_char(sdoneon,'DD/MM/YYYY'),sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||uuid||'''',',') as resiphotographs,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||uuid||'''',',') as offphotographs from hdfc_dsa_banklist where (val0) val1
Query_OLD462!C0L!select!C0L!select uuid,product,(case when rv=1 then maincompany_r else maincompany_o end),bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,to_char(receivedate,'DD/MM/YYYY'), to_char(sdoneon,'DD/MM/YYYY'),customername,product,proddealt_o,oaddr1_o||' '||oaddr2_o||coalesce(' '||oaddr3_o,''),coalesce(ophone||',','')||coalesce(mobileno,''),Field30_1_o,busitype_o,Field50_14_o,visitdate_o||' '||visittime_o,metperson_o||' ('|| ( case when upper(metrela_o)='OTHERS' then upper(metrealoth_o) else upper(metrela_o) end) ,Field30_3_o,stockdet_o,Field30_8_o,Field30_11_o,Field30_7_o,Field30_10_o,Field30_12_o,Field30_13_o,busiact_o,Field30_15_o,COALESCE(Field30_14_o,'')||'/'||coalesce(totemp_o,''),((case when (yrsjob_o<>'0' and yrsjob_o<>'') then yrsjob_o||' YEARS(S) ' else '' end)||(case when (mnthjob_o<> '0' and mnthjob_o <> '') then mnthjob_o||' MONTH(S)' else '' end)),'NA',coalesce(Fieldtext_1_o||'','')||coalesce(Fieldtext_3_o,''), ( case upper(locality_o) when 'OTHERS' then locaoth_o else locality_o end), Field250_1_o,Field30_5_o,'NA',Field30_20_o,'NA',Field30_16_o,panno_o,bank_o,'NA',Fieldtext_2_o,'',riskremarks_o,remarks_o,Field50_14_o,dob_r,raddr1_r||' '||raddr2_r||coalesce(' '||raddr3_r,''),nameplate_r||' ('||platedet_r||') ',visitdate_r||' '||visittime_r, metperson_r||' ('|| ( case when upper(metrela_r)='OTHERS' then metrealoth_r else metrela_r end) , (case upper(rowner_r) when 'OTHERS' then upper(owneroth_r) else upper(rowner_r) end), maritial_r,((case when (yrsadd_r<>'0' and yrsadd_r<>'') then yrsadd_r||' YEARS(S) ' else '' end)||(case when (mnthadd_r <> '0' and mnthadd_r <> '') then mnthadd_r||' MONTH(S)' else '' end)), ((case when (yrscity_r<>'0' and yrscity_r<>'') then yrscity_r||' YEARS(S) ' else '' end)||(case when (mnthcity_r <> '0' and mnthcity_r <> '') then mnthcity_r||' MONTH(S)' else '' end)),Field30_15_r,Fieldtext_2_r,riskremarks_r,remarks_r,(case when upper(restype_r) ='INDEPENDENT HOUSE' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='POSH' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='HOUSING COMPLEX' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='FLAT/PART OF INDEPENDENT' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='UPPER MIDDLE CLASS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(locality_r) ='SMALL/MEDIUM SHOP' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='SLUM' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='MIDDLE CLASS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(locality_r) ='MARKET AREA' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='HUTMENT' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='LOWER MIDDLE CLASS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(locality_r) ='OTHERS' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(restype_r) ='CHAWL' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='UNDERDEVELOPED' then 'images/wticked.png' else 'images/wuticked.png' end),locaoth_r,(case when upper(restype_r) ='SMALL UNIT WITHIN HOUSE' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(locality_r) ='SLUM' then 'images/wticked.png' else 'images/wuticked.png' end),carpetarea_r,(case when upper(locality_r) ='COMMERCIAL' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='PUKKA' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_7_r) ='GOOD' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(interior_r) ='GOOD' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='SEMI-PUKKA' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_7_r) ='AVERAGE' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(interior_r) ='AVERAGE' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='TEMPORARY' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_7_r) ='POOR' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(interior_r) ='POOR' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(construction_r) ='BRICK WALLED' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_8_r) ='YES' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(construction_r) ='PLASTERED' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Field30_10_r) ='YES' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield1_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield6_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), 'images/wuticked.png',(case when upper(Field30_14_r) ='HIG' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield2_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield7_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), 'images/wuticked.png',(case when upper(Field30_14_r) ='MIG' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield3_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield8_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Field30_14_r) ='LIG' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield4_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield9_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), (case when upper(Chkfield5_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end),(case when upper(Chkfield10_r) ='X' then 'images/wticked.png' else 'images/wuticked.png' end), 'NA','NA','NA',UPPER(status_o),UPPER(status_r),'NOT SHARED', UPPER(status_o), 'NA', UPPER(overallstatus) ,(CASE WHEN rv=1 THEN upper(sdonebyname_r) else sdonebyname_o end),(CASE WHEN rv=1 THEN upper(sdonebyname_r) else sdonebyname_o end),'images/signs/'||sdoneby||'.png',to_char(sdoneon,'DD/MM/YYYY') from hdfc_dsa_banklist where (val0) val1
Query463!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',1742,''val1'',''Credit Card'','''',''val2'',''Applicant'',''-1'','''','''','''',''RadDrXS-val4-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,'''',(case when length(''val3'') > 2 then ''val3'' else NULL end),''OadDrXS-val5-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(case when length(''val4'') > 2 then 1 else 0 end),0,(case when length(''val3'') > 2 then 1 else 0 end),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val7,val8,0,''val9'',''val10'','''')
Query464!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN ''val18'' = ''FBD'' THEN 1695 WHEN ''val18'' = ''HE'' THEN 100 ELSE 98 END),''val0'',''val1'',NULL,''val2'',''val3'',''val4'',NULL,NULL,''val5'',(CASE WHEN ''val6'' = ''1'' THEN ''RadDrXS-val8-ERadDrX'' ELSE NULL END),(CASE WHEN ''val6'' = ''1'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val6'' = ''1'' THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN ''val6'' = ''1'' THEN ''val9'' ELSE NULL END),0,-1,NULL,(CASE WHEN ''val6'' = ''1'' THEN ''val10'' ELSE NULL END),''val11'',(CASE WHEN ''val7'' = ''1'' THEN ''OadDrXS-val12-EOadDrX'' ELSE NULL END),(CASE WHEN ''val7'' = ''1'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val7'' = ''1'' THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN ''val7'' = ''1'' THEN ''val14'' ELSE NULL END),0,-1,NULL,(CASE WHEN ''val7'' = ''1'' THEN ''val16'' ELSE NULL END),(CASE WHEN ''val7'' = ''1'' THEN ''val17'' ELSE NULL END),(CASE WHEN ''val17'' = ''1'' THEN ''val15'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val6'' = ''1'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val7'' = ''1'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val19,val20,0,''val21'',''val22'','''')
Query465!C0L!procedure!C0L!select performance_report('val0', 'val1', val2, val3, val4, 'val5', 'val6', 'val7', 'val8')
Query466!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',val2,''val0'',''val4'',NULL,''val6'',''val3'',''val1'',NULL,NULL,''val16'',(CASE WHEN ''val14'' = ''1'' THEN ''RadDrXS-val7-ERadDrX'' ELSE NULL END),(CASE WHEN ''val14'' = ''1'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val14'' = ''1'' THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN ''val14'' = ''1'' THEN ''val8'' ELSE NULL END),0,-1,NULL,NULL,''val10'',(CASE WHEN ''val15'' = ''1'' THEN ''OadDrXS-val12-EOadDrX'' ELSE NULL END),(CASE WHEN ''val15'' = ''1'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val15'' = ''1'' THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN ''val15'' = ''1'' THEN ''val13'' ELSE NULL END),0,-1,NULL,NULL,(CASE WHEN ''val15'' = ''1'' THEN ''val11'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val14'' = ''1'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val15'' = ''1'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,''val5'',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val17,val18,0,''val19'',''val20'','''')
Query467!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',''val2'',''val1'',''val5'',''val6'',''val3'',''val4'',''-1'',NULL,NULL,''val7'',(CASE WHEN ''val8'' = ''1'' THEN ''RadDrXS-val9-ERadDrX'' ELSE NULL END),(CASE WHEN ''val8'' = ''1'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val8'' = ''1'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,(CASE WHEN ''val10'' = ''1'' THEN ''val11'' ELSE NULL END),(CASE WHEN ''val10'' = ''1'' THEN ''OadDrXS-val12-EOadDrX'' ELSE NULL END),(CASE WHEN ''val10'' = ''1'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val10'' = ''1'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val8'' = ''1'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val10'' = ''1'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,''val5'',0,0,0,NULL,NULL,(CASE WHEN ''val8'' = ''1'' THEN ''val0'' ELSE NULL END),(CASE WHEN ''val10'' = ''1'' THEN ''val13'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,val14,val15,0,''val16'',''val17'','''')
Query468!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,name||' - Residence FI Report','FI Agency Name',(CASE compcode WHEN 'arvee' THEN 'Arvee Bizpro Solutions Pvt. Ltd.' ELSE 'Matrix Credit Risk Controls Pvt. Ltd.' END),'Referred Date',to_char(receivedate,'DD/MM/YYYY'),'Location / Branch',upper(bkbranchname),'Reporting Date',to_char(sdoneon,'DD/MM/YYYY HH24:mm:ss'),'App ID',upper(applno),'Company Name','','FI Type','Residence','Applicant Name (s) (Names of Applicants/coapplicants staying in said Residence)',upper(customername),'Residence Address',coalesce(raddr1||' '||raddr2||' '||raddr3,''),'Parameters for Address Check (Residence)','Visit Date',visitdate,'Visit Time',visittime,'Person Contacted',COALESCE(metperson,'NA'),'Relation of the Person Contacted with the Main Applicant(s)',COALESCE((case upper(metrela) when 'OTHERS' then upper(metrealoth) else upper(metrela) end),'NA'),'Ownership Type',COALESCE((case upper(rowner) when 'OTHERS' then upper(owneroth) else upper(rowner) end),'NA'),'No. of family members',totmem,'Landmark',upper(landmark),'No. of Dependents',dependent,'Area of Premise',carpetarea,'Staying Since',COALESCE(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA'),'Society Name Board (Yes/No)',COALESCE((case upper(socboard) when 'YES' then upper('YES - '||socboarddet) else upper(socboard) end),'NA'),'Door Name Plate seen (Yes/No)',COALESCE((case upper(nameplate) when 'YES' then upper('YES - '||platedet) else upper(nameplate) end),'NA'),'Qualification',upper(Field30_17),'Marital Status (Yes/No)',upper(maritial),'Neighbor / Third Party Name 1)',upper(field50_14),'Neighbor / Third Party feedback',upper(Fieldtext_1),'Neighbor / Third Party Name 2)',upper(field50_15),'Type of Locality (Residential/Commercial / slum area / Resi-cumcommercial) *Pls specify, if others',COALESCE((case upper(locality) when 'OTHERS' then upper(locaoth) else upper(locality) end),'NA'),'Accessibility (Easy / Difficult)',upper(raccess),'Political Link (Yes/No)',COALESCE((case upper(political) when 'YES' then upper('YES - '||politicdet) else upper(political) end),'NA'),'Overall status',upper(status),'Negative Reason (if any)',upper(negreason),'Other Remarks',upper(remarks),mvcode||'-'||applno||'-'||customername||'-RES-'||status as bcode,(CASE WHEN portfolio_id = 163 THEN 'images/signs/'||supervisor||'.png' ELSE 'images/signs/'||supervisor||'arvee.png' END),(case when portfolio_id = 148 or portfolio_id = 163 then 'Photographs' else '{SK!PTH15D@TA}' end),(case when portfolio_id = 148 or portfolio_id = 163 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query469!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,name||' - Office FI Report','FI Agency Name',(CASE compcode WHEN 'arvee' THEN 'Arvee Bizpro Solutions Pvt. Ltd.' ELSE 'Matrix Credit Risk Controls Pvt. Ltd.' END),'Referred Date',to_char(receivedate,'DD/MM/YYYY'),'Location / Branch',upper(bkbranchname),'Reporting Date',to_char(sdoneon,'DD/MM/YYYY HH24:mm:ss'),'App ID',upper(applno),'Company Name',upper(companyname),'FI Type','Office','Applicant Name (s) (Names of Applicants/coapplicants staying in said Residence)',upper(customername),'Office Address',coalesce(companyname||' ','')||coalesce(oaddr1||' '||oaddr2||' '||oaddr3,''),'Parameters for Address Check (Residence)','Visit Date',visitdate,'Visit Time',visittime,'Person Contacted',COALESCE(metperson,'NA'),'Relation of the Person Contacted with the Main Applicant(s)',COALESCE((case upper(metrela) when 'OTHERS' then upper(metrealoth) else upper(metrela) end),'NA'),'Person Contacted Works at the Same Office as',upper(Field30_7),'No. of Years in same Business',COALESCE(((case when (yrstot<>'0' and yrstot<>'') then yrstot||' YEARS(S) ' else '' end)||(case when (mnthtot <> '0' and mnthtot <> '') then mnthtot||' MONTH(S)' else '' end)),'NA'),'Ownership Type',COALESCE((case upper(ownership) when 'OTHERS' then upper(owneroth) else upper(ownership) end),'NA'),'No. of employees',totemp,'Landmark',upper(Field50_2),'No. of employees seen',upper(Field30_17),'Area of Premise',upper(Field30_3),'Operating in the said premise since',COALESCE(((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob <> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)),'NA'),'Society Name Board (Yes/No)',upper(bizboard),'Door Name Plate (Yes / No)','NA','Office Door Locked (Yes / No)',(case risklevel when '4' then 'YES' else 'NO' end),'Business activity seen (yes/ No)',upper(busiact),'Neighbor / Third Party Name 1)',upper(Field50_14),'Neighbor / Third Party feedback',upper(Fieldtext_1),'Neighbor / Third Party Name 2)',upper(Field50_14),'Type of Locality (Residential/Commercial / slum area / Resi-cumcommercial) *Pls specify, if others',COALESCE((case upper(locality) when 'OTHERS' then upper(locaoth) else upper(locality) end),'NA'),'Accessibility (Easy / Difficult)',upper(easeloc),'Political Link (Yes/No)',COALESCE((case upper(political) when 'YES' then upper('YES - '||politicdet) else upper(political) end),'NA'),'Overall status',upper(status),'Negative Reason (if any)',upper(negreason),'Other Remarks',upper(remarks),mvcode||'-'||applno||'-'||customername||'-OFF-'||status as bcode,(CASE WHEN portfolio_id = 163 THEN 'images/signs/'||supervisor||'.png' ELSE 'images/signs/'||supervisor||'arvee.png' END),(case when portfolio_id = 148 or portfolio_id = 163 then 'Photographs' else '{SK!PTH15D@TA}' end),(case when portfolio_id = 148 or portfolio_id = 163 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1
Query470!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,'','','images/signs/logo.png','','Zapfin Tekhnologies Pvt. Ltd.','','','Aditya Business Center S N 1 A B Wing','','','3rd Floor Above ICICI Bank Kondhwa','','','Pune- 411048.','','','www.docboyz.in#https://www.docboyz.in/','','','','Case Details','','','Application ID : '||applno,'Customer Name : '||upper(customername),'FCID : 6345','','','Activity Name : CPVO','Product : PAYTM OFFICE CPV','','','Address : '||upper(paddr1)||' '||upper(paddr2)||coalesce(' '||paddr3,''),'','','City : '||upper(pcity),'State : '||(case when (pcity='Daruhera' or pcity='Gurugram' or pcity='Manesar' or pcity='Bahadurgarh' or pcity='Ballabhgarh' or pcity='Palwal' or pcity='Faridabad') then 'HARYANA' when (pcity='Modi Nagar' or pcity='Ghaziabad' or pcity='Noida') then 'UTTAR PRADESH' when (pcity='Delhi') then 'Delhi' else 'NA' end),'','','Case Status : Completed','Document Submitted Date : NA','','','POD No : Not Submitted','POD completed Date : Not Submitted','','','Latitude : '||getlatlong(p.uuid,'latitude','P'),'Longitude : '||getlatlong(p.uuid,'longitude','P'),'Map View : ','View Location#https://www.google.com/maps/place/'||getlatlong(p.uuid,'latitude','P')||','||getlatlong(p.uuid,'longitude','P'),'','','','','pagebreak','','Question 1 :','Answer :','','','Take Photo of office from Outside/Godown / Physical Stock seen/(Mandatory)+With landmark',Field50_1,'','','',coalesce((select docpath from tagged_docs where doctype='FINANCIALS' and vistype='P' and uuid=p.uuid limit 1),'{SK!PTH15D@TA}'),'','',getlatlong(p.uuid,'latlongdate','P'),'','pagebreak','','Question 2 :','Answer :','','','Name of met Person',upper(Field50_4),'','','',coalesce((select docpath from tagged_docs where doctype='POV' and vistype='P' and uuid=p.uuid limit 1),'{SK!PTH15D@TA}'),'','',getlatlong(p.uuid,'latlongdate','P'),'','pagebreak','','Question 3 :','Answer :','','','Ownership of Office (if Rental Required Monthly rent Amount)',(case upper(Field50_2) when 'RENTED' then Field50_2||' - '||upper(Field30_19) else Field50_2 end),'','','','Question 4 :','Answer :','','','Co board / Name Plate / Address plate - If yes Take photo',Field3_1,'','','',coalesce((select docpath from tagged_docs where doctype='ADD_PROOF' and vistype='P' and uuid=p.uuid limit 1),'{SK!PTH15D@TA}'),'','',getlatlong(p.uuid,'latlongdate','P'),'','pagebreak','','Question 5 :','Answer :','','','Photo of Paytm QR code/ POS Machine',Field50_3,'','','',coalesce((select docpath from tagged_docs where doctype='KYC' and vistype='P' and uuid=p.uuid limit 1),'{SK!PTH15D@TA}'),'','',getlatlong(p.uuid,'latlongdate','P'),'','pagebreak','','Question 6 :','Answer :','','','Years at current office/shop',Field30_1,'','','','Question 7 :','Answer :','','','Office/shop Type',Field30_3,'','','',coalesce((select docpath from tagged_docs where doctype='BANK_STATEMENT' and vistype='P' and uuid=p.uuid limit 1),'{SK!PTH15D@TA}'),'','',getlatlong(p.uuid,'latlongdate','P'),'','pagebreak','','Question 8 :','Answer :','','','Type of office / shop Set up',Field30_4,'','','','Question 9 :','Answer :','','','Number of Employees',Field30_6,'','','','Question 10 :','Answer :','','','Neighbour Check -YES/NO(If yes check neighbour shop/office board photo).',Field30_8,'','','',coalesce((select docpath from tagged_docs where doctype='MNIMBLE' and vistype='P' and uuid=p.uuid limit 1),'{SK!PTH15D@TA}'),'','',getlatlong(p.uuid,'latlongdate','P'),'','pagebreak','','Question 11 :','Answer :','','','Final Status',status,'','','','Question 12 :','Answer :','','','DETAILS FEEDBACK',upper(remarks),'','','','POD Number: Not Submited','','','Not Submited','','','','Company Disclaimer','' from banklist_main_property p where (val0) val1
Query471!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',(CASE WHEN val10 = 1804 OR val10 = 1806 OR val10 = 1805 THEN 1805 ELSE val10 END),''val1'',''val11'',NULL,''val0'',''val9'',''Self Employed'',NULL,NULL,''val3'',(CASE WHEN ''val5'' = ''RESIDENCE'' THEN ''RadDrXS-val6-ERadDrX'' ELSE NULL END),(CASE WHEN ''val5'' = ''RESIDENCE'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val5'' = ''RESIDENCE'' THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN ''val5'' = ''RESIDENCE'' THEN ''val7'' ELSE NULL END),0,-1,NULL,NULL,(CASE WHEN ''val5'' = ''OFFICE'' THEN ''val2'' ELSE NULL END),(CASE WHEN ''val5'' = ''OFFICE'' THEN ''OadDrXS-val6-EOadDrX'' ELSE NULL END),(CASE WHEN ''val5'' = ''OFFICE'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val5'' = ''OFFICE'' THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN ''val5'' = ''OFFICE'' THEN ''val7'' ELSE NULL END),0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val5'' = ''RESIDENCE'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val5'' = ''OFFICE'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val12,val13,0,''val14'',''val15'','''')
Query473!C0L!procedure!C0L!select dashboard()
Query475!C0L!procedure!C0L!select autocut(val0,'val1',val2)
Query476!C0L!insert!C0L!INSERT INTO operation_history(user_id, operation, uuid, operationon,reptype) VALUES (val0, 'PHOTO SEEN', 'val1', 'val2','val3');
Query477!C0L!select!C0L!select s.displayname,s.portname,s.timeperiod,s.portfolio_id,m.mvcode,m.applno,m.customername,to_char(m.receivedate,'DD-MON-YYYY') as recdate,m.product,m.raddr1||coalesce(' '||m.raddr2,'')||coalesce(' '||m.raddr2,'') as raddr,m.companyname,m.oaddr1||coalesce(' '||m.oaddr2,'')||coalesce(' '||m.oaddr3,'') as oaddr,m.paddr1||coalesce(' '||m.paddr2,'')||coalesce(' '||m.paddr3,'') as paddr,(select verifiercode from verifier where verifier_id=m.resiverifier) as resiverifier,(select verifiercode from verifier where verifier_id=m.offverifier) as offverifier,(select verifiercode from verifier where verifier_id=m.propverifier) as propverifier,to_char(m.sdoneon,'DD-MON-YYYY HH24:mi:ss') as doneon,m.overallstatus from scan_mis s left join main_mainopr m on s.uuid=m.uuid where s.addedon > current_date val0 order by s.displayname,s.portname,s.timeperiod
Query478!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Residence Verification Report - MSME','Application ID','Product','First Applicant Name','Name of Co-Applicant - 1','Name of Co-Applicant - 2',upper(applno),upper(product),upper(customername),upper(field150) as coapp,upper(field2),'Name of Business',upper(mfield150_2),'Complete Residence Address you have visited',upper(coalesce(raddr1||' ','')||coalesce(raddr2||' ','')||raddr3),'Nearest Landmark of the customer residence address',upper(Field150_5),'Latitude/Longitude of the address (Capture the location of this address and mention the numbers of latitude and longitude)','Latitude No.','Longitude No.',coalesce((select trim(trailing '00' FROM latitude::text) from mnimble_messages_lat_long mcm where latitude <> 0 and longitude <> 0 and mcm.uuid=r.uuid and mcm.visit='R' order by mcm.uid limit 1),'NA') as latitude,coalesce((select trim(trailing '00' FROM longitude::text) from mnimble_messages_lat_long mcm where latitude <> 0 and longitude <> 0 and mcm.uuid=r.uuid and mcm.visit='R' order by mcm.uid limit 1),'NA') as longitude,'Details of your observation during visit','House No Plate (Y/N)','Borrower Name on name plate (Y/N)','Whether all borrower lives here? (Y/N)',upper(nameplate),upper(Field15_1),upper(Field15_2),'Confirm whether any of the borrower(s) lives at different address. If yes mention the second address also.',upper(Field150_4),'House Details','Kachha/Pukka/Tin','No of Rooms','Self-owned/Rented',(case upper(construction) WHEN 'OTHERS' THEN upper(constoth) ELSE upper(construction) END),upper(Field15_5),(case upper(rowner) WHEN 'OTHERS' THEN upper(owneroth) ELSE upper(rowner) END),'Name of the owner of this house you have visited',upper(Field30_10),'Permanent Address/ Native place address with pin code. Mention',upper(permadd),'Who is living at permanent Address?','Name','Relation with BO','Mobile No',upper(Field30_1),upper(Field30_20),upper(Field30_21),'Details of Electricity meters' as lblmeters,'Meter No' as lblmeterno,'Account No' as lblaccountno,upper(Field30_14) as meterno,upper(Field30_14) as accountno,'PERSONAL DETAILS','Met Person Name',upper(metperson),'Relationship with business owner',(case upper(metrela) WHEN 'OTHERS' THEN upper(metrealoth) ELSE upper(metrela) END),'No of years living at Current Address',((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'No of years living in the current city',((case when (yrscity<>'0' and yrscity<>'') then yrscity||' YEARS(S) ' else '' end)||(case when (mnthcity <> '0' and mnthcity <> '') then mnthcity||' MONTH(S)' else '' end)),'Qualification',upper(Field30_11),'No of Family member Staying in the house',totmem,'Marital Status',upper(maritial),'Spouse Name',upper(spsname),'No of Dependents',dependent,'Any Family member under medical Treatment (Yes/No)',upper(Field15_3),'No of child going to school',Field15_6,'Name of the school',upper(Field30_22),'LIVING STATNDARD - ECONOMIC INDICATORS','Refrigerator','Washing Machine','Color TV','Air Conditioner','Computer/Laptop',(case when upper(chkfield6)='X' then 'YES' else 'NOT SEEN' end) as refg,(case when upper(chkfield7)='X' then 'YES' else 'NOT SEEN' end) as washm,(case when upper(chkfield8)='X' then 'YES' else 'NOT SEEN' end) as ctv,(case when upper(chkfield9)='X' then 'YES' else 'NOT SEEN' end) as ac,(case when upper(chkfield10)='X' then 'YES' else 'NOT SEEN' end) as pc,'Two-Wheeler ownership filled the registration no','Four-Wheeler ownership filled the registration no','CC TV installed at Home (Yes/No)','Property Ownership',upper(Field30_2),upper(Field30_3),(case when upper(chkfield11)='X' then 'YES' else 'NOT SEEN' end) as cctv,(case upper(rowner) WHEN 'OTHERS' THEN upper(owneroth) ELSE upper(rowner) END),'NEIGHBOR DETAILS','Neighbor Check(2)','Any Relation with the Customer','Address of the Neighbor','Contact No','Number Of years Customer is living in the locality as per Neighbor','Any adverse comments or observation by neighbor','Name of The Neighbor Met 1',upper(Field30_4),upper(Field150_1),upper(Field30_5),upper(Field30_6),upper(Field30_12),'','','','','','','Name of The Neighbor Met 1',upper(Field30_7),upper(Field150_2),upper(Field30_8),upper(Field30_9),upper(Field30_13),'','','','','','','Observation:- (Any notice at Bank/Re-Possession and Any Others)',upper(Field150_3),'Any Recovery/ SARFAESI Notice at house from any Bank (Yes/No)',upper(Field15_4),'Locality and Affiliations','Upper/Middle/Lower Middle/Lower/Slum',(case upper(locality) WHEN 'OTHERS' THEN upper(locaoth) ELSE upper(locality) END),'Negative or Dominated Area (Yes/No)',(case upper(locality) WHEN 'NEGATIVE AREA' THEN 'YES' ELSE 'NO' END),'Affiliation with political or Religious Entity (Yes/No)',upper(political)||(case upper(political) WHEN 'YES' THEN ' - '||upper(politicdet) ELSE '' END),'VERIFIERS COMMENT','Overall Remarks',upper(remarks),'Final Status',upper(status),'Date & Time of Visit',visitdate||' '||visittime,'','Verifier declaration','This is to declare that I have personally visited the borrower on the above-mentioned address, and all the information provided is correct to best of my understanding and knowledge','Signature of Borrower','','Signature of Verifier',upper(customername),'',upper(rvername),'','','','In case of Agency:',upper(r.portsupervisor),'Agency Manager Name:','images/signs/'||sdoneby||(case compcode when 'mcrc' then '' else compcode end)||'.png' as seal,'Signature and stamp of Agency:',mvcode||'-'||applno||'-'||customername||'-'||coalesce(metperson,'NA')||'-'||(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end)||'-RES-'||status as bcode,(case when (portfolio_id=142 or portfolio_id=152) then 'RESIDENCE PHOTOS' else '{SK!PTH15D@TA}' end),(case when (PORTFOLIO_ID=142 OR PORTFOLIO_ID=152) then sublist('select docpath::text as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query479!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'Discreet Business Profile Verification','Business Visit Report:','Business Name',upper(companyname),'Applicant Name',upper(customername),'Application No.',upper(applno),'Business Address',upper(coalesce(oaddr1||' ','')||coalesce(oaddr2||' ','')||oaddr3),'Business Name as mentioned on Sign board',upper(Field150_1),'GST number mentioned on Sign board if Any',upper(Field30_7),'Owned/Rented',(case upper(ownership) WHEN 'OTHERS' THEN upper(owneroth) ELSE upper(ownership) END),'Date & Time of Visit',visitdate||' '||visittime,'Nature of business',upper(proddealt),'Latitude & longitude',coalesce((select trim(trailing '00' FROM latitude::text)||','||trim(trailing '00' FROM longitude::text) from mnimble_messages_lat_long mcm where latitude <> 0 and longitude <> 0 and mcm.uuid=o.uuid and mcm.visit='O' limit 1),'NA'),'Remarks if any','NA','Details of Verbal verified from Neighbour:','Right Side Neighbour Name',upper(Field30_1),'Left Side Neighbour Name',upper(Field30_2),'Neighbour Name & Phone no Contacted',upper(Field150_2),'Known Since',upper(Field30_3),'How old is this business',((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob <> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)),'Who is the owner of this business',upper(Field50_1),'From how many years he is doing business on this place',((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob <> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)),'No. of Employee seen',upper(Field30_6),'Any Collection agents visit for Loan recovery',upper(Field30_4),'Any SARFAESI/Legal Notice at Shop from Any Bank',upper(Field30_5),'Any other observations','NA','Verifier Remarks',verremarks,'PHOTOS',(case portfolio_id when 152 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end),'SUPERVISOR''S COMMENT','Overall Remarks',upper(remarks),'FINAL STATUS',upper(status),'Verifier''s Name & Signature','Agency Managers Sign',upper(overname),'images/signs/'||sdoneby||(case compcode when 'mcrc' then '' else compcode end)||'.png',mvcode||'-'||applno||'-'||customername||'-OFF-'||status,upper(sdonebyname) from banklist_main_office o where (val0) val1
Query480!C0L!select!C0L!select opt_value_id, val_description, opt_value FROM public.options_values where isactive = 1 order by val_description;
Query481!C0L!select!C0L!select om.opt_map_id,ov.opt_value_id,ov.val_description,ov.opt_value from options_mapping om, options_values ov where om.opt_value_id=ov.opt_value_id and om.portfolio_id=val0 and om.option_id=5 order by val_description
Query482!C0L!procedure!C0L!select addremoveproduct('val0',val1,val2)
Query483!C0L!select!C0L!select verifiercode,addr,oprrisk,portname,customername,applno,to_char(receivedate,'DD/MON/YYYY') as recdate,batch,visit,oprname,downloaded from current_visit_mis where doneon > CURRENT_DATE and (val0) order by verifiercode,portname,recdate
Query484!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'RESIDENCE VISIT PHOTOGRAPHS' as title,'File No' as lblapplno,applno,'Receive Date' as lblrecdate,to_char(receivedate,'DD-MON-YYYY') as receivedate,'Applicant Name' as lblcustomername,upper(customername) as customername,'Address' as lbladdress,coalesce(raddr1||' '||raddr2||' '||raddr3,'') as address,'Visit Date' as lblvisitdate,visitdate,'Visit Time' as lblvisittime,visittime,'Latitude & Longitude' as lbllatlong,getlatlong(r.uuid,'latitude','R')||','||getlatlong(r.uuid,'longitude','R') as latlong,'PHOTOS' as lblphoto,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') as photographs from banklist_main_residence r where (val0) val1
Query485!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'OFFICE VISIT PHOTOGRAPHS' as title,'File No' as lblapplno,applno,'Receive Date' as lblrecdate,to_char(receivedate,'DD-MON-YYYY') as receivedate,'Applicant Name' as lblcustomername,upper(customername) as customername,'Address' as lbladdress,coalesce(companyname||' '||oaddr1||' '||oaddr2||' '||oaddr3,'') as address,'Visit Date' as lblvisitdate,visitdate,'Visit Time' as lblvisittime,visittime,'Latitude & Longitude' as lbllatlong,getlatlong(o.uuid,'latitude','O')||','||getlatlong(o.uuid,'longitude','O') as latlong,'PHOTOS' as lblphoto,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') as photographs from banklist_main_office o where (val0) val1
Query486!C0L!select!C0L!select portname,mvcode,upper(applno) as applno,upper(customername) as customername,to_char(receivedon,'dd-MON-yyyy HH24:mi:ss') as receivedon,rv,ov,pv,trim(coalesce('RV:'||rveri||' ','')||coalesce('OV:'||overi||' ','')||coalesce('PV:'||pveri||' ','')) as verifier,trim(coalesce('RV:'||rpenremarks||' ','')||coalesce('OV:'||openremarks||' ','')||coalesce('PV:'||ppenremarks||' ','')) as pendingremarks from scanning_grid where sdone = 0 and portfolio_id <> 67 and portfolio_id <> 81 and portfolio_id <> 77 and (val0) order by portname,receivedon
Query487!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,(CASE WHEN portfolio_id=18 THEN 'SAMMAAN' ELSE upper(aliasname) END)||'-RESIDENCE' as title,'Application Reference No' as label1,upper(applno) as applnos,'Agency Name' as label2,(case when compcode='arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' else upper(maincompany) end) as label3,'Applicant Name' as label4,upper(customername) as customername,'Residence Address' as label5,(upper(raddr1)||' '||coalesce(upper(raddr2),'')||' '||upper(raddr3)) as raddr, 'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Landmark' as label7,upper(field50_2) as landmark,'Date & Time' as label8,(visitdate||' '||upper(visittime)) as visitdate,'The following information is to be obtained from the applicant or any body residing at the address' as label9,'Met person' as mperson,upper(metperson) as metperson,'Relation with applicant' as rellbl,(case when metrela ='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'Date of Birth / Age of applicant' as label10,upper((case when dob is null then age else dob end)) as dob,'Years lived at current resi' as label11,((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Residence Status' as label12,upper((case when rowner='Others' then owneroth else rowner end)) as rowner,'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'Educational Qualification' as label13,upper(field30_17) as qualification,'Marital Status' as label14,upper(maritial) as maritial,'No of family members' as label15, totmem,'No of family members working' as label16,earning,'No of dependents/children' as label17,dependent,'Is spouse working' as label18,upper(spswork) as spswork,'If yes, then detail' as empspdel,(case when spswork ='Yes' then 'Designation-'||upper(spsdesign)||', Company -'||upper(spscomp)||' '||upper(spsempdet) else 'NA' end) as spsempdet,'Any credit card' as label19,upper(field30_2) as creditcard,'Card No' as label20,upper(field30_3) as cardno,'Card Limit' as label20,upper(field30_12) as limit,'Issuing Bank' as label21,upper(field50_3) as issuingbank,'Expiry date' as label22, field30_10 as expirydate,'End user of asset' as label22,upper(field30_11) as enduser,'Present Vehicle' as label23,upper(field30_6) as pvehicle,'Loan No.' as label24,upper(field30_7) as loanno,'Asset' as label25,upper(field50_4) as asset,'EMI' as label26,upper(field30_8) as emi,'The following is based on verifier''s observation' as label26,'How co-operative is the customer' as label27,(case when custbehav='-1' then 'NA' else upper(custbehav) end) as custbehav,'Neighbour reference' as label28,(case when field30_9 ='-1' then 'NA' else upper(Field30_9) end) as neighref,'Name of the neighbour' as label29,upper(fieldtext_1) as neighrem,'Name verified from' as label30,(case when field30_5='-1' then 'NA' else upper(field30_5) end) as nverifiedfrm,(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as repdoneby,'Type of Residence' as label31,(case when restype='-1' then 'NA' when restype='Others' then upper(typeoth) else upper(restype) end) as restype,'Location of Residence' as label32,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Ease of location' as label33,(case when raccess='-1' then 'NA' else upper(raccess) end) as access,'Construction of Residence' as label34,(case when construction='-1' then 'NA' when construction='Others' then upper(constoth) else upper(construction) end) as construction,'Exteriors of the residence' as label35,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Carpet area of the residence' as label36,upper(carpetarea) as carpetarea,'Scanned by: '||upper(sdonebyname) as sdonebyname,'Interiors of the residence' as label37,(case when interior='-1' then 'NA' else upper(interior) end) as interior,'Assets seen at the residence' as label38,upper(field150_1) as assetseen,'Whether picture of political party seen (Y) or (N)' as label39,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as political,('VERIFIER REMARKS: - '||upper(verremarks)||'RESIDENCE ADDRESS PROOF : '||upper(proofdet)) as verrem,'If the applicant address is locked the following information is to be obtained from the neighbour' as label40,'Does the applicant stay at the given address' as label41,upper(field30_13) as appstay,'Approximate age' as label42,upper(field30_14) as appxage,'Approximate time when the applicant is at home' as label43,upper(field30_15) as appxtime,'No of family members of the applicant' as label44,upper(field30_16) as nofammem,'Residence Status' as label45,upper(status) as status,'Reason' as label46,(case when negreason='No Such Person' then 'Applicant never stayed at the provided address' when negreason='Shifted' then 'Applicant shifted from the address' when negreason='Applicant Refused for Loan and to Provide Any Details' or negreason='Not Interested' then 'Applicant refused to take Loan/refused to provide any information' when negreason='Met Family Member Refused for Details' then 'Family member met but refused to provide any details' when negreason='Entry not allowed' or negreason='House Found Lock' then 'Entry not permitted or House found locked and stay details could not be confirmed' when negreason='Staying at Relatives House or In Bachelor Accommodation' then 'Applicant staying at Relative''s house or Bachelor''s accommodation' when negreason='Political link established/ connection' then 'Political affiliation' when negreason='Wrong Address' or negreason='Incomplete Address' then 'Address incomplete or in-correct' when negreason='Address Not Traceable' then 'Address not traceable-Customer not Contactable' when negreason='-1' then 'NA' else negreason end) as negreason,('Remarks : '||upper(remarks)) as rem,'Supervisor' as label47,portsupervisor,'' as blankrow,'Agency Verifier','Agency Supervisor',(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as singature,rvername,upper(portsupervisor),'',(case when compcode='arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' else upper(maincompany) end) as maincomp,(case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 or portfolio_id=175 or portfolio_id=193 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 or portfolio_id=175 or portfolio_id=193 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs,upper(status) as blk6 from banklist_main_residence r where (val0) val1
Query488!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,(CASE WHEN portfolio_id=18 THEN 'SAMMAAN' ELSE upper(aliasname) END)||'-OFFICE' as title,'' as blank1,'Product Details' as label1,upper(product) as sproduct,'Application/Reference No.' as label2,upper(applno) as applnos,'MV Code' as label3,upper(mvcode) as mvcode,'Applicant Name' as label4,upper(customername) as customername,'Office Address' as label5,(upper(oaddr1)||' '||coalesce(upper(oaddr2),'')||' '||upper(oaddr3)) as oaddr,'Address Confirmed' as label6,upper(addrconfd) as addrconfd,'Phone no' as label7,ophone,'Extension' as label8,extension,'Mobile/Pager' as label9,mobileno,'Designation of the applicant' as label10,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else appdesign end) as appdesign,'Date & Time of visit' as label11,visitdate||' '||visittime as visdate,'Person Met' as label12,upper(metperson) as metperson,'Designation of met person' as mdesigp,(case when metrela='-1' then 'NA' when metrela='Others' then upper(metrealoth) else upper(metrela) end) as metrela,'No of years in present business' as label13,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Name of the company/business' as label14,upper(companyname) as companyname,'Any visiting card obtained' as label15,(case when field30_1='-1' then 'NA' else upper(field30_1) end) as viscard,'Type of business' as label16,(case when busitype='-1' then 'NA' else upper(busitype) end) as busitype,'Nature of business' as noblbl,(case when compprof='Others' then upper(compprofoth) else upper(compprof) end)as nob,'Product dealt with' as label17,upper(proddealt) as proddealt,'Office Ownership' as label18,(case when ownership='-1' then 'NA' when ownership='Others' then upper(owneroth) else upper(ownership) end) as ownership,'No of employees seen' as label18,(case when field30_2='-1' then 'NA' else field30_2 end) as empseen,'No of branches' as label19,totbranch,'Average monthly turnover' as label20,upper(turnover) as turnover,'No of customers/day' as label21,custperday,'Type of job' as label22,(case when jobtype='-1' then 'NA' else upper(jobtype) end) as jobtype,'Applicant working as' as label23,(case when appdesign='-1' then 'NA' when appdesign='Others' then upper(appdesignoth) else upper(appdesign) end) as workas,'Job transferable' as label24,(case when transferable='-1' then 'NA' else upper(transferable) end) as transferable,'Previous employment details if working<1 year in current employment' as label25,upper(prevjobdet)||'-'||prevjobyrs as prevjobdet,'' as blank12,'Applicant name verified from' as label26,(case when field30_19='-1' then 'NA' else upper(field30_19) end) as nmverfrm,(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as repdoneby,'Type of office' as label27,(case when busitype='-1' then 'NA' else upper(busitype) end) as offtype,'Locality of office' as label28,(case when locality='-1' then 'NA' when locality='Others' then upper(locaoth) else upper(locality) end) as locality,'Approximate area of office' as label29,upper(field30_3) as carpetarea,'Business board seen outside office' as label30,(case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Construction of office' as label31,(case when field30_22='-1' then 'NA' else upper(field30_22) end) as construction,'Exteriors of the office' as label32,(case when field30_4='-1' then 'NA' else upper(field30_4) end) as exterior,'Scanned by: '||upper(sdonebyname) as repdonebyname,'Interiors of the office' as label33,upper(field150_1) as setup,'Ease of locating office' as easelbl,(case when easeloc='-1' then 'NA' else upper(easeloc) end) as easeloc,'Business activity level' as bslbl,(case when busiact='-1' then 'NA' else upper(busiact) end) as busiact,'No of employees sighted in premises' as noemplbls,field30_2,'No of customers seen' as nocust,custseen,'Whether any display/affliation to political party seen' as polblb,(case when political='-1' then 'NA' when political='Yes' then upper(political)||'-'||upper(politicdet) else 'NO' end) as poldet,'Items seen in premises' as lblitmsn,upper(field150_1) as ofset, 'Verifier''s Remarks :' as label34,upper(verremarks) as verremarks,'Office Status' as label35,upper(status) as status,'Negative Reason' as label36,(CASE WHEN negreason='New Sign Board Seems Like Made for Verification' THEN 'New Sign Board (Seems made for showing business only) / Suspicious existence of Office Set up' WHEN negreason='Business Belongs to Someone Else' THEN 'Provided business details does not belong to applicant' WHEN negreason='Shifted' THEN 'Applicant shifted from the address' WHEN negreason='No Business / Office Setup' THEN 'No office / business set up observed at office /shop address' WHEN negreason='Applicant Refused for Loan and to Provide Any Details' THEN 'Applicant refused to take Loan/refused to provide any information' WHEN negreason='Met Family Member Refused for Details' THEN 'Family member met but refused to provide any details' WHEN negreason='Entry not allowed' THEN 'Entry not permitted or House found locked and stay details could not be confirmed' WHEN negreason='No Business / Office Setup' THEN 'No business set up (in case of Residence cum office cases) - Can be marked Positive depending on the business /work of applicant where office address provided is same as residence address- for e.g.: Contract works etc.' WHEN negreason='Politically Connected' THEN 'Political affiliation' WHEN negreason='Incomplete Address' THEN 'Address incomplete or in-correct' WHEN negreason='Address Not Traceable' THEN 'Address not traceable-Customer not Contactable' when negreason='-1' then 'NA' else negreason end) as negreason,'Supervisor Remarks :' as label37,upper(remarks) as remarks,'Supervisor' as label38,upper(portsupervisor) as scannedby,'' as blankrow,'Agency Verifier','Agency Supervisor',(case when portfolio_id=116 or portfolio_id=119 or portfolio_id=115 then 'images/signs/'||sdoneby||'arvee.png' else 'images/signs/'||sdoneby||'.png' end) as singature,overname,upper(portsupervisor),'',(case when compcode='arvee' then 'ARVEE BIZPRO SOLUTIONS PVT LTD' else upper(maincompany) end) as maincomp,(case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 or portfolio_id=175 or portfolio_id=193 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=142 or portfolio_id=108 or portfolio_id=18 or portfolio_id=107 or portfolio_id=175 or portfolio_id=193 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs,upper(status) as blk6 from banklist_main_office o where (val0) val1
Query489!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id, 'images/port/'||portfolio_id::text||'.png','HBL Global - a division of HDB Financial Services Limited','CONTACT POINT VERIFICATION REPORT','Name of the Applicant',upper(customername),'Employee Code',upper(Field30_14),'Designation',upper(r.design),'Location',upper(Field30_15),'Name of the Mentor',upper(Field30_16),'Cost Code',upper(Field30_17),'Appointment letter Ref. No',upper(Field30_18),'Met / Spoke to applicant at Residence Address',upper(r.metperson)||coalesce(' ('||(CASE WHEN r.metrela='Others' THEN upper(r.metrealoth) ELSE upper(r.metrela) END)||')','') as metperson,raddr1||coalesce(' '||raddr2,'')||coalesce(' '||raddr3,'') as address,'Pincode:',rpincode,'Tel. No:',mobileno,'','Residence Since',((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)) as stay,'Staying with',upper(Field50_7),'Ownership of residence',(CASE WHEN upper(rowner)='OWNED BY PARENTS' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Parent Owned',(CASE WHEN upper(rowner)='RENTED' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Rented',(CASE WHEN upper(rowner)='PAYING GUEST' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Paying Guest',(CASE WHEN upper(rowner)='SHARED ACCOMMODATION' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Shared Accommodation','Type of residence',(CASE WHEN upper(restype)='HUTMENT' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Hut',(CASE WHEN upper(restype)='CHAWL' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Chawl',(CASE WHEN upper(restype)='FLAT/PART OF INDEPENDENT' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Flat',(CASE WHEN upper(restype)='INDEPENDENT HOUSE' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Building' as lblbdlg,'Area of residence',(CASE WHEN upper(locality)='SLUM' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Slum',(CASE WHEN upper(locality)='LOWER MIDDLE CLASS' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Lower Middle',(CASE WHEN upper(locality)='MIDDLE CLASS' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Middle Class',(CASE WHEN upper(locality)='UNDERDEVELOPED' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Underveloped' as udvl,(CASE WHEN upper(locality)='NEGATIVE AREA' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Negative Area' as negarea,(CASE WHEN upper(locality)='UPPER MIDDLE' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Upper Middle' as umc,'Residence Location',(CASE WHEN upper(raccess)='EASY' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Easy',(CASE WHEN upper(raccess)='DIFFICULT' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Difficult',(CASE WHEN upper(raccess)='UNTRACEABLE' THEN 'images/wticked.png' ELSE 'images/wuticked.png' END),'Untraceable','','Contacted person at time of Visit','At Residence:',upper(metperson),'Relationship:',(CASE WHEN r.metrela='Others' THEN upper(r.metrealoth) ELSE upper(r.metrela) END) as metrela,'Family Background','No. of Members:',(CASE WHEN totmem='0' THEN 'NA' ELSE totmem END) as totmem,'Earning Member details:',(CASE WHEN earning='0' THEN 'NA' ELSE totmem END) as earning,'Occuptation details of the family members',upper(Fieldtext_3),'Feedback from neighbours','Name:',upper(fieldtext_4),'Residing Since:',upper(Field30_20),'Neighbour`s Occupation:',upper(Field50_8),'Tel. No.(R):',upper(Field30_21),'Tel. No.(O):',upper(Field30_22),'Agency Remark',(CASE WHEN upper(status)='POSITIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'POSITIVE',(CASE WHEN upper(status)='NEGATIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEGATIVE','','images/port/'||portfolio_id::text||'.png','Third Party Confirmation','Pervious Employment Details','Name of The Organization',upper(Field150_1),'Address',upper(Field150_2),'Pincode',upper(Field15_1),'Tel No.',upper(Field15_2),'Period of Employment', 'FROM DATE:',upper(Field15_3),'TO DATE:',upper(Field15_4),'Contacted On','DATE:',upper(Field15_5),'TIME:',upper(Field15_6),'Name & Designation of the person contacted',upper(Field30_1),upper(Field30_2),'Feedback of the Applicant',(CASE WHEN upper(Field30_3)='POSITIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'POSITIVE',(CASE WHEN upper(Field30_3)='NEGATIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEGATIVE',(CASE WHEN upper(Field30_3)='NEUTRAL/NOT REACHABLE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEUTRAL/NOT REACHABLE','Remarks',upper(Field250_1),'','Feedback from Professional Reference 1','','Name:',upper(Field50_1),'Relationship:',upper(Field30_4),'Current Occupation :',upper(Field30_5),'Current Organisation:',upper(Field50_2),'Contact No.',upper(Field15_7),'Feedback from References :',(CASE WHEN upper(Field30_6)='POSITIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'POSITIVE',(CASE WHEN upper(Field30_6)='NEGATIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEGATIVE',(CASE WHEN upper(Field30_6)='NEUTRAL/NOT REACHABLE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEUTRAL/NOT REACHABLE','Remarks',upper(Field250_2),'','Feedback from Professional Reference 2','','Name:',upper(Field50_3),'Relationship:',upper(Field30_7),'Current Occupation :',upper(Field30_8),'Current Organisation:',upper(Field50_4),'Contact No.',upper(Field15_8),'Feedback from References :',(CASE WHEN upper(Field30_10)='POSITIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'POSITIVE',(CASE WHEN upper(Field30_10)='NEGATIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEGATIVE',(CASE WHEN upper(Field30_10)='NEUTRAL/NOT REACHABLE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEUTRAL/NOT REACHABLE','Remarks',upper(Field250_3),'','Feedback from Professional Reference 3','','Name:',upper(Field50_5),'Relationship:',upper(Field30_11),'Current Occupation :',upper(Field30_12),'Current Organisation:',upper(Field50_6),'Contact No.',upper(Field15_9),'Feedback from References :',(CASE WHEN upper(Field30_13)='POSITIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'POSITIVE',(CASE WHEN upper(Field30_13)='NEGATIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEGATIVE',(CASE WHEN upper(Field30_13)='NEUTRAL/NOT REACHABLE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEUTRAL/NOT REACHABLE','Remarks',upper(Fieldtext_2),'','Final Opinion',(CASE WHEN upper(status)='POSITIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'POSITIVE',(CASE WHEN upper(status)='NEGATIVE' THEN 'images/tickbox.jpg' ELSE 'images/blankbox.jpg' END),'NEGATIVE','Remarks',upper(remarks),'','CPV Executive Name',upper(rvername),'Date & Time',to_char(sdoneon,'DD-MON-YYYY HH24:mi:ss'),'Cross Checked by',upper(sdonebyname),(case when portfolio_id=156 then 'images/signs/'||sdoneby||'.png' else 'images/signs/'||sdoneby||'arvee.png' end),'','AGENCY STAMP & SIGNATURE',mvcode||'-'||applno||'-'||customername||'-RES-'||status as barcode,'AFFIX PHOTOGRAPH OF THE VISIT',sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') as photographs from banklist_main_residence r where (val0) val1
Query490!C0L!procedure!C0L!select wfhcomputers(val0,'val1')
Query491!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id ,'images/shreram_logo_blank.png' as logo,(case when portfolio_id=52 then (case when upper(product)='HOME LOAN' then 'Shriram Housing Finance Limited - (Residence)' when upper(product)='DSA' then 'Shriram Finance Limited/ Shriram Housing Finance Limited - (Residence)' when upper(product)='SCUF' then 'Shriram Finance Limited - (Residence)' else 'Contact Point Verification (Residence)' end) else 'Residence Verification Report' end) as title,'Date:',visitdate,' Time:',visittime,'Branch code & Name:','CP'||'(Connaught Place)',' ','Distance from the branch:',' ','Applicant Name / Residence address:',upper(customername)||' ,Address- '||upper(raddr),'Native place & address:',upper(permadd),'Phone Numbers/ mobile nos:',(select mobileno from main where uuid=r.uuid),'Other earning family members:',earning,'No of family members & relationship:',totmem,'If less than 1 year then earlier residence address:',' ','Person met:',upper(metperson),'No of years at same residence:',coalesce(yrsadd,'0')||' YEARS AND '||coalesce(mnthadd,'0')||' MONTHS','Person relationship to business:',(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end),'Ownership/Rental Proof' as label12a,'NOT SHOWN' as rownera,'','Description of Residence','Residence:',(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end),'Accessibility:',' ','If rented rent paid:',(case when upper(rowner)='RENTED' then upper(owneroth) else '' end),(case when upper(accmode)='BY ALL MODES' then 'images/tick.gif' else 'images/untick.jpg' end),'By all means of transport',(case when upper(accmode)='BY TWO WHEELER' then 'images/tick.gif' else 'images/untick.jpg' end),'TW',(case when upper(accmode)='BY FOUR WHEELER' then 'images/tick.gif' else 'images/untick.jpg' end),'Car',(case when upper(accmode)='BY ONFOOT' then 'images/tick.gif' else 'images/untick.jpg' end),'On Foot','Type of Residence','Area in Sq ft. / no of rooms','Locality of visiting office',(case when upper(restype)='INDEPENDENT HOUSE' then 'images/tick.gif' else 'images/untick.jpg' end),'Independent house',UPPER(carpetarea),(case when upper(locality)='COMMERCIALAS' then 'images/tick.gif' else 'images/untick.jpg' end),'Commercial',(case when upper(restype)='BUNGALOW' then 'images/tick.gif' else 'images/untick.jpg' end),'Bungalow',(case when upper(restype)='BUNGALOW' then upper(carpetarea) else '' end),(case when upper(locality)='RESIDENTIALS' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential',(case when upper(restype)='FLAT/PART OF INDEPENDENT' then 'images/tick.gif' else 'images/untick.jpg' end),'Flat',(case when upper(restype)='FLAT/PART OF INDEPENDENT' then upper(carpetarea) else ' ' end),(case when upper(locality)='RESIDENTIAL CUM COMMERCIALS' then 'images/tick.gif' else 'images/untick.jpg' end),'Residential cum commercial',(case when upper(restype)='CHAWL' then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl area',(case when upper(restype)='CHAWL' then UPPER(carpetarea) else ' ' end),(case when upper(locality)='OTHERSS' then 'images/tick.gif' else 'images/untick.jpg' end),'Others (Please specify) ',(case when upper(locality)='OTHERSS' then upper(locaoth) else ' ' end),(case when upper(restype)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Others (Please specify) ',(case when upper(restype)='OTHERS' then upper(typeoth) else ' ' end),'Landmark:',upper(landmark),' ','Locality details ','Locality type ',(case when upper(locality)='POSH' then 'images/tick.gif' else 'images/untick.jpg' end),' Posh',(case when upper(locality)='UNDEVELOPED' then 'images/tick.gif' else 'images/untick.jpg' end),'Undeveloped',(case when upper(locality)='UPPER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Upper middle class ',(case when upper(locality)='TROUBLE PRONE' then 'images/tick.gif' else 'images/untick.jpg' end),'Trouble prone ',(case when upper(locality)='MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Middle class',(case when upper(locality)='UNAUTHORIZED' then 'images/tick.gif' else 'images/untick.jpg' end),'Unauthorized ',(case when upper(locality)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'Lower middle class ',' ',' ','Other Details ','Furnishing ','Durables visible ','Visibility:',(case when upper(furlevel)='HIGH' then 'images/tick.gif' else 'images/untick.jpg' end),'High',(case when upper(chkfield1)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'TV',' ',(case when upper(furlevel)='MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Medium',(case when upper(chkfield2)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Fridge','Name plate -',upper(platedet),(case when upper(furlevel)='LOWER MIDDLE' then 'images/tick.gif' else 'images/untick.jpg' end),'Low',(case when upper(chkfield3)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'AC',' ',(case when upper(furlevel)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(chkfield4)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Washing M/C','House No:',' ',' ',(case when upper(chkfield5)='X' then 'images/tick.gif' else 'images/untick.jpg' end),'Music System',' ',' ',(case when upper(field50_15)='OTHERS' then 'images/tick.gif' else 'images/untick.jpg' end),'Other (Specify)',' ','Is Permanent Gas Connection Available',upper(Field15_1),'Gas Card Number',upper(Field30_16),'Gas Agency Name',upper(Field50_2),'Count of TW',upper(Field15_2),'Count of 4W Vehicle',upper(Field15_3),'CPV comments: ',upper(remarks),'Any issues observed:',upper(riskremarks),'Road map to applicant residence from SHFL office:',' ',' ','CPV Results ','CPV Assessment ','Neighborhood Feedback ',(case when upper(status)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Positive',(case when upper(field50_14)='VERY GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Very Good',(case when upper(field50_14)='FAIR' then 'images/tick.gif' else 'images/untick.jpg' end),'Fair',(case when upper(status)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'Negative',(case when upper(field50_14)='GOOD' then 'images/tick.gif' else 'images/untick.jpg' end),'Good',(case when upper(field50_14)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',' ','Name of CO ( Maker):',upper(sdonebyname),'Signature with date:',upper(sdonebyname)||' ,'||sdoneon,'Name of verifier:',upper(rvername),'Signature with date: ',upper(rvername)||' '||sdoneon,'images/signs/'||sdoneby||(case when compcode='mcrc' then '' else compcode end)||'.png',(case when portfolio_id=159 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=159 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs from banklist_main_residence r where (val0) val1
Query492!C0L!select!C0L!select uuid,portname,mvcode,applno,customername,apptype,address,visit,to_char(receivedate,'DD-MON-YYYY') as recdate,ocl, distancefromlimit FROM oclcases WHERE (val0)
Query493!C0L!procedure!C0L!select updateoclstatus('val0','val1','val2',val3,val4,val5)
Query494!C0L!insert!C0L!Insert into main(portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',val1,''val0'',''val3'',NULL,''val4'',''Applicant'',''val2'',NULL,NULL,''val12'',(CASE WHEN length(''val5'') > 2 THEN ''RadDrXS-val5-ERadDrX'' ELSE NULL END),(CASE WHEN length(''val5'') > 2 THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN length(''val5'') > 2 THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN length(''val10'') = ''1'' THEN ''val6'' ELSE NULL END),0,-1,NULL,NULL,(CASE WHEN length(''val11'') = ''1'' THEN ''val7'' ELSE NULL END),(CASE WHEN length(''val8'') > 2 THEN ''OadDrXS-val8-EOadDrX'' ELSE NULL END),(CASE WHEN length(''val8'') > 2 THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN length(''val8'') > 2 THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN length(''val11'') = ''1'' THEN ''val9'' ELSE NULL END),0,-1,NULL,NULL,NULL,''val13'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val10'' = ''1'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val11'' = ''1'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,''val14'',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val15,val16,0,''val17'',''val18'','''')
Query495!C0L!procedure!C0L!select gettrackerconfigs()
Query496!C0L!select!C0L!SELECT colindex, rowindex, dataindex, celltype, datagroup, border, forecolor, backcolor, rowspan, colspan, fontsize, fontfamily, fontstyle FROM public.tracker_template_sheet_layout WHERE sheet_id = val0 ORDER BY rowindex
Query497!C0L!select!C0L!select row_number() over(order by m.receivedate),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,m.receivedate,m.applno,m.customername,'RESIDENCE REMARKS: '||r.remarks as remarks,'RESIDENCE' as visit,'Date: val4' as dataperiod from main_mainopr m,residence r,portfolio_bank_branch p where m.uuid=r.uuid and m.bank_branch_id=p.portbranch_id and m.portfolio_id=val0 and m.sdoneon >= 'val2' and m.sdoneon < TO_DATE('val2','YYYY/MM/DD')+ interval '1' day and r.risklevel='4' and sdone=1 and m.rv=1 union all select row_number() over(order by m.receivedate),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,m.receivedate,m.applno,m.customername,'OFFICE REMARKS: '||r.remarks as remarks,'OFFICE' as visit,'Date: val2' as dataperiod from main_mainopr m,office r,portfolio_bank_branch p where m.uuid=r.uuid and m.bank_branch_id=p.portbranch_id and m.portfolio_id=val0 and m.sdoneon >= 'val2' and m.sdoneon < TO_DATE('val2','YYYY/MM/DD')+ interval '1' day and r.risklevel='4' and sdone=1 and m.ov=1
Query498!C0L!select!C0L!select row_number() over(order by m.receivedate),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,m.receivedate,m.applno,m.customername,'RESIDENCE REMARKS: '||r.remarks as remarks,'RESIDENCE' as visit,'Date: val4' as dataperiod from main_mainopr m,residence r,portfolio_bank_branch p where m.uuid=r.uuid and m.bank_branch_id=p.portbranch_id and m.portfolio_id=val0 and m.sdoneon >= 'val2' and m.sdoneon < TO_DATE('val2','YYYY/MM/DD')+ interval '1' day and r.risklevel='4' and sdone=1 and m.rv=1 union all select row_number() over(order by m.receivedate),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,m.receivedate,m.applno,m.customername,'OFFICE REMARKS: '||r.remarks as remarks,'OFFICE' as visit,'Date: val2' as dataperiod from main_mainopr m,office r,portfolio_bank_branch p where m.uuid=r.uuid and m.bank_branch_id=p.portbranch_id and m.portfolio_id=val0 and m.sdoneon >= 'val2' and m.sdoneon < TO_DATE('val2','YYYY/MM/DD')+ interval '1' day and r.risklevel='5' and sdone=1 and m.ov=1
Query499!C0L!select!C0L!select row_number() over(order by m.portfolio_id),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,sum(rv) as rv,sum(ov) as ov from main_mainopr m,portfolio_bank_branch p where m.bank_branch_id=p.portbranch_id and m.portfolio_id=val0 and m.sdoneon >= 'val2' and m.sdoneon < TO_DATE('val2','YYYY/MM/DD')+ interval '1' day group by m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product
Query500!C0L!procedure!C0L!select mnimbleotp()
Query501!C0L!select!C0L!SELECT uid, to_char(fordate,'DD/MM/YYYY') as fordate, reason, useintatcalcd, useintatcalcv, addedby, isdeleted FROM public.holidays WHERE uid = val0
Query502!C0L!procedure!C0L!select updateholiday(val0,'val1','val2',val3,val4,val5,val6)
Query503!C0L!select!C0L!SELECT uid, to_char(fordate,'DD-MON-YYYY') as fordate, reason, useintatcalcd, useintatcalcv, addedby, isdeleted FROM public.holidays WHERE isdeleted = 0
Query504!C0L!procedure!C0L!select updateconcallstatus(val0,'val1','val2')
Query505!C0L!procedure!C0L!select getconcallstatus('val0','val1')
Query506!C0L!procedure!C0L!select starreportfigures('val0',val1,'scanning')
Query507!C0L!select!C0L!select '*Mv Code:* '||mvcode||'
*Customer Name:* '||upper(customername)||'
*Product:* '||upper(product)||'
*Date:* '||to_char(receivedate,'DD-MON-YYYY')||'
*Contact No:* '||mobileno||'
*Address:* '||upper(addr)||'
*Remarks:* '||remarks,uid from fraud_bulletin
Query508!C0L!update!C0L!update negative set boradcasted = 1 where uid=val0
Query509!C0L!procedure!C0L!select changeuserstatus(val0,val1)
Query510!C0L!select!C0L!select u.user_id,u.loginid,u.displayname,u.group_id,u.emailid from app_user u where u.user_id=val0
Query511!C0L!select!C0L!select group_id,name from user_group where isactive = 1 and group_id in (select c.child_id from user_group_childs c where c.group_id = val0)
Query512!C0L!procedure!C0L!select updateuser(val0,'val1','val2',val3,'val4',val5,val6,val7,val8)
Query513!C0L!procedure!C0L!select startmaintenance(?,?,?)
Query514!C0L!select!C0L!select m.uuid,mc.portname,mc.mvcode,mc.applno,mc.customername,mc.address,mc.visit,mc.uid from mnimble_cases mc,main m where mc.submittedon is not null and mc.case_id = m.case_id and (lower(mc.mvcode) = lower('val0') or lower(mc.applno) = lower('val0'))
Query515!C0L!procedure!C0L!select pendingmnimblecase(val0,'val1',val2)
Query516!C0L!select!C0L!select uid,emailid from emailids
Query517!C0L!select!C0L!select pb.portbranch_id,bb.bkbranchname,coalesce(bb.address1||' ','')||coalesce(bb.address2||' ','')||coalesce(bb.address3||' ','')||coalesce(bb.city,'') as address, (select bg.gstin from bank_gst bg where bg.uid = bb.gstin) as gstin,(case pb.isactive+bb.isactive when 2 then 'Active' else 'Inactive' end) as isactive, pb.portfolio_id,bb.bank_branch_id from portfolio_branch pb, bank_branch bb WHERE pb.bank_branch_id=bb.bank_branch_id and pb.portfolio_id=val0 order by bb.bkbranchname
Query518!C0L!procedure!C0L!select changebranchstatus(val0,val1)
Query519!C0L!select!C0L!select bank_id,name from portfolio_bank_branch where portfolio_id=val0 order by name
Query520!C0L!select!C0L!select bank_branch_id,bkbranchname,bkbranchcode,address1,address2,address3,city,gstin,bank_id,pincode from portfolio_bank_branch where portbranch_id=val0
Query521!C0L!procedure!C0L!select updateportbranch(val0,val1,val2,val3,'val4','val5','val6','val7','val8','val9','val10','val11','val12',val13,val14)
Query522!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',1897,''val0'',''val3'',NULL,''val4'',''val2'',''val1'',NULL,''val5'',''val6'',(CASE WHEN val16 = 1 THEN ''RadDrXS-val7-ERadDrX'' ELSE NULL END),(CASE WHEN val16 = 1 THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN val16 = 1 THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN val16 = 1 THEN ''val9'' ELSE NULL END),0,-1,NULL,(CASE WHEN val16 = 1 THEN ''val10'' ELSE NULL END),(CASE WHEN val17 = 1 THEN ''val11'' ELSE NULL END),(CASE WHEN val17 = 1 THEN ''OadDrXS-val12-EOadDrX'' ELSE NULL END),(CASE WHEN val17 = 1 THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN val17 = 1 THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,(CASE WHEN val17 = 1 THEN ''val15'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val16,0,val17,0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val20,val21,0,''val22'',''val23'','''')
Query523!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',1850,''val0'',''val3'','''',''val6'',''val2'',''val1'','''',NULL,''val7'',''RadDrXS-val8-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val9'',(case when length(''val10'') > 5 then ''val10'' else NULL end),''OadDrXS-val11-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,''val12'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val13,0,val14,0,0,0,0,0,0,0,''val4'',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val15,val16,0,''val17'',''val18'','''')
Query524!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',1810,''val0'',''val3'','''',''val6'',''val2'',''val1'','''',NULL,''val7'',''RadDrXS-val8-ERadDrX'',''RadDrX1'',''RadDrX2'',NULL,0,-1,NULL,''val9'',(case when length(''val10'') > 5 then ''val10'' else NULL end),''OadDrXS-val11-EOadDrX'',''OadDrX1'',''OadDrX2'',NULL,0,-1,NULL,NULL,NULL,''val12'',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val13,0,val14,0,0,0,0,0,0,0,''val4'',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val15,val16,0,''val17'',''val18'','''')
Query525!C0L!procedure!C0L!select dashboardpartial('val0','val1')
Query526!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',val2,''val0'',''val4'',NULL,''val5'',''Applicant'',''val3'',NULL,NULL,''val14'',(CASE WHEN val12 = 1 THEN ''RadDrXS-val6-ERadDrX'' ELSE NULL END),(CASE WHEN val12 = 1 THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN val12 = 1 THEN ''RadDrX2'' ELSE NULL END),(CASE WHEN val12 = 1 THEN ''val7'' ELSE NULL END),0,-1,NULL,NULL,(CASE WHEN val13 = 1 THEN ''val9'' ELSE NULL END),(CASE WHEN val13 = 1 THEN ''OadDrXS-val10-EOadDrX'' ELSE NULL END),(CASE WHEN val13 = 1 THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN val13 = 1 THEN ''OadDrX2'' ELSE NULL END),(CASE WHEN val13 = 1 THEN ''val11'' ELSE NULL END),0,-1,NULL,NULL,(CASE WHEN val13 = 1 THEN ''val8'' ELSE NULL END),NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val12,0,val13,0,0,0,0,0,0,0,''val15'',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val16,val17,0,''val18'',''val19'','''')
Query527!C0L!select!C0L!select head.* from (select 0,m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,'Bank_Code','RefNo','Name','resiadd','ResiCity','ResiPin','nameofcompany','OffAdd','OffCity','OffPin','resiphone','ophone','mobile','verificationtype','Allocate_Date','Allocate Time','AgencyName','Product','RECOMMENDED/NOT RECOMMENDED','REMARKS' from main_mainopr m join residence r on m.uuid = r.uuid join portfolio_bank_branch p on m.bank_branch_id=p.portbranch_id where m.portfolio_id=val0 and m.fileclosed=1 and m.fileclosedon >= 'val1' and m.fileclosedon <= 'val2 23:59:59' and (rv=1 or ov=1 ) limit 1) as head union all select row_number() over(order by m.portfolio_id),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,m.bankcode,m.applno, m.customername, raddr1||coalesce(' '||raddr2)||coalesce(' '||raddr3) as raddr, m.field1 as rcity,m.field3 as rpincode,'' as compname,'' as oaddr,'' as ocity, '' as opincode, '' as rphone, '' as ophone, m.mobileno,(CASE WHEN rv=1 THEN 'RV' ELSE 'BV' END) as vertype, m.field4 as allocdate, m.field5 as alloctime,'MATRIX' as agency, m.product,upper(m.overallstatus) as overallstat,r.remarks from main_mainopr m join residence r on m.uuid = r.uuid join portfolio_bank_branch p on m.bank_branch_id=p.portbranch_id where m.portfolio_id=val0 and m.fileclosed=1 and m.fileclosedon >= 'val1' and m.fileclosedon <= 'val2 23:59:59' and rv=1 union all select row_number() over(order by m.portfolio_id),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,m.bankcode,m.applno,m.customername, '' as raddr,'' as rcity,'' as rpincode,m.companyname as compname,oaddr1||coalesce(' '||oaddr2)||coalesce(' '||oaddr3) as oaddr,m.field1 as ocity, m.field3 as opincode, '' as rphone, '' as ophone, m.mobileno,(CASE WHEN rv=1 THEN 'RV' ELSE 'BV' END) as vertype,m.field4 as allocdate, m.field5 as alloctime,'MATRIX' as agency,m.product,upper(m.overallstatus) as overallstat,r.remarks from main_mainopr m join office r on m.uuid = r.uuid join portfolio_bank_branch p on m.bank_branch_id=p.portbranch_id where m.portfolio_id=val0 and m.fileclosed=1 and m.fileclosedon >= 'val1' and m.fileclosedon <= 'val2 23:59:59' and ov=1
Query528!C0L!insert!C0L!insert into main (portfolio_id,mvcode,bank_branch_id,applno,product,loanamount,customername,apptype,category,dob,contactperson,mobileno,raddr1,raddr2,raddr3,rlandmark,Rcolony,rcity,rpincode,rphone,companyname,oaddr1,oaddr2,oaddr3,olandmark,Ocolony,ocity,opincode,department,designation,ophone,extension,paddr1,paddr2,paddr3,plandmark,Pcolony,pcity,ppincode,refname1,refaddress1,refcontactno1,refname2,refaddress2,refcontactno2,rv,rtv,ov,otv,pv,refv,docv,rco,rcp,ocp,specialinst,sradd,soadd,spadd,fathername,field1,field2,field3,field4,field5,field6,dtfield1,bankcode,company_id,branch_id,addedby,addedon,receivedate,uuid) values (,''xmvcodex'',552,''val1'',(CASE WHEN ''val4'' = ''PL'' THEN ''Personal Loan'' ELSE ''val4'' END),NULL,''val2'',''Applicant'',''-1'',NULL,NULL,''val8'',(CASE WHEN ''val6'' = ''RV'' THEN ''RadDrXS-val5-ERadDrX'' ELSE NULL END),(CASE WHEN ''val6'' = ''RV'' THEN ''RadDrX1'' ELSE NULL END),(CASE WHEN ''val6'' = ''RV'' THEN ''RadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,(CASE WHEN ''val6'' <> ''RV'' THEN ''val9'' ELSE NULL END),(CASE WHEN ''val6'' <> ''RV'' THEN ''OadDrXS-val5-EOadDrX'' ELSE NULL END),(CASE WHEN ''val6'' <> ''RV'' THEN ''OadDrX1'' ELSE NULL END),(CASE WHEN ''val6'' <> ''RV'' THEN ''OadDrX2'' ELSE NULL END),NULL,0,-1,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,(CASE WHEN ''val6'' = ''RV'' THEN 1 ELSE 0 END),0,(CASE WHEN ''val6'' <> ''RV'' THEN 1 ELSE 0 END),0,0,0,0,0,0,0,'''',0,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,val10,val11,0,''val12'',''val13'','''')
Query529!C0L!procedure!C0L!select calculate_tat('val0','val1')
Query530!C0L!select!C0L!SELECT r.uuid,r.product,r.maincompany,r.bkbranchname,to_char(r.receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,r.bank_branch_id,'RESIDENCE PHOTOGRAPH' as title,'File No', applno as applno1,'Applicant Name', upper(customername) as cname1,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',','),'Residence Remarks',r.remarks FROM banklist_main_residence r WHERE (val0) val1
Query531!C0L!select!C0L!SELECT o.uuid,o.product,o.maincompany,o.bkbranchname,to_char(o.receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,o.bank_branch_id,'OFFICE PHOTOGRAPH' as title,'File No', applno as applno1,'Applicant Name', upper(customername) as cname1,sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',','),'Office Remarks',o.remarks FROM banklist_main_office o WHERE (val0) val1
Query532!C0L!select!C0L!SELECT row_number() over(order by m.portfolio_id),m.portfolio_id,m.bank_branch_id,p.portname,p.bkbranchname,m.product,m.applno, 'Matrix Credit Risk Controls Pvt Ltd' as agency,(CASE WHEN r.status IS NULL OR r.status = '-1' THEN 'PENDING' ELSE (CASE WHEN r.field50_8 = '-1' THEN '#N/A' ELSE r.field50_8 END) END) as remarks_summary,(CASE WHEN r.status IS NULL OR r.status = '-1' THEN '#N/A' ELSE r.remarks END) as remarks,(CASE WHEN r.proof IS NULL OR r.proof = '-1' THEN '' ELSE r.proofdet END) as resi_proof,(CASE WHEN r.status IS NULL OR r.status = '-1' THEN '' ELSE r.status END) as outcome, (CASE WHEN r.owner IS NULL OR r.owner = '-1' THEN '' ELSE r.owner END) as accomtype from main_mainopr m join residence r on m.uuid = r.uuid join portfolio_bank_branch p on m.bank_branch_id=p.portbranch_id where m.portfolio_id=val0 and ((m.sdoneon >= 'val1' and m.sdoneon <= 'val2 23:59:59') OR (m.sdoneon IS NULL)) and rv=1
Query533!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,'HDFC Bank Ltd - Credit Intelligence & Control' as title,'CCWF Field Visit Report' as subtitle,'Initiation Date :',to_char(o.receivedate,'DD/MM/YYYY') as recdate,'Completion Date :',to_char(o.sdoneon,'DD/MM/YYYY') as donedate,'1. General information','Company Name',':',upper(o.companyname),'Address with PIN Code',':',upper(o. oaddr),'Concerned Person Name',':',upper(o.contactperson),'Concerned Person Number',':',o.mobileno,'2. Office verification','Date and Time of Visit',':',coalesce(o.visitdate,'')||coalesce(o.visittime,''),'Concerned Person Met',':',o.metperson,'Designation of Contact Person',':',(CASE WHEN o.metrela='Others' THEN upper(o.metrealoth) ELSE o.metrela END) as metrela,'Business Activity Seen (yes/no)',':',upper(o.Field15_1),'Office name Board Seen (yes/no)',':',upper(o.bizboard),'Employees Observed',':',o.Field15_5,'Stability at the Visited Address',':',upper(o.Field50_1),'Infrastructure Details',':',upper(o.stockdet),'No of customers/day',':',o.custperday,'Office Locality (Commercial/ Residential)',':',(case when upper(o.locality)='OTHERS' then upper(o.locaoth) else upper(o.locality) end) as locality,'Co-working (Yes/No)',':',upper(o.Field15_2),'If operating through Co-Working',':','','1. No of workstations',':',upper(o.Field15_3),'2. Occupying entire floor (Yes/No)',':',upper(o.Field15_4),'Overall Remarks :',upper(o.remarks),'Final Status (Recommended / Not Recommended) :',upper(o.status),'Photographs (with Geo Tagging) :',sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',','),'CHECKS CONDUCTED BY :',upper(o.sdonebyname),'AGENCY NAME :',upper('Matrix Credit Risk Controls Pvt. Ltd.'),'DATE :',to_char(o.sdoneon,'DD/MM/YYYY') as donedate,'AGENCY STAMP & SIGNATURE','','images/signs/'||supervisor||'.png' as singature from banklist_main_office o where (val0) val1
Query534!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname1,'RESIDENCE VERIFICATION REPORT' as label1,'Agency' as label2,upper(maincompany) as agencyname, 'Received Date' as label4,to_char(receivedate,'DD/MM/YYYY') as recdate,'Application No' as label5,upper(applno) as applno2,'Product' as label6,upper(product) as product1,'Landmark' as label7,upper(landmark) as loanamount,'Visit Date' as label8,visitdate,'Visit Time' as label9,visittime,'Report Date' as label10,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Applicant''s Name' as label11,upper(customername) as custname1,'Address' as label13,upper(raddr) as raddr,'Met Person' as label14,upper(metperson) as metperson,'Relation' as label15,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Ownership' as label16,(case when upper(rowner)='OTHERS' then upper(owneroth) else upper(rowner) end) as rowner,'Stay at Curr Address' as label17,coalesce(((case when (yrsadd<>'0' and yrsadd<>'') then yrsadd||' YEARS(S) ' else '' end)||(case when (mnthadd <> '0' and mnthadd <> '') then mnthadd||' MONTH(S)' else '' end)),'NA') as rstay,'Marital Status' as label18,upper(maritial) as marital,'Total Family Members' as label19,totmem,'Total Earning Members' as label20,earning,'Spouse Working' as label21,upper(spswork) as spswork,'Spouse Employment Details' as label22,upper(spsempdet) as spsempdet,'Residence Proof' as label23,upper(proofdet) as resproof,'Ease of Location' as label24,upper(raccess) as raccess,'Locality' as label25,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Residence Type' as lblrtype,(case when upper(restype)='OTHERS' then upper(typeoth) else upper(restype) end) as restype,'Name Plate' as label26,(case when upper(nameplate)='YES' then upper(platedet) else upper(nameplate) end) nameplate,'Neighbour Reference' as label27,(case when upper(field30_9)='-1' then 'NA' else upper(field30_9) end) as neref,'Neighbour Feedback' as label28,upper(fieldtext_1) as nerem,'Any Political Links' as label29,upper(political) as political,'If Yes, Details' as label30,upper(politicdet) as politicdet,'Verifier Remarks' as label31,upper(verremarks) as verrem,'Final Status' as label33,upper(status) as status,'Remarks' as label34,upper(remarks) as remarks,'Scanned By' as label35,upper(reportdoneby),'Verifier Name' as label35,upper(rvername),'Agency Seal','images/signs/'||sdoneby||'.png' as singature,(case when portfolio_id=19 OR portfolio_id=43 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=19 OR portfolio_id=43 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs from banklist_main_residence r where (val0) val1
Query535!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) cname,bank_branch_id,upper(name) as pname1,'OFFICE VERIFICATION REPORT' as label1,'Agency' as label2,upper(maincompany) as agenname,'Received Date' as label4,to_char(receivedate,'DD/MM/YYYY') as receivedate,'Application No' as label5,upper(applno) as applno1,'Product' as label6,upper(product) as product1,'Landmark' as label7,'' as landmark,'Visit Date' as label8,visitdate,'Visit time' as label9,visittime,'Report Date' as label10,to_char(sdoneon,'DD/MM/YYYY') as sdoneon,'Applicants Name' as label11,upper(customername) as customername2,'Occupation' as label12,upper(category) as category1,'Address' as label13,upper(oaddr) as oaddr,'Met Person' as label14,upper(metperson) as metperson,'Relation' as label15,(case when upper(metrela)='OTHERS' then upper(metrealoth) else upper(metrela) end) as metrela,'Ownership' as label16,(case when upper(ownership)='OTHERS' then upper(owneroth) else upper(ownership) end) as ownership,'Job/Biz at Curr Add' as label17,((case when (yrsjob<>'0' and yrsjob<>'') then yrsjob||' YEARS(S) ' else '' end)||(case when (mnthjob<> '0' and mnthjob <> '') then mnthjob||' MONTH(S)' else '' end)) as yrsatjob,'Designation'as label18,(case when upper(appdesign)='OTHERS' then upper(appdesignoth) else upper(appdesign) end) as appdesign,'Department' as label19,upper(appdept) as appdept,'Reporting To' as label20,upper(reportingto) as reportingto,'Salary' as label21,upper(saldetail) as saldetail,'NOB' as label22,(case when upper(compprof)='OTHERS' then upper(compprofoth) else upper(compprof) end) as compprof,'Board Seen' as lblboardseen, (case when bizboard='-1' then 'NA' else upper(bizboard) end) as bizboard,'Ease of Access' as label27,upper(easeloc) as easeloc,'Locality' as label28,(case when upper(locality)='OTHERS' then upper(locaoth) else upper(locality) end) as locality,'Organisation Type' as label29,upper(busitype) as orgtype,'Neighbour Reference' as label30,(case when upper(field30_9)='-1' then 'NA' else upper(field30_9) end) as neref,'Neighbour Feedback' as label31,upper(fieldtext_1) as negrem,'Final Status' as label36,upper(status) as status,'Remarks' as label37,upper(remarks) as remarks,'Scanned By' as label38,upper(reportdoneby) as doneby,'Verifier Name' as lblvername, upper(overname) as overname, 'Agency Seal'as lbl,'images/signs/'||sdoneby||'.png' as singature,(case when portfolio_id=19 OR portfolio_id=43 then 'Photographs' else '{SK!PTH15D@TA}' end) as lblphotographs,coalesce((case when portfolio_id=19 OR portfolio_id=43 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end),'NA') as photographs from banklist_main_office o where (val0) val1
Query536!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,'MATRIX - Residence Report','Client Name:- '||upper(name),'Product:- '||upper(product),'Application ID:- '||upper(applno) as applno1,'Applicant Name:- '||upper(customername) as cname1,'Verification Type:-','Residence:','images/tick.gif' as chkresidence,'RCO:',(case when upper(Field15_1)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrco,'Office:','images/untick.jpg' as chkoffice,'Date & Time of Visit: - '||coalesce(visitdate||' ','')||coalesce(visittime,''),'Address of Visit:','Residence Address: -',upper(raddr) as raddr,'Office Address: -','','Remarks & Observations:',upper(remarks) as remarks,'Status:',upper(status),'Check List:','Residence:','1.','Stay Confirm:','Yes',(case when upper(Field30_3)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'No',(case when upper(Field30_3)='NO' then 'images/tick.gif' else 'images/untick.jpg' end),'2.','Location Type:','Slum',(case when upper(locality)='SLUM' then 'images/tick.gif' else 'images/untick.jpg' end),'Chawl',(case when upper(locality)='CHAWL TYPE' then 'images/tick.gif' else 'images/untick.jpg' end),'UMC',(case when upper(locality)='UPPER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'LMC',(case when upper(locality)='LOWER MIDDLE CLASS' then 'images/tick.gif' else 'images/untick.jpg' end),'','Com-Dom',(case when upper(locality)='COM-DOM' then 'images/tick.gif' else 'images/untick.jpg' end),'Poor',(case when upper(locality)='POOR' then 'images/tick.gif' else 'images/untick.jpg' end),'3.','TPC Confirm:','Yes',(case when upper(Field30_9)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'No',(case when upper(Field30_9)='NEGATIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'4.','Name Board:',upper(platedet),'','Business:','1.','Working Confirm:','Yes','images/untick.jpg','No','images/untick.jpg','2.','Name board Match with the application details','Yes','images/untick.jpg','No','images/untick.jpg','3.','Nature of Business:','','','Field Executive Name: - '||upper(rvername) as vername,'Reports Prepared By: - '||upper(sdonebyname),'Manager/Authority Name & Sign:','images/signs/'||supervisor||'.png' as singature,(case portfolio_id when 194 then 'Images:' else '{SK!PTH15D@TA}' end) as lblphoto,(case portfolio_id when 194 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''R'' and uuid='''||r.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_residence r where (val0) val1
Query537!C0L!select!C0L!select uuid,product,maincompany,bkbranchname,to_char(receivedate,'DD/MM/YYYY') as recdate,applno,upper(customername) as cname,bank_branch_id,'MATRIX - Office Report','Client Name:- '||upper(name),'Product:- '||upper(product),'Application ID:- '||upper(applno) as applno1,'Applicant Name:- '||upper(customername) as cname1,'Verification Type:-','Residence:','images/untick.jpg' as chkresidence,'RCO:',(case when upper(Field15_1)='YES' then 'images/tick.gif' else 'images/untick.jpg' end) as chkrco,'Office:','images/tick.gif' as chkoffice,'Date & Time of Visit: - '||coalesce(visitdate||' ','')||coalesce(visittime,''),'Address of Visit:','Residence Address: -','' as raddr,'Office Address: -',upper(oaddr) as oaddr,'Remarks & Observations:',upper(remarks) as remarks,'Status:',upper(status),'Check List:','Residence:','1.','Stay Confirm:','Yes','images/untick.jpg','No','images/untick.jpg','2.','Location Type:','Slum','images/untick.jpg','Chawl','images/untick.jpg','UMC','images/untick.jpg','LMC','images/untick.jpg','','Com-Dom','images/untick.jpg','Poor','images/untick.jpg','3.','TPC Confirm:','Yes',(case when upper(Field30_9)='POSITIVE' then 'images/tick.gif' else 'images/untick.jpg' end),'No',(case when upper(Field30_9) <> 'POSITIVE' AND upper(Field30_9) <> 'NA' then 'images/tick.gif' else 'images/untick.jpg' end),'4.','Name Board:','','','Business:','1.','Working Confirm:','Yes',(case when upper(Field30_22)='YES' then 'images/tick.gif' else 'images/untick.jpg' end),'No',(case when upper(Field30_22) <> 'YES' then 'images/tick.gif' else 'images/untick.jpg' end),'2.','Name board Match with the application details','Yes',(case when upper(Field30_2) = 'YES' then 'images/tick.gif' else 'images/untick.jpg' end),'No',(case when upper(Field30_2) <> 'YES' then 'images/tick.gif' else 'images/untick.jpg' end),'3.','Nature of Business:',upper(proddealt),'','Field Executive Name: - '||upper(overname) as vername,'Reports Prepared By: - '||upper(sdonebyname),'Manager/Authority Name & Sign:','images/signs/'||supervisor||'.png' as singature,(case portfolio_id when 194 then 'Images:' else '{SK!PTH15D@TA}' end) as lblphoto,(case portfolio_id when 194 then sublist('select docpath as field from tagged_docs where isdeleted=0 and doctype=''REP_ATTACH'' and vistype=''O'' and uuid='''||o.uuid||'''',',') else '{SK!PTH15D@TA}' end) as photographs from banklist_main_office o where (val0) val1