Project

General

Profile

Bug #1203 » Product_GetBudgetActual_20220620.sql

Tri Rizqiaty, 06/29/2022 10:00 AM

 
1
??--USE [MinovaES_Bank_Kalteng_Dev]
2

3
--GO
4

5
--/****** Object:  UserDefinedFunction [dbo].[Product_GetBudgetActual]    Script Date: 20/06/2022 16.58.15 ******/
6

7
--SET ANSI_NULLS ON
8

9
--GO
10

11
--SET QUOTED_IDENTIFIER ON
12

13
--GO
14

15
--ALTER FUNCTION [dbo].[Product_GetBudgetActual]  --SELECT * FROM dbo.GetBudgetActual('100','2010','scriberion','triadblank')
16

17
--(	
18

19
--	-- Add the parameters for the function here
20

21
--	@year VARCHAR(4),
22

23
--	@CostCenter VARCHAR(20),
24

25
--	@EmployeeID VARCHAR(20)
26

27
--)
28

29
--RETURNS TABLE 
30

31
--AS
32

33
--RETURN 
34

35
--(
36

37

38

39
	DECLARE @year VARCHAR(4) = '2022'
40

41
	DECLARE @CostCenter VARCHAR(20) = ''
42

43
	DECLARE @EmployeeID VARCHAR(20) = ''
44

45

46

47
	
48

49
	-- Add the SELECT statement with parameter references here
50

51
	SELECT *
52

53
	FROM dbo.Product_GetBudgetActualMonthly(@year, '01', '12', @CostCenter, @EmployeeID)
54

55
	
56

57
--)
58

59

(7-7/21)