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.
 
 

268 lines
4.6 KiB

USE [FastMoneyPro_Remit]
GO
/****** Object: View [dbo].[vwRemitTran] Script Date: 10/20/2023 11:51:59 PM ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
ALTER VIEW [dbo].[vwRemitTran]
AS
---------------------------------------------
--Aug 05 JME-567 ->add col 'receiverNameAlt' changes to show BENEFICIARY NAME AS PER BANK
--#101 mobile changes
-- # 1297 - add rewardpoints in transaction history and request summary
-- #1404 - @flag = 's' , add payer label in search transaction
---------------------------------------------
SELECT [id]
,[holdTranId]
,[controlNo]
,[sCurrCostRate]
,[sCurrHoMargin]
,[sCurrSuperAgentMargin]
,[sCurrAgentMargin]
,[pCurrCostRate]
,[pCurrHoMargin]
,[pCurrSuperAgentMargin]
,[pCurrAgentMargin]
,[agentCrossSettRate]
,[customerRate]
,[sAgentSettRate]
,[pDateCostRate]
,[agentFxGain]
,[treasuryTolerance]
,[customerPremium]
,[schemePremium]
,[sharingValue]
,[sharingType]
,[serviceCharge]
,[handlingFee]
,[sAgentComm]
,[sAgentCommCurrency]
,[sSuperAgentComm]
,[sSuperAgentCommCurrency]
,[pAgentComm]
,[pAgentCommCurrency]
,[pSuperAgentComm]
,[pSuperAgentCommCurrency]
,[promotionCode]
,[promotionType]
,[pMessage]
,[sCountry]
,[sSuperAgent]
,[sSuperAgentName]
,[sAgent]
,[sAgentName]
,[sBranch]
,[sBranchName]
,[pCountry]
,[pSuperAgent]
,[pSuperAgentName]
,[pAgent]
,[pAgentName]
,[pBranch]
,[pBranchName]
,[paymentMethod]
,[pBank]
,[pBankName]
,[pBankBranch]
,[pBankBranchName]
,[accountNo]
,[externalBankCode]
,[collMode]
,[collCurr]
,[tAmt]
,[cAmt]
,[pAmt]
,[payoutCurr]
,[relWithSender]
,[purposeOfRemit]
,[sourceOfFund]
,[tranStatus]
,[payStatus]
,[createdDate]
,[createdDateLocal]
,[createdBy]
,[modifiedDate]
,[modifiedDateLocal]
,[modifiedBy]
,[approvedDate]
,[approvedDateLocal]
,[approvedBy]
,[paidDate]
,[paidDateLocal]
,[paidBy]
,[cancelRequestDate]
,[cancelRequestDateLocal]
,[cancelRequestBy]
,[cancelReason]
,[refund]
,[cancelCharge]
,[cancelApprovedDate]
,[cancelApprovedDateLocal]
,[cancelApprovedBy]
,[blockedDate]
,[blockedBy]
,[lockStatus]
,[lockedDate]
,[lockedDateLocal]
,[lockedBy]
,[payTokenId]
,[tranType]
,[ContNo]
,[uploadLogId]
,[voucherNo]
,[controlNo2]
,[pBankType]
,[expectedPayoutAgent]
,[routedBy]
,[routedDate]
,[senderName]
,[receiverName]
,[trnStatusBeforeCnlReq]
,[schemeId]
,[bonusPoint]
,pLocation
,pState
,pDistrict
,sRouteId
,postedBy
,postedDate
,receiverNameAlt
,[referralId]
,[rewardPoints]
,[rewardType]
,[PayerId]
,[verifiedDate]
,[depositType]
FROM remitTran WITH (NOLOCK)
UNION ALL
SELECT [id]
,[id]
,[controlNo]
,[sCurrCostRate]
,[sCurrHoMargin]
,[sCurrSuperAgentMargin]
,[sCurrAgentMargin]
,[pCurrCostRate]
,[pCurrHoMargin]
,[pCurrSuperAgentMargin]
,[pCurrAgentMargin]
,[agentCrossSettRate]
,[customerRate]
,[sAgentSettRate]
,[pDateCostRate]
,[agentFxGain]
,[treasuryTolerance]
,[customerPremium]
,[schemePremium]
,[sharingValue]
,[sharingType]
,[serviceCharge]
,[handlingFee]
,[sAgentComm]
,[sAgentCommCurrency]
,[sSuperAgentComm]
,[sSuperAgentCommCurrency]
,[pAgentComm]
,[pAgentCommCurrency]
,[pSuperAgentComm]
,[pSuperAgentCommCurrency]
,[promotionCode]
,[promotionType]
,[pMessage]
,[sCountry]
,[sSuperAgent]
,[sSuperAgentName]
,[sAgent]
,[sAgentName]
,[sBranch]
,[sBranchName]
,[pCountry]
,[pSuperAgent]
,[pSuperAgentName]
,[pAgent]
,[pAgentName]
,[pBranch]
,[pBranchName]
,[paymentMethod]
,[pBank]
,[pBankName]
,[pBankBranch]
,[pBankBranchName]
,[accountNo]
,[externalBankCode]
,[collMode]
,[collCurr]
,[tAmt]
,[cAmt]
,[pAmt]
,[payoutCurr]
,[relWithSender]
,[purposeOfRemit]
,[sourceOfFund]
,[tranStatus]
,[payStatus]
,[createdDate]
,[createdDateLocal]
,[createdBy]
,[modifiedDate]
,[modifiedDateLocal]
,[modifiedBy]
,[approvedDate]
,[approvedDateLocal]
,[approvedBy]
,[paidDate]
,[paidDateLocal]
,[paidBy]
,[cancelRequestDate]
,[cancelRequestDateLocal]
,[cancelRequestBy]
,[cancelReason]
,[refund]
,[cancelCharge]
,[cancelApprovedDate]
,[cancelApprovedDateLocal]
,[cancelApprovedBy]
,[blockedDate]
,[blockedBy]
,[lockStatus]
,[lockedDate]
,[lockedDateLocal]
,[lockedBy]
,[payTokenId]
,[tranType]
,[ContNo]
,[uploadLogId]
,[voucherNo]
,[controlNo2]
,[pBankType]
,[expectedPayoutAgent]
,[routedBy]
,[routedDate]
,[senderName]
,[receiverName]
,[trnStatusBeforeCnlReq]
,[schemeId]
,[bonusPoint]
,pLocation
,pState
,pDistrict
,NULL sRouteId
,NULL postedBy
,NULL postedDate
,receiverNameAlt
,[referralId] = NULL
,[rewardPoints]
,[rewardType]
,[PayerId]
,[verifiedDate]
,[depositType]
FROM remitTranTemp WITH (NOLOCK)
GO