Sei sulla pagina 1di 2

@()*fy2-OMCY#1

sftp://88.99.96.83

select start_month, end_month from fin_year where fin_year=pfinyear and vattr1=0


and status = 1
and branch_code = (select branch_code from emp_details where emp_pkey=PEMP_fkey) ;
select count(*) from emp_leave_transactions WHERE Leavestatus = 'Approved' and
LEAVEENTRYID in (select LEAVEENTRYID FROM leaveentries where EMP_fkey = '14') and
leave_date between startmonth and endmonth
ithu union cheyyan para

select start_month, end_month from fin_year where vattr1=0 and status = 1 and
Year_status = 'OPEN' andis_current_finyear = 'Y'
and branch_code = (select branch_code from emp_details where emp_pkey=PEMP_fkey) ;
try thid

select
is_leave_encash,occurance,REMARKS,item,alloted_leave_forthe_year,alloted_leave_fort
he_month,leave_policy_type,CARRY_FORWARD_LIMIT,
APPLICABLE_TO,ALLOW_NEGETIVE,IS_SANDWICH,leave_balance_inthe_year_fn(74,salary_head
_item_fkey,2019)
as leavebal,leave_balance_inthe_month_fn(74,salary_head_item_fkey,'2019 Apr',2019)
as monthlybalance
from leavepolicy,salary_head_items where
salary_head_item_fkey=salary_head_item_pkey
and LEAVEPOLICY_GROUP_ID
in (SELECT LEAVEPOLICY_GROUP_ID FROM emp_proff WHERE emp_fkey=
74)

select ( select (count(case when leave_session = 3 then 1 else null end) +


(count(case when leave_session != 3 then 1 else null end))/2) as counts from
emp_leave_transactions WHERE Leavestatus = 'Approved' and LEAVEENTRYID in (select
LEAVEENTRYID FROM leaveentries where EMP_fkey = 74 and salary_head_item_fkey =
leavepolicy.salary_head_item_fkey) and leave_date between '2019-01-01' and '2019-
08-01' ) as Takens_leaves,
is_leave_encash,occurance,REMARKS,item,alloted_leave_forthe_year,alloted_leave_fort
he_month,leave_policy_type,CARRY_FORWARD_LIMIT,
APPLICABLE_TO,ALLOW_NEGETIVE,IS_SANDWICH,leave_balance_inthe_year_fn(74,salary_head
_item_fkey,2019)
as leavebal,leave_balance_inthe_month_fn(74,salary_head_item_fkey,'2019-04','2019')
as monthlybalance
from leavepolicy,salary_head_items where
salary_head_item_fkey=salary_head_item_pkey
and LEAVEPOLICY_GROUP_ID
in (SELECT LEAVEPOLICY_GROUP_ID FROM emp_proff WHERE emp_fkey= 74)

INSERT INTO `hrm_menu` (`menu_id`, `parent_id`, `menu_url`, `menu_title`,


`menu_name`, `active`, `iconCls`, `user_id`) VALUES
(5, 0, '', 'EFSR', 'Efsr', 'Y', 'fa fa-list-alt', 1),
(112, 5, 'Survey', 'Survey Type', 'Survey Type', 'Y', 'fa fa-circle-o
icon-content', NULL),
(113, 5, 'Survey/surveyCategory', 'Survey Heads', 'Survey Heads', 'Y',
'fa fa-circle-o icon-content', NULL),
(114, 5, 'Survey/options', 'Survey Data Items', 'Survey Data Items', 'Y',
'fa fa-circle-o icon-content', NULL),
(115, 5, 'SiteWork', 'Site Master', 'Efsr Site Master', 'Y', 'fa fa-
circle-o icon-content', NULL),
(116, 5, 'FieldSurvey/home ', 'Equipments Master', 'Equipments Master',
'Y', 'fa fa-circle-o icon-content', NULL),
(117, 5, 'FieldSurvey/ticket', 'Tickets ', 'Tickets', 'Y', 'fa fa-circle-o
icon-content', NULL),
(118, 5, 'Survey/tickets_filter', 'Tickets Filter', 'Tickets Filter', 'Y',
'fa fa-circle-o icon-content', NULL),
(119, 5, 'Survey/tickets', 'Ticket Report', 'Ticket Report', 'Y', 'fa fa-
circle-o icon-content', NULL);

INSERT INTO `hrm_menu` (`menu_id`, `parent_id`, `menu_url`, `menu_title`,


`menu_name`, `active`, `iconCls`, `user_id`) VALUES
(46, 9, 'MobileLocationUpdate', 'Mobile Location Update', 'Mobile Location
Update', 'Y', 'fa fa-circle-o icon-content', 0),
(455, 9, 'TrackingReports/hrreports', ' Tracking Reports', 'Tracking
Reports', 'Y', 'fa fa-circle-o icon-content', NULL);

INSERT INTO `reportcriterias` (`id`, `reporttype`, `reportcriteria`,


`reportcriteria_desc`, `reportcriteria_field`, `status`) VALUES
(97, 'AttendanceLocation', 'EmployeeDetails', 'belonging to a Employee',
'emp_pkey', 1),
(98, 'MobileTrack', 'EmployeeDetails', 'belonging to a Employee',
'emp_pkey', 1),
(99, 'Client', 'EmployeeDetails', 'belonging to a Employee', 'emp_pkey',
1),
(100, 'KmTravelled', 'EmployeeDetails', 'belonging to a Employee',
'emp_pkey', 1);

Potrebbero piacerti anche