Project

General

Profile

Bug #2617 » AfterInsertPHRPA0019AttendanceType.txt

shofwan shiddiq, 02/27/2024 03:11 PM

 
1
ALTER TRIGGER AfterInsertPHRPA0019AttendanceType
2
ON hr_md_emp_md0002
3
AFTER UPDATE
4
AS
5
IF (UPDATE(movement_type))
6
BEGIN
7
DECLARE @id AS INT
8
SELECT @id = (SELECT top(1) p.emp_id FROM hr_md_emp_md0002 p INNER JOIN inserted i ON p.emp_id = i.emp_id AND i.movement_type='80')
9
Exec Rpt_IMFI_HR_PA_ALL_EMPLOYEE_Service @landscape='100',@companycode='1000',@emp_id=@id;
10
END;
(3-3/7)