Bug #2411
[HR-TIMEDATA]permintaan job query untuk merapikan attendance yang lintas hari
0%
Description
dear tim developer mohon suppport nya untuk merapikan attendance yang lintas hari dimana jika startdate nya tidak sama dengan end date maka enddate nya disamakan dengan startdate.
Files
Subtasks
Related issues
Updated by shofwan shiddiq about 1 year ago
- Assignee changed from shofwan shiddiq to Muhammad Bintar
update PHRPA0019 set EndDate=StartDate where StartDate !=EndDate and AttendanceType in (select distinct AttendanceType from PHRTMATTTYP where CrossDay='Y')
Updated by shofwan shiddiq about 1 year ago
sebelum di execute jangan lupa di backup dulu ya masbin
Updated by M Azid Wahyudi about 1 year ago
dear masbin ,, berikut ini query after insert untuk crossday
makasih
Updated by Kezia Pawitra Yulianti about 1 year ago
- Status changed from New to Assigned
- Priority changed from Normal to High
Updated by Muhammad Bintar about 1 year ago
- Assignee changed from Muhammad Bintar to M Azid Wahyudi
ada bug dimana enddate nya semua attendance menjadi tanggal 24 november semua
Updated by M Azid Wahyudi 12 months ago
- Status changed from Assigned to QA Test
- Assignee changed from M Azid Wahyudi to Muhammad Bintar
dear masbin , berikut ini afterinsert yang udah di rapihkan :
USE [MinovaES_KJL_Prod]
GO
/****** Object: Trigger [dbo].[AfterInsertPHRPA0019CrossDay] Script Date: 08/12/2023 16:39:53 **/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER TRIGGER [dbo].[AfterInsertPHRPA0019CrossDay]
ON [dbo].[PHRPA0019]
AFTER INSERT
AS
BEGIN
SET NOCOUNT ON;
UPDATE p
SET EndDate = p.StartDate
FROM PHRPA0019 p
INNER JOIN inserted i ON p.EmployeeID = i.EmployeeID
WHERE i.StartDate != p.EndDate
END;
makasih