SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

-- FNCUST_TF_GET_PAYMENT_METHODE 
-- =================================================================
-- Die Funktion liefert die aktuellen Zahlarten
--
-- =================================================================
-- Copyright (c) 2025 by Digital Data GmbH
--
-- Digital Data GmbH • Ludwig-Rinn-Strasse 16 • D-35452 Heuchelheim
-- Tel.: 0641/202360 • E-Mail: info-flow@digitaldata.works
-- =================================================================
-- Creation Date / Author:    05.08.2025 / MP/MK
-- =================================================================
-- History:
-- 05.08.2025 / MP/MK - Prozedur erstellt

CREATE OR ALTER FUNCTION [dbo].[FNCUST_TF_GET_PAYMENT_METHODE] (
	@pLANGUAGE VARCHAR(5)
)
RETURNS
	@Table TABLE ([ID]				TINYINT,
				  [DESCRIPTION]		NVARCHAR(25))
AS
BEGIN

	INSERT INTO @Table([ID],[DESCRIPTION])

	SELECT 2 as 'Zahlart', 'Avis' as 'Description'
	UNION ALL
	SELECT 5, 'Überweisung'
	UNION ALL
	SELECT 6, 'Lastschrift';

	RETURN;

END;
GO