Project

General

Profile

Feature #1374 » Product_GetBudgetActual_20220620.sql

Tri Rizqiaty, 07/21/2022 02:53 PM

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

3
(	
4

5
	-- Add the parameters for the function here
6

7
	@year VARCHAR(4),
8

9
	@CostCenter VARCHAR(20),
10

11
	@EmployeeID VARCHAR(20)
12

13
)
14

15
RETURNS TABLE 
16

17
AS
18

19
RETURN 
20

21
(
22

23

24

25
	--DECLARE @year VARCHAR(4) = '2022'
26

27
	--DECLARE @CostCenter VARCHAR(20) = ''
28

29
	--DECLARE @EmployeeID VARCHAR(20) = ''
30

31

32

33
	
34

35
	-- Add the SELECT statement with parameter references here
36

37
	SELECT *
38

39
	FROM dbo.Product_GetBudgetActualMonthly(@year, '01', '12', @CostCenter, @EmployeeID)
40

41
	
42

43
)
44

45

(1-1/10)