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.

19 lines
934 B

1 year ago
  1. USE [FastMoneyPro_Remit]
  2. GO
  3. /****** Object: StoredProcedure [dbo].[proc_autoUnlockTxn] 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_autoUnlockTxn]
  9. AS
  10. SET NOCOUNT OFF;
  11. UPDATE remitTran SET lockStatus = 'unlocked' WHERE lockStatus = 'locked' AND DATEDIFF(MI, lockedDate, GETDATE()) > = 10
  12. AND payStatus = 'Unpaid' AND tranStatus = 'Payment'
  13. --EXEC proc_autoUnlockTxn
  14. GO