"select workhdr.*,usermst.dAmount as custCharge,usermst.vName as UserName,customermst.vName as CustomerName \n\t\t\t\t\t\t\t\t\t\tfrom workhdr \n\t\t\t\t\t\t\t\t\t\tleft join usermst on workhdr.nUserId = usermst.id \n\t\t\t\t\t\t\t\t\t\tleft join customermst on workhdr.nCustId = customermst.id \n\t\t\t\t\t\t\t\t\t\twhere workhdr.isActive = 1 and  DATE(workhdr.dWorkDate) != UTC_DATE() AND workhdr.nFranchiseeId = 2 and date(workhdr.dWorkDate)>='2019-11-27' and date(workhdr.dWorkDate)<='2019-11-27' \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tUNION ALL\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tselect workhdr.*,usermst.dAmount as custCharge,usermst.vName as UserName,customermst.vName as CustomerName \n\t\t\t\t\t\t\t\t\t\tfrom workhdr \n\t\t\t\t\t\t\t\t\t\tleft join usermst on workhdr.nUserId = usermst.id \n\t\t\t\t\t\t\t\t\t\tleft join customermst on workhdr.nCustId = customermst.id \n\t\t\t\t\t\t\t\t\t\twhere workhdr.isActive = 1 and DATE(workhdr.dWorkDate) = UTC_DATE() AND workhdr.tOutTime IS not NULL AND workhdr.nFranchiseeId = 2 and date(workhdr.dWorkDate)>='2019-11-27' and date(workhdr.dWorkDate)<='2019-11-27'\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\torder by id DESC"
"select workhdr.*,usermst.dAmount as custCharge,usermst.vName as UserName,customermst.vName as CustomerName \n\t\t\t\t\t\t\t\t\t\tfrom workhdr \n\t\t\t\t\t\t\t\t\t\tleft join usermst on workhdr.nUserId = usermst.id \n\t\t\t\t\t\t\t\t\t\tleft join customermst on workhdr.nCustId = customermst.id \n\t\t\t\t\t\t\t\t\t\twhere workhdr.isActive = 1 and  DATE(workhdr.dWorkDate) != UTC_DATE() AND workhdr.nFranchiseeId = 2 and date(workhdr.dWorkDate)>='2019-11-27' and date(workhdr.dWorkDate)<='2019-11-27' \n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tUNION ALL\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\tselect workhdr.*,usermst.dAmount as custCharge,usermst.vName as UserName,customermst.vName as CustomerName \n\t\t\t\t\t\t\t\t\t\tfrom workhdr \n\t\t\t\t\t\t\t\t\t\tleft join usermst on workhdr.nUserId = usermst.id \n\t\t\t\t\t\t\t\t\t\tleft join customermst on workhdr.nCustId = customermst.id \n\t\t\t\t\t\t\t\t\t\twhere workhdr.isActive = 1 and DATE(workhdr.dWorkDate) = UTC_DATE() AND workhdr.tOutTime IS not NULL AND workhdr.nFranchiseeId = 2 and date(workhdr.dWorkDate)>='2019-11-27' and date(workhdr.dWorkDate)<='2019-11-27'\n\t\t\t\t\t\t\t\t\t\t\n\t\t\t\t\t\t\t\t\t\torder by id DESC"
