diff --git a/Back/FNA_GET_REWARD_POINTS.sql b/Back/FNA_GET_REWARD_POINTS.sql new file mode 100644 index 0000000..13b6a8f --- /dev/null +++ b/Back/FNA_GET_REWARD_POINTS.sql @@ -0,0 +1,18 @@ +SET ANSI_NULLS ON +GO +SET QUOTED_IDENTIFIER ON +GO + +CREATE FUNCTION [dbo].[FNA_GET_REWARD_POINTS]() +RETURNS @list TABLE (totalPoints INT, RegPoint INT, TranPoint INT) +AS +BEGIN + INSERT INTO @list (totalPoints, RegPoint, TranPoint) + SELECT + SUM(CASE WHEN PromotionType IN ('REGISTRATION', 'TRANSACTION') THEN Points ELSE 0 END) AS totalPoints, + SUM(CASE WHEN PromotionType = 'REGISTRATION' THEN Points ELSE 0 END) AS RegPoint, + SUM(CASE WHEN PromotionType = 'TRANSACTION' THEN Points ELSE 0 END) AS TranPoint + FROM TBL_PROMOTION_SETUP; + + RETURN; +END diff --git a/Back/GetUserInfo.sql b/Back/GetUserInfo.sql index 0fd2379..0d7b7fa 100644 Binary files a/Back/GetUserInfo.sql and b/Back/GetUserInfo.sql differ diff --git a/Back/JsonRx_Proc_UserRegistration_V2.sql b/Back/JsonRx_Proc_UserRegistration_V2.sql new file mode 100644 index 0000000..54873cf Binary files /dev/null and b/Back/JsonRx_Proc_UserRegistration_V2.sql differ diff --git a/Back/PROC_DROPDOWN_LIST.sql b/Back/PROC_DROPDOWN_LIST.sql new file mode 100644 index 0000000..bb1d8e8 Binary files /dev/null and b/Back/PROC_DROPDOWN_LIST.sql differ diff --git a/Back/PROC_DYNAMIC_TABLE.sql b/Back/PROC_DYNAMIC_TABLE.sql new file mode 100644 index 0000000..98c2fa6 Binary files /dev/null and b/Back/PROC_DYNAMIC_TABLE.sql differ diff --git a/Back/PROC_TP_TXN_PUSH.sql b/Back/PROC_TP_TXN_PUSH.sql index 211bfd1..92f4240 100644 Binary files a/Back/PROC_TP_TXN_PUSH.sql and b/Back/PROC_TP_TXN_PUSH.sql differ diff --git a/Back/mobile_proc_customerMaster.sql b/Back/mobile_proc_customerMaster.sql new file mode 100644 index 0000000..58c97ee Binary files /dev/null and b/Back/mobile_proc_customerMaster.sql differ diff --git a/Back/proc_CustomerPromotionReport.sql b/Back/proc_CustomerPromotionReport.sql new file mode 100644 index 0000000..9d55d93 Binary files /dev/null and b/Back/proc_CustomerPromotionReport.sql differ diff --git a/Back/proc_InsertRewardPoints.sql b/Back/proc_InsertRewardPoints.sql index 4612550..b3aace9 100644 Binary files a/Back/proc_InsertRewardPoints.sql and b/Back/proc_InsertRewardPoints.sql differ diff --git a/Back/proc_autocomplete.sql b/Back/proc_autocomplete.sql new file mode 100644 index 0000000..12019f5 Binary files /dev/null and b/Back/proc_autocomplete.sql differ diff --git a/Back/proc_countryRateMaster.sql b/Back/proc_countryRateMaster.sql new file mode 100644 index 0000000..ce28a6c --- /dev/null +++ b/Back/proc_countryRateMaster.sql @@ -0,0 +1,229 @@ +SET ANSI_NULLS ON +GO + +SET QUOTED_IDENTIFIER ON +GO + +CREATE OR ALTER PROCEDURE [dbo].[proc_countryRateMaster] @flag VARCHAR(50) = NULL + ,@user VARCHAR(30) = NULL + ,@depositType VARCHAR(200) = NULL + ,@countryId INT = NULL + ,@actualrate FLOAT = NULL + ,@promRate FLOAT = NULL + ,@countryName VARCHAR(200) = NULL + ,@activeStatus CHAR(1) = NULL + ,@sortBy VARCHAR(50) = NULL + ,@sortOrder VARCHAR(5) = NULL + ,@pageSize INT = NULL + ,@pageNumber INT = NULL + ,@receiverId BIGINT = NULL +AS +SET NOCOUNT ON +SET XACT_ABORT ON + +BEGIN TRY + SET NOCOUNT ON; + + CREATE TABLE #msg ( + errorCode INT + ,msg VARCHAR(100) + ,id INT + ) + + DECLARE @sql VARCHAR(MAX) + ,@oldValue VARCHAR(MAX) + ,@newValue VARCHAR(MAX) + ,@module VARCHAR(10) + ,@tableAlias VARCHAR(100) + ,@logIdentifier VARCHAR(50) + ,@logParamMod VARCHAR(100) + ,@logParamMain VARCHAR(100) + ,@table VARCHAR(MAX) + ,@select_field_list VARCHAR(MAX) + ,@extra_field_list VARCHAR(MAX) + ,@sql_filter VARCHAR(MAX) + ,@logType VARCHAR(10) + ,@oldRate FLOAT + ,@oldPromRate FLOAT + + SELECT @logIdentifier = 'depositType' + ,@logParamMain = 'countryRateMaster' + ,@logParamMod = 'countryRateMasterMod' + ,@module = '20' + ,@tableAlias = '' + + IF @flag = 'i-rate' + BEGIN + BEGIN TRANSACTION + + IF NOT EXISTS ( + SELECT 'X' + FROM dbo.countryWiseExchangeRate + WHERE countryId = @countryId + AND depositType = @depositType + ) + BEGIN + INSERT INTO countryWiseExchangeRate ( + countryId + ,depositType + ,margin + ,purchaseRate + ,isActive + ,createdBy + ,createdDate + ) + SELECT @countryId + ,@depositType + ,@actualrate + ,ISNULL(@promRate, '') + ,@activeStatus + ,@user + ,GETDATE() + + IF @@TRANCOUNT > 0 + COMMIT TRANSACTION + + EXEC proc_errorHandler 0 + ,'Record has been added successfully.' + ,@depositType + END + ELSE IF EXISTS ( + SELECT 'X' + FROM dbo.countryWiseExchangeRate + WHERE countryId = @countryId + AND depositType = @depositType + ) + BEGIN + INSERT INTO dbo.countryWiseExchangeRateHistory ( + countryId + ,margin + ,purchaseRate + ,modType + ,createdBy + ,createdDate + ) + SELECT countryId + ,margin + ,purchaseRate + ,'UPDATE' + ,@user + ,GETDATE() + FROM dbo.countryWiseExchangeRate + WHERE countryId = @countryId + AND depositType = @depositType + + UPDATE countryWiseExchangeRate + SET depositType = @depositType + ,margin = @actualrate + ,purchaseRate = ISNULL(@promRate, '') + ,isActive = @activeStatus + WHERE countryId = @countryId + AND depositType = @depositType + + IF @@TRANCOUNT > 0 + COMMIT TRANSACTION + + EXEC proc_errorHandler 0 + ,'Record has been added successfully.' + ,@depositType + END + END + ELSE IF @flag = 'get-list' + BEGIN + --SELECT * FROM countryWiseExchangeRate WITH(NOLOCK) WHERE countryId = @countryId + IF @sortBy IS NULL + SET @sortBy = 'depositType' + + IF @sortOrder IS NULL + SET @sortOrder = 'ASC' + SET @table = '( + SELECT + main.countryId + ,main.depositType + ,main.margin + ,main.purchaseRate + ,main.createdBy + ,main.createdDate + ,main.isActive + FROM countryWiseExchangeRate main WITH(NOLOCK) + WHERE 1 = 1 AND main.countryId = ' + CAST(@countryId AS VARCHAR) + ' + ) x' + SET @sql_filter = '' + SET @sql_filter = @sql_filter + ' AND ISNULL(isActive, '''') <> ''N''' + + IF @depositType IS NOT NULL + SET @sql_filter = @sql_filter + ' AND depositType LIKE ''' + @depositType + '%''' + SET @select_field_list = ' + countryId + ,depositType + ,margin + ,purchaseRate + ,createdBy + ,createdDate + ,isActive ' + + EXEC dbo.proc_paging @table + ,@sql_filter + ,@select_field_list + ,@extra_field_list + ,@sortBy + ,@sortOrder + ,@pageSize + ,@pageNumber + END + ELSE IF @flag = 'getById' + BEGIN + SELECT * + FROM dbo.countryWiseExchangeRate + WHERE countryId = @countryId + AND depositType = @depositType + END + ELSE IF @flag = 'payment-method' + BEGIN + SELECT depositType AS detailTitle + ,ISNULL(margin, 0) AS valueId + FROM countryWiseExchangeRate + WHERE countryId = @countryId + END + ELSE IF @flag = 'getListById' + BEGIN + SELECT CR.depositType AS detailTitle + ,CR.margin AS detailDesc + FROM dbo.countryWiseExchangeRate CR(NOLOCK) + INNER JOIN countryMaster CM(NOLOCK) ON CM.countryId = CR.countryId + INNER JOIN receiverInformation RI(NOLOCK) ON RI.country = CM.countryName + WHERE RI.receiverId = @receiverId + END + ELSE IF @flag = 'delete' + BEGIN + BEGIN TRANSACTION + + UPDATE countryWiseExchangeRate + SET isDeleted = 'Y' + ,isActive = 'N' + ,modifiedBy = @user + ,modifiedDate = GETDATE() + WHERE countryId = @countryId + AND depositType = @depositType + + IF @@TRANCOUNT > 0 + COMMIT TRANSACTION + + SELECT 0 error_code + ,'Record deleted successfully.' mes + ,@countryId id + END +END TRY + +BEGIN CATCH + IF @@TRANCOUNT > 0 + ROLLBACK TRANSACTION + + DECLARE @errorMessage VARCHAR(MAX) + + SET @errorMessage = ERROR_MESSAGE() + + EXEC proc_errorHandler 1 + ,@errorMessage + ,@depositType +END CATCH \ No newline at end of file diff --git a/Back/proc_customerDocumentType.sql b/Back/proc_customerDocumentType.sql new file mode 100644 index 0000000..8def191 Binary files /dev/null and b/Back/proc_customerDocumentType.sql differ diff --git a/Back/proc_get_exRate_master.sql b/Back/proc_get_exRate_master.sql new file mode 100644 index 0000000..3f9f354 Binary files /dev/null and b/Back/proc_get_exRate_master.sql differ diff --git a/Back/proc_notification.sql b/Back/proc_notification.sql new file mode 100644 index 0000000..ab868bb Binary files /dev/null and b/Back/proc_notification.sql differ diff --git a/Back/proc_online_approve_Customer.sql b/Back/proc_online_approve_Customer.sql index 02553e1..c0021fc 100644 Binary files a/Back/proc_online_approve_Customer.sql and b/Back/proc_online_approve_Customer.sql differ diff --git a/Back/proc_online_core_customerSetup.sql b/Back/proc_online_core_customerSetup.sql index 63243e7..c7c71e5 100644 Binary files a/Back/proc_online_core_customerSetup.sql and b/Back/proc_online_core_customerSetup.sql differ diff --git a/Back/proc_online_customer_login.sql b/Back/proc_online_customer_login.sql index e9965af..deab35f 100644 Binary files a/Back/proc_online_customer_login.sql and b/Back/proc_online_customer_login.sql differ diff --git a/Back/proc_online_remitance_core_customerSetup.sql b/Back/proc_online_remitance_core_customerSetup.sql new file mode 100644 index 0000000..715615c Binary files /dev/null and b/Back/proc_online_remitance_core_customerSetup.sql differ diff --git a/Deployment/24827-Promotional-Rate/proc_sendIRH.sql b/Back/proc_sendIRH.sql similarity index 99% rename from Deployment/24827-Promotional-Rate/proc_sendIRH.sql rename to Back/proc_sendIRH.sql index 854fb85..63fb803 100644 Binary files a/Deployment/24827-Promotional-Rate/proc_sendIRH.sql and b/Back/proc_sendIRH.sql differ diff --git a/Deployment/24417-Referral_Points/GetUserInfo.sql b/Deployment/24417-Referral_Points/GetUserInfo.sql index 6ac27c6..6914dbc 100644 Binary files a/Deployment/24417-Referral_Points/GetUserInfo.sql and b/Deployment/24417-Referral_Points/GetUserInfo.sql differ diff --git a/Deployment/24417-Referral_Points/PROC_TP_TXN_PUSH.sql b/Deployment/24417-Referral_Points/PROC_TP_TXN_PUSH.sql deleted file mode 100644 index 67ad56f..0000000 Binary files a/Deployment/24417-Referral_Points/PROC_TP_TXN_PUSH.sql and /dev/null differ diff --git a/Deployment/24417-Referral_Points/mobile_proc_customerMaster.sql b/Deployment/24417-Referral_Points/mobile_proc_customerMaster.sql index 94fa695..5a1ca60 100644 Binary files a/Deployment/24417-Referral_Points/mobile_proc_customerMaster.sql and b/Deployment/24417-Referral_Points/mobile_proc_customerMaster.sql differ diff --git a/Deployment/24417-Referral_Points/proc_online_approve_Customer.sql b/Deployment/24417-Referral_Points/proc_online_approve_Customer.sql index b9954d0..12eea35 100644 Binary files a/Deployment/24417-Referral_Points/proc_online_approve_Customer.sql and b/Deployment/24417-Referral_Points/proc_online_approve_Customer.sql differ diff --git a/Deployment/24417-Referral_Points/proc_sendIRH.sql b/Deployment/24417-Referral_Points/proc_sendIRH.sql index 3a7935e..28edeb2 100644 Binary files a/Deployment/24417-Referral_Points/proc_sendIRH.sql and b/Deployment/24417-Referral_Points/proc_sendIRH.sql differ diff --git a/Insertbank UAE/01-INSERT_API_BANK_MASTER.sql b/Deployment/24791-GCC/Insertbank UAE/01-INSERT_API_BANK_MASTER.sql similarity index 100% rename from Insertbank UAE/01-INSERT_API_BANK_MASTER.sql rename to Deployment/24791-GCC/Insertbank UAE/01-INSERT_API_BANK_MASTER.sql diff --git a/Insertbank UAE/02-INSERT_API_BANK.sql b/Deployment/24791-GCC/Insertbank UAE/02-INSERT_API_BANK.sql similarity index 100% rename from Insertbank UAE/02-INSERT_API_BANK.sql rename to Deployment/24791-GCC/Insertbank UAE/02-INSERT_API_BANK.sql diff --git a/Insertbank UAE/03-Update_API_BANK_MASTER.sql b/Deployment/24791-GCC/Insertbank UAE/03-Update_API_BANK_MASTER.sql similarity index 100% rename from Insertbank UAE/03-Update_API_BANK_MASTER.sql rename to Deployment/24791-GCC/Insertbank UAE/03-Update_API_BANK_MASTER.sql diff --git a/Insertbank UAE/04-Update_API_BANK.sql b/Deployment/24791-GCC/Insertbank UAE/04-Update_API_BANK.sql similarity index 100% rename from Insertbank UAE/04-Update_API_BANK.sql rename to Deployment/24791-GCC/Insertbank UAE/04-Update_API_BANK.sql diff --git a/Pakistan Bank List/010_Insert_API_BANK_LIST_MASTER.sql b/Deployment/24791-GCC/Pakistan Bank List/010_Insert_API_BANK_LIST_MASTER.sql similarity index 100% rename from Pakistan Bank List/010_Insert_API_BANK_LIST_MASTER.sql rename to Deployment/24791-GCC/Pakistan Bank List/010_Insert_API_BANK_LIST_MASTER.sql diff --git a/Pakistan Bank List/020_Insert_API_BANK_LIST.sql b/Deployment/24791-GCC/Pakistan Bank List/020_Insert_API_BANK_LIST.sql similarity index 100% rename from Pakistan Bank List/020_Insert_API_BANK_LIST.sql rename to Deployment/24791-GCC/Pakistan Bank List/020_Insert_API_BANK_LIST.sql diff --git a/Pakistan Bank List/030_UPDATE_API_BANK_LIST_MASTER.sql b/Deployment/24791-GCC/Pakistan Bank List/030_UPDATE_API_BANK_LIST_MASTER.sql similarity index 100% rename from Pakistan Bank List/030_UPDATE_API_BANK_LIST_MASTER.sql rename to Deployment/24791-GCC/Pakistan Bank List/030_UPDATE_API_BANK_LIST_MASTER.sql diff --git a/Pakistan Bank List/PakishanLive/01-InsertBankMaster.sql b/Deployment/24791-GCC/Pakistan Bank List/PakishanLive/01-InsertBankMaster.sql similarity index 100% rename from Pakistan Bank List/PakishanLive/01-InsertBankMaster.sql rename to Deployment/24791-GCC/Pakistan Bank List/PakishanLive/01-InsertBankMaster.sql diff --git a/Pakistan Bank List/PakishanLive/02-InsertBankList.sql b/Deployment/24791-GCC/Pakistan Bank List/PakishanLive/02-InsertBankList.sql similarity index 100% rename from Pakistan Bank List/PakishanLive/02-InsertBankList.sql rename to Deployment/24791-GCC/Pakistan Bank List/PakishanLive/02-InsertBankList.sql diff --git a/Pakistan Bank List/PakishanLive/UpdatebankCode.sql b/Deployment/24791-GCC/Pakistan Bank List/PakishanLive/UpdatebankCode.sql similarity index 100% rename from Pakistan Bank List/PakishanLive/UpdatebankCode.sql rename to Deployment/24791-GCC/Pakistan Bank List/PakishanLive/UpdatebankCode.sql diff --git a/Pakistan Bank List/UPDATE_BRANCH_CODE_API_BANK_LIST.sql b/Deployment/24791-GCC/Pakistan Bank List/UPDATE_BRANCH_CODE_API_BANK_LIST.sql similarity index 100% rename from Pakistan Bank List/UPDATE_BRANCH_CODE_API_BANK_LIST.sql rename to Deployment/24791-GCC/Pakistan Bank List/UPDATE_BRANCH_CODE_API_BANK_LIST.sql diff --git a/SriLanka_Banklist/01-API_BANK_LIST_MASTER-INSERT-SRILANKA.sql b/Deployment/24791-GCC/SriLanka_Banklist/01-API_BANK_LIST_MASTER-INSERT-SRILANKA.sql similarity index 100% rename from SriLanka_Banklist/01-API_BANK_LIST_MASTER-INSERT-SRILANKA.sql rename to Deployment/24791-GCC/SriLanka_Banklist/01-API_BANK_LIST_MASTER-INSERT-SRILANKA.sql diff --git a/SriLanka_Banklist/02-API_BANKLIST-INSERT-SRILANKA.sql b/Deployment/24791-GCC/SriLanka_Banklist/02-API_BANKLIST-INSERT-SRILANKA.sql similarity index 100% rename from SriLanka_Banklist/02-API_BANKLIST-INSERT-SRILANKA.sql rename to Deployment/24791-GCC/SriLanka_Banklist/02-API_BANKLIST-INSERT-SRILANKA.sql diff --git a/SriLanka_Banklist/03-UPDATE-API_Bank_list_Master.sql b/Deployment/24791-GCC/SriLanka_Banklist/03-UPDATE-API_Bank_list_Master.sql similarity index 100% rename from SriLanka_Banklist/03-UPDATE-API_Bank_list_Master.sql rename to Deployment/24791-GCC/SriLanka_Banklist/03-UPDATE-API_Bank_list_Master.sql diff --git a/SriLanka_Banklist/updatebank_code Api_bank_List_Srilanka.sql b/Deployment/24791-GCC/SriLanka_Banklist/updatebank_code Api_bank_List_Srilanka.sql similarity index 100% rename from SriLanka_Banklist/updatebank_code Api_bank_List_Srilanka.sql rename to Deployment/24791-GCC/SriLanka_Banklist/updatebank_code Api_bank_List_Srilanka.sql diff --git a/Deployment/24827-Promotional-Rate/PROC_DROPDOWN_LIST.sql b/Deployment/24827-Promotional-Rate/PROC_DROPDOWN_LIST.sql index 6746171..6acae62 100644 Binary files a/Deployment/24827-Promotional-Rate/PROC_DROPDOWN_LIST.sql and b/Deployment/24827-Promotional-Rate/PROC_DROPDOWN_LIST.sql differ diff --git a/StoredProc/JsonRx_Proc_UserRegistration_V2.sql b/StoredProc/JsonRx_Proc_UserRegistration_V2.sql index cc59f30..14a5ee1 100644 Binary files a/StoredProc/JsonRx_Proc_UserRegistration_V2.sql and b/StoredProc/JsonRx_Proc_UserRegistration_V2.sql differ diff --git a/StoredProc/PROC_TRANSACTION_REPORT.sql b/StoredProc/PROC_TRANSACTION_REPORT.sql index dae4d52..338947f 100644 Binary files a/StoredProc/PROC_TRANSACTION_REPORT.sql and b/StoredProc/PROC_TRANSACTION_REPORT.sql differ diff --git a/StoredProc/Proc_UKListManagement.sql b/StoredProc/Proc_UKListManagement.sql new file mode 100644 index 0000000..7dd5d90 Binary files /dev/null and b/StoredProc/Proc_UKListManagement.sql differ diff --git a/StoredProc/proc_notification.sql b/StoredProc/proc_notification.sql index 8b0bd8a..0cdef8b 100644 Binary files a/StoredProc/proc_notification.sql and b/StoredProc/proc_notification.sql differ diff --git a/StoredProc/proc_online_core_customerSetup.sql b/StoredProc/proc_online_core_customerSetup.sql index 2a3fb69..449fb70 100644 Binary files a/StoredProc/proc_online_core_customerSetup.sql and b/StoredProc/proc_online_core_customerSetup.sql differ