Bug #2052
[HR-REPORT PMS INDIVIDU] minta di list apa aja yang harus di deploy ke rohto production
Description
dear tim developer mohon support nya untuk me list apa saja yang harus di deploy ke production.
karena sudah deploy SP teteapi nama masih belum berubah.
remote.minovais.com:51121
database sql server 2019
remote.minovais.com, 1445
rohto_prod_51121
Files
Updated by M Azid Wahyudi over 1 year ago
- Status changed from New to QA Test
- Assignee changed from shofwan shiddiq to Muhammad Bintar
dear masbin , udah bisa di test ya di client udah di deploy ke sana
package :
update function GetPositionHead
berikut updatenya :
ALTER FUNCTION [dbo].[GetPositionHead]
(
@org_unit varchar(8),
@key_date varchar(8)
)
RETURNS varchar(8)
AS
--DECLARE @org_unit varchar(8) = '00000002'
--DECLARE @key_date varchar(8) = '20170829'
BEGIN
-- Declare the return variable here
DECLARE @position_head varchar(8)
-- Add the T-SQL statements to compute the return value here
--SELECT @position_head = dbo.[GetObjRel](@org_unit,'O','A','001','P',@key_date)
SELECT @position_head = O2.RelationshipObject
FROM dbo.PHROM0002 O2 INNER JOIN
dbo.PHROM0001 O1 ON O2.RelationshipObject = O1.ObjectID
AND O1.StartDate <= @key_date
AND O1.EndDate >= @key_date
AND O1.ObjectClass = 'P'
AND O1.PositionHead = '1'
WHERE O2.ObjectID = @org_unit
AND O2.ObjectClass = 'O'
AND O2.RelationshipDirectory = 'A'
AND O2.RelationshipType = '001'
AND O2.RelationshipClass = 'P'
AND O2.StartDate <= @key_date
AND O2.EndDate >= @key_date
SET @position_head = ISNULL(@position_head,'')
-- Return the result of the function
RETURN @position_head
END
makasih