diff --git a/CLEAR TXN BEFORE DATA MIGRATION.sql b/CLEAR TXN BEFORE DATA MIGRATION.sql index 0a60558..1cb171a 100644 --- a/CLEAR TXN BEFORE DATA MIGRATION.sql +++ b/CLEAR TXN BEFORE DATA MIGRATION.sql @@ -41,6 +41,7 @@ TRUNCATE TABLE CUSTOMER_DEPOSIT_LOGS TRUNCATE TABLE customerDocument TRUNCATE TABLE CustomerEnquiry TRUNCATE TABLE customerMaster +TRUNCATE TABLE mobile_userregistration TRUNCATE TABLE TBLCUSTOMERMODIFYLOGS TRUNCATE TABLE TBL_CUSTOMER_KYC truncate table branch_cash_in_out diff --git a/Changes.txt b/Changes.txt new file mode 100644 index 0000000..0950e90 --- /dev/null +++ b/Changes.txt @@ -0,0 +1,101 @@ +2023-08-05 +JME Japan Changes: +1. DB Clean +2. Country Related Setups +3. Customer registration country Setup: proc_online_dropDownList @flag='onlineCountrylist' + + +2023-08-06 +1. Customer populate issue send txn page: proc_searchCustomerIRH +-> Issue with countryId, was passing Japan countryid +2. Issue in login: set Japan country code while login: proc_applicationIntlLogin +-> Update agentMaster agentCountry,agentCountryId to UK +-> Query: update agentmaster set agentCountry='United Kingdom',agentCountryId=233 where agentCountry='japan' +3. Delete all the agents: +delete from agentmaster where agentid not in (393877, 394390, 394397, 394398, 1001) +delete from applicationusers where agentid not in (393877, 394390, 394397, 394398, 1001) +delete from applicationusers where userid not in (10001, 10002, 52768) + +4. Further work on DB Clean Task: +truncate table sscDetail +truncate table sscDetailHistory +truncate table sscDetailTemp +truncate table sscMaster +truncate table sscMasterHistory +truncate table creditLimit +truncate table creditLimitHistory +truncate table creditLimitInt +truncate table creditLimitIntHistory +truncate table receiveTranLimit +truncate table receiveTranLimitMod +truncate table sendTranLimit +truncate table sendTranLimitMod + +truncate table TBL_TXN_COMPLIANCE_CDDI + +truncate table csDetail +truncate table csDetailHistory +truncate table csDetailRec +truncate table csMaster +truncate table csMasterHistory +truncate table csSafeListRuleDetail +truncate table csSafelistRuleDetailHistory + +truncate table scPayDetail +truncate table scPayDetailHistory +truncate table scPayMaster +truncate table scPayMasterHistory +truncate table crossRateDecimalMask +truncate table rateMask +truncate table rateMaskHistory +truncate table defExRate +truncate table defExRateHistory +truncate table exRateTreasury +truncate table exRateTreasuryHistory +truncate table exRateTreasuryMod + +TRUNCATE TABLE AGENT_BRANCH_RUNNING_BALANCE +TRUNCATE TABLE REFERRAL_AGENT_WISE + + +5. Replace JME with IMEUK while creating Agent: proc_agentMaster +6. Agent details updated to IME UK: +-> update agentmaster set agentname='IME London', agentaddress='Pentax House, South Hill Avenue, South Harrow, London, HA2 0DU', agentcity='South Harrow', agentstate='South Harrow' where agentid=393877 +update agentmaster set agentname='IME London Head Office', agentaddress='Pentax House, South Hill Avenue, South Harrow, London, HA2 0DU', agentcity='South Harrow', agentstate='South Harrow' where agentid=394390 + +7. Delete Bank and Branch related datas and drop unnecessary tables +drop table API_BANK_BRANCH_LIST_BAK +drop table API_BANK_LIST_1 +drop table API_BANK_LIST_BAK +drop table API_BANK_LIST_JULY30 +truncate table API_BANK_LIST_TMP +truncate table API_BANK_LIST_MASTER_TMP +delete from API_BANK_LIST where api_partner_id <> 394397 +delete from API_BANK_BRANCH_LIST where branch_id <> 584068 +delete from API_BANK_LIST_MASTER where bank_country<>'nepal' + +Misc Changes: +Change Country code to: gb (for mobile number for UK) +Remove Introducer from send page. +PROC_REFERALSETUP: Account creation logic changed and Referral code generation logic changed + +2023-08-07: +1. Service charge setup +2. Exchange Rate Setup +-> Rate Mask: proc_currencyMaster @flag='bc' +-> Cross Rate Decimal Mask +-> Cost Rate Setup +-> Exchange Rate Treasury +3.Partner Mapping (Issue) +-> Same user can approve the setup +4. Load limit and collection currency +-> proc_sendIRH @flag = 'acBalByAgentId' +-> change @pCountryId = UK, was hardcoded +5. Populate prefecture issue in send page of customer. +-> Hardcode countryid in send page. +6. Add Collect mode in send page. +-> from country setup +-> Update the current Send Page Field Setup, from Japan to United Kingdom +7. Customer ID type is not valid, please update ID details first! +-> proc_sendIRH: change the hardcoded countryId 113 to UK country Id +-> FNAGetUserCashLimitDetails: Change hardcoded value JME to IME. \ No newline at end of file diff --git a/Identity_Insert_AgentMaster.sql b/Identity_Insert_AgentMaster.sql new file mode 100644 index 0000000..480b86f --- /dev/null +++ b/Identity_Insert_AgentMaster.sql @@ -0,0 +1,190 @@ + +UPDATE agentmaster set agentId='394395' WHERE agentName='IME Mobile' + +select * from agentmaster where agentid=394449 + +SET IDENTITY_INSERT agentmaster ON; + +insert into agentmaster(agentId,parentId +,agentName +,agentCode +,agentAddress +,agentCity +,agentCountry +,agentState +,agentDistrict +,agentZip +,agentLocation +,agentPhone1 +,agentPhone2 +,agentFax1 +,agentFax2 +,agentMobile1 +,agentMobile2 +,agentEmail1 +,agentEmail2 +,businessOrgType +,businessType +,agentRole +,agentType +,allowAccountDeposit +,actAsBranch +,contractExpiryDate +,renewalFollowupDate +,isSettlingAgent +,agentGrp +,businessLicense +,agentBlock +,agentCompanyName +,companyAddress +,companyCity +,companyCountry +,companyState +,companyDistrict +,companyZip +,companyPhone1 +,companyPhone2 +,companyFax1 +,companyFax2 +,companyEmail1 +,companyEmail2 +,localTime +,localCurrency +,agentDetails +,isActive +,isDeleted +,createdDate +,createdBy +,modifiedDate +,modifiedBy +,approvedDate +,approvedBy +,agentCountryId +,headMessage +,extCode +,swiftCode +,routingCode +,mapCodeInt +,mapCodeDom +,commCodeInt +,commCodeDom +,joinedDate +,isMigrated +,mapCodeIntAc +,mapCodeDomAc +,payOption +,agentApiType +,isHeadOffice +,routing +,isInternal +,cpEmail +,agentSettCurr +,contactPerson1 +,contactPerson2 +,latitude +,longitude +,agentAddress2 +,apiAgent +,BANKCODE +,BANKBRANCH +,BANKACCOUNTNUMBER +,ACCOUNTHOLDERNAME +,IsIntl +,IsDom +,isApiPartner +,branchCode +,maxValue) +select 394395,parentId +,agentName +,agentCode +,agentAddress +,agentCity +,agentCountry +,agentState +,agentDistrict +,agentZip +,agentLocation +,agentPhone1 +,agentPhone2 +,agentFax1 +,agentFax2 +,agentMobile1 +,agentMobile2 +,agentEmail1 +,agentEmail2 +,businessOrgType +,businessType +,agentRole +,agentType +,allowAccountDeposit +,actAsBranch +,contractExpiryDate +,renewalFollowupDate +,isSettlingAgent +,agentGrp +,businessLicense +,agentBlock +,agentCompanyName +,companyAddress +,companyCity +,companyCountry +,companyState +,companyDistrict +,companyZip +,companyPhone1 +,companyPhone2 +,companyFax1 +,companyFax2 +,companyEmail1 +,companyEmail2 +,localTime +,localCurrency +,agentDetails +,isActive +,isDeleted +,createdDate +,createdBy +,modifiedDate +,modifiedBy +,approvedDate +,approvedBy +,agentCountryId +,headMessage +,extCode +,swiftCode +,routingCode +,mapCodeInt +,mapCodeDom +,commCodeInt +,commCodeDom +,joinedDate +,isMigrated +,mapCodeIntAc +,mapCodeDomAc +,payOption +,agentApiType +,isHeadOffice +,routing +,isInternal +,cpEmail +,agentSettCurr +,contactPerson1 +,contactPerson2 +,latitude +,longitude +,agentAddress2 +,apiAgent +,BANKCODE +,BANKBRANCH +,BANKACCOUNTNUMBER +,ACCOUNTHOLDERNAME +,IsIntl +,IsDom +,isApiPartner +,branchCode +,maxValue +from agentmaster +where agentid=394449 + +SET IDENTITY_INSERT agentmaster OFF + diff --git a/StoredProc/JsonRx_Proc_UserRegistration_V2.sql b/StoredProc/JsonRx_Proc_UserRegistration_V2.sql new file mode 100644 index 0000000..01b62d6 Binary files /dev/null and b/StoredProc/JsonRx_Proc_UserRegistration_V2.sql differ diff --git a/StoredProc/PROC_GENERATE_MEMBERSHIP_ID.sql b/StoredProc/PROC_GENERATE_MEMBERSHIP_ID.sql new file mode 100644 index 0000000..941b552 Binary files /dev/null and b/StoredProc/PROC_GENERATE_MEMBERSHIP_ID.sql differ diff --git a/StoredProc/proc_get_exrate_master.sql b/StoredProc/proc_get_exrate_master.sql new file mode 100644 index 0000000..d8b361c Binary files /dev/null and b/StoredProc/proc_get_exrate_master.sql differ diff --git a/StoredProc/proc_mobile_StaticData.sql b/StoredProc/proc_mobile_StaticData.sql index d4132e3..fc04f15 100644 Binary files a/StoredProc/proc_mobile_StaticData.sql and b/StoredProc/proc_mobile_StaticData.sql differ diff --git a/Tables/ThirdpartyApilog.sql b/Tables/ThirdpartyApilog.sql new file mode 100644 index 0000000..cb06cf3 --- /dev/null +++ b/Tables/ThirdpartyApilog.sql @@ -0,0 +1,33 @@ +USE [LogDb] +GO + +/****** Object: Table [dbo].[tblThirdParty_ApiDetailLog] Script Date: 8/20/2023 12:07:58 AM ******/ +SET ANSI_NULLS ON +GO + +SET QUOTED_IDENTIFIER ON +GO +--DROP TABLE tblThirdParty_ApiDetailLog +CREATE TABLE [dbo].[tblThirdParty_ApiDetailLog]( + [rowId] [bigint] IDENTITY(1,1) NOT NULL, + [processId] [varchar](100) NULL, + [date] [datetime] NULL, + [thread] [varchar](255) NULL, + [level] [varchar](255) NULL, + [logger] [nvarchar](255) NULL, + [message] [nvarchar](max) NULL, + [exception] [nvarchar](max) NULL, + [logBy] [varchar](100) NULL, + [Provider] [varchar](30) NULL, + [ClientIpAddress] [nvarchar](128) NULL, + [UserName] [nvarchar](150) NULL, + [ControlNo] [varchar](50) NULL, + [MethodName] [varchar](100) NULL, +PRIMARY KEY CLUSTERED +( + [rowId] ASC +)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY] +) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY] +GO + + diff --git a/alter.txt b/alter.txt new file mode 100644 index 0000000..cc27249 --- /dev/null +++ b/alter.txt @@ -0,0 +1,5 @@ +ALTER TABLE customerMastertemp + ADD idIssueCountry INT NULL + + ALTER TABLE customerMaster + ADD idIssueCountry INT NULL \ No newline at end of file diff --git a/checklist.txt b/checklist.txt new file mode 100644 index 0000000..85d77a4 --- /dev/null +++ b/checklist.txt @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/idTypes.sql b/idTypes.sql new file mode 100644 index 0000000..ec19e9a --- /dev/null +++ b/idTypes.sql @@ -0,0 +1,31 @@ +SELECT valueId AS id + ,detailTitle AS [text] + + FROM countryIdType CID WITH (NOLOCK) + INNER JOIN staticDataValue SV WITH (NOLOCK) ON CID.IdTypeId = SV.valueId + WHERE ISNULL(SV.ISActive, 'Y') = 'Y' + AND ISNULL(isDeleted, 'N') <> 'Y' + AND ( + spFlag IS NULL + OR ISNULL(spFlag, 0) = 5200 + ) + --AND valueId in( '11168','11079','10997') + AND COUNTRYID = 233 +select * FROM countryIdType +update staticDataValue set detailTitle='EEA national Id Card' ,detailDesc='EEA national Id Card' , isActive='Y' +WHERE valueId='8008' --National ID +update staticDataValue set detailTitle='Bank Statement' ,detailDesc='Bank Statement' , isActive='Y' +WHERE valueId='11080' --Tohon +update staticDataValue set detailTitle='HM Forces ID' ,detailDesc='HM Forces ID' , isActive='Y' +WHERE valueId='11170' --Student Card +update staticDataValue set detailTitle='Utility bill' ,detailDesc='Utility bill' , isActive='Y' +WHERE valueId='11171' --CITIZEN NO +update staticDataValue set detailTitle='other Valid documents' ,detailDesc='other Valid documents' , isActive='Y' +WHERE valueId='11302' --other Gov. Issued + + + +UPDATE staticdatavalue set isActive='N', IS_DELETE='Y'WHERE typeID = 7009 + +update staticDataValue set detailTitle='Proof of Address Doc' , isActive='Y', IS_DELETE='N' +WHERE valueId='11316' and typeID = 7009 -- Utility Bills \ No newline at end of file diff --git a/rate.sql b/rate.sql new file mode 100644 index 0000000..7c8f303 --- /dev/null +++ b/rate.sql @@ -0,0 +1,91 @@ +EXEC proc_get_exRate_master @flag = 'False' +, @user = 'arjundhami554@gmail.com' +, @sCountryId = '113' +, @sAgent = '0' +, @sSuperAgent = '393877' +, @sBranch = '394395' +, @senderId = '0' +, @collCurr = 'GBP' +, @pCountryId = '151' +, @pCountry = 'Nepal' +, @pAgent = '0' +, @pCurr = 'NPR' +, @deliveryMethodId = '1' +, @cAmt = '0.0' +, @pAmt = '100000.0' +, @calBy = 'p' +, @couponCode = null +, @schemeId = null +, @payOutPartner = '0' +, @paymentType = null +, @cardOnline = null +, @TPexRate = null +, @isManualSc = 'N' +, @manualSc = '0.0' +, @ProcessFor = 'dashboard' +, @discountedFee = '0.0' + + +EXEC proc_get_exRate_master @flag = 'False' + ,@user = 'saraadhikari45@gmail.com' + ,@sCountryId = '113' + ,@sAgent = '0' + ,@sSuperAgent = '393877' + ,@sBranch = '394395' + ,@senderId = '0' + ,@collCurr = 'JPY' + ,@pCountryId = '203' + ,@pCountry = 'Vietnam' + ,@pAgent = '0' + ,@pCurr = 'VND' + ,@deliveryMethodId = '1' + ,@cAmt = '0.0' + ,@pAmt = '50000000.0' + ,@calBy = 'p' + ,@couponCode = NULL + ,@schemeId = NULL + ,@payOutPartner = '0' + ,@paymentType = NULL + ,@cardOnline = NULL + ,@TPexRate = NULL + ,@isManualSc = 'N' + ,@manualSc = '0.0' + ,@ProcessFor = 'dashboard' + ,@discountedFee = '0.0' + + + + /****** Script for SelectTopNRows command from SSMS ******/ +SELECT tranType,pAgent,* + FROM [FastMoneyPro_Remit].[dbo].[exRateTreasury] where pCountry='151' + + --UPDATE [exRateTreasury] set cAgent=NULL where pCountry='151' + --delete from [exRateTreasury] where exRateTreasuryId='3' + /****** Script for SelectTopNRows command from SSMS ******/ +SELECT * + FROM [FastMoneyPro_Remit].[dbo].[defExRate] + + SELECT pAgent,* FROM exRateTreasury WITH(NOLOCK) WHERE ISNULL(isActive, 'N') = 'Y' + AND cCurrency = 'GBP' AND pCurrency = 'NPR' AND cAgent = '394395' AND (pAgent=394398) + AND (pCountry = 151) + + SELECT exRateTreasuryId,* FROM exRateTreasury WITH(NOLOCK) WHERE ISNULL(isActive, 'N') = 'Y' + AND cCurrency = 'GBP' AND pCurrency = 'NPR' AND cAgent = '394395' AND pAgent = '394398' AND tranType IS NULL + + select * FROM agentmaster + select * FROM dbo.FNAGetExRateDetails(3) + + select * FROM dbo.FNAGetExRate('233', '0', '394395', 'GBP', '151', '394398', 'NPR', 1) + + + SELECT * FROM dbo.FNAGetExRate(223,394395,'','GBP',151,'394398','NPR',1) + SELECT * + FROM agentMaster(NOLOCK) + WHERE extCode = 'NP ANYWHERE' + + SELECT * + FROM TblPartnerwiseCountry(NOLOCK) + WHERE CountryId = '151' + AND IsActive = 1 + AND ISNULL(IsMobileEnabled, 0) = 1 + AND ISNULL(PaymentMethod, @deliveryMethodId) = @deliveryMethodId \ No newline at end of file