Project

General

Profile

Bug #2411

[HR-TIMEDATA]permintaan job query untuk merapikan attendance yang lintas hari

Added by Muhammad Bintar about 1 year ago. Updated 12 months ago.

Status:
QA Test
Priority:
Immediate
Start date:
11/16/2023
Due date:
11/20/2023 (about 13 months late)
% Done:

0%

Estimated time:
Spent time:

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


Add

Subtasks


Add

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

#4

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

#6

Updated by Kezia Pawitra Yulianti about 1 year ago

  • Priority changed from High to Immediate

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

Also available in: Atom PDF