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.

25 lines
1.1 KiB

1 year ago
  1. USE [FastMoneyPro_Remit]
  2. GO
  3. /****** Object: StoredProcedure [dbo].[proc_GetPayAmountLimit] Script Date: 9/27/2019 1:30:14 PM ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. CREATE proc [dbo].[proc_GetPayAmountLimit]
  9. @user VARCHAR(30) = NULL
  10. ,@agentGroup VARCHAR(20) = NULL
  11. ,@controlNo VARCHAR(20) = NULL
  12. AS
  13. SET NOCOUNT ON;
  14. DECLARE @tranType VARCHAR(50)
  15. SELECT @tranType = tranType FROM remitTran (NOLOCK) WHERE controlNo = dbo.encryptDb(@controlNo)
  16. IF ISNULL(@tranType, 'I') = 'I'
  17. SELECT 200000 amt
  18. ELSE
  19. SELECT 900000 amt
  20. GO