You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
813 B
35 lines
813 B
USE [FastMoneyPro_Remit]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[proc_BankExrate] Script Date: 7/4/2019 11:35:48 AM ******/
|
|
DROP PROCEDURE [dbo].[proc_BankExrate]
|
|
GO
|
|
/****** Object: StoredProcedure [dbo].[proc_BankExrate] Script Date: 7/4/2019 11:35:48 AM ******/
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
|
|
CREATE PROC [dbo].[proc_BankExrate]
|
|
(
|
|
@flag CHAR(1)
|
|
,@custRate MONEY = NULL
|
|
,@serviceCharge MONEY = NULL
|
|
,@user VARCHAR(50) = NULL
|
|
)
|
|
AS
|
|
SET NOCOUNT ON;
|
|
SET XACT_ABORT ON;
|
|
BEGIN
|
|
IF @flag = 's'
|
|
BEGIN
|
|
SELECT serviceCharge, customerRate FROM bankTransferSettings
|
|
END
|
|
ELSE IF @flag = 'u'
|
|
BEGIN
|
|
UPDATE dbo.bankTransferSettings SET serviceCharge = @serviceCharge, customerRate = @custRate
|
|
|
|
EXEC dbo.proc_errorHandler '0', 'Record updated successfully!', NULL
|
|
|
|
END
|
|
END
|
|
GO
|