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

11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
11 months ago
  1. USE [FastMoneyPro_Remit]
  2. GO
  3. /****** Object: View [dbo].[vwRemitTran] Script Date: 10/20/2023 11:51:59 PM ******/
  4. SET ANSI_NULLS ON
  5. GO
  6. SET QUOTED_IDENTIFIER ON
  7. GO
  8. ALTER VIEW [dbo].[vwRemitTran]
  9. AS
  10. ---------------------------------------------
  11. --Aug 05 JME-567 ->add col 'receiverNameAlt' changes to show BENEFICIARY NAME AS PER BANK
  12. --#101 mobile changes
  13. -- # 1297 - add rewardpoints in transaction history and request summary
  14. -- #1404 - @flag = 's' , add payer label in search transaction
  15. ---------------------------------------------
  16. SELECT [id]
  17. ,[holdTranId]
  18. ,[controlNo]
  19. ,[sCurrCostRate]
  20. ,[sCurrHoMargin]
  21. ,[sCurrSuperAgentMargin]
  22. ,[sCurrAgentMargin]
  23. ,[pCurrCostRate]
  24. ,[pCurrHoMargin]
  25. ,[pCurrSuperAgentMargin]
  26. ,[pCurrAgentMargin]
  27. ,[agentCrossSettRate]
  28. ,[customerRate]
  29. ,[sAgentSettRate]
  30. ,[pDateCostRate]
  31. ,[agentFxGain]
  32. ,[treasuryTolerance]
  33. ,[customerPremium]
  34. ,[schemePremium]
  35. ,[sharingValue]
  36. ,[sharingType]
  37. ,[serviceCharge]
  38. ,[handlingFee]
  39. ,[sAgentComm]
  40. ,[sAgentCommCurrency]
  41. ,[sSuperAgentComm]
  42. ,[sSuperAgentCommCurrency]
  43. ,[pAgentComm]
  44. ,[pAgentCommCurrency]
  45. ,[pSuperAgentComm]
  46. ,[pSuperAgentCommCurrency]
  47. ,[promotionCode]
  48. ,[promotionType]
  49. ,[pMessage]
  50. ,[sCountry]
  51. ,[sSuperAgent]
  52. ,[sSuperAgentName]
  53. ,[sAgent]
  54. ,[sAgentName]
  55. ,[sBranch]
  56. ,[sBranchName]
  57. ,[pCountry]
  58. ,[pSuperAgent]
  59. ,[pSuperAgentName]
  60. ,[pAgent]
  61. ,[pAgentName]
  62. ,[pBranch]
  63. ,[pBranchName]
  64. ,[paymentMethod]
  65. ,[pBank]
  66. ,[pBankName]
  67. ,[pBankBranch]
  68. ,[pBankBranchName]
  69. ,[accountNo]
  70. ,[externalBankCode]
  71. ,[collMode]
  72. ,[collCurr]
  73. ,[tAmt]
  74. ,[cAmt]
  75. ,[pAmt]
  76. ,[payoutCurr]
  77. ,[relWithSender]
  78. ,[purposeOfRemit]
  79. ,[sourceOfFund]
  80. ,[tranStatus]
  81. ,[payStatus]
  82. ,[createdDate]
  83. ,[createdDateLocal]
  84. ,[createdBy]
  85. ,[modifiedDate]
  86. ,[modifiedDateLocal]
  87. ,[modifiedBy]
  88. ,[approvedDate]
  89. ,[approvedDateLocal]
  90. ,[approvedBy]
  91. ,[paidDate]
  92. ,[paidDateLocal]
  93. ,[paidBy]
  94. ,[cancelRequestDate]
  95. ,[cancelRequestDateLocal]
  96. ,[cancelRequestBy]
  97. ,[cancelReason]
  98. ,[refund]
  99. ,[cancelCharge]
  100. ,[cancelApprovedDate]
  101. ,[cancelApprovedDateLocal]
  102. ,[cancelApprovedBy]
  103. ,[blockedDate]
  104. ,[blockedBy]
  105. ,[lockStatus]
  106. ,[lockedDate]
  107. ,[lockedDateLocal]
  108. ,[lockedBy]
  109. ,[payTokenId]
  110. ,[tranType]
  111. ,[ContNo]
  112. ,[uploadLogId]
  113. ,[voucherNo]
  114. ,[controlNo2]
  115. ,[pBankType]
  116. ,[expectedPayoutAgent]
  117. ,[routedBy]
  118. ,[routedDate]
  119. ,[senderName]
  120. ,[receiverName]
  121. ,[trnStatusBeforeCnlReq]
  122. ,[schemeId]
  123. ,[bonusPoint]
  124. ,pLocation
  125. ,pState
  126. ,pDistrict
  127. ,sRouteId
  128. ,postedBy
  129. ,postedDate
  130. ,receiverNameAlt
  131. ,[referralId]
  132. ,[rewardPoints]
  133. ,[rewardType]
  134. ,[PayerId]
  135. ,[verifiedDate]
  136. ,[depositType]
  137. FROM remitTran WITH (NOLOCK)
  138. UNION ALL
  139. SELECT [id]
  140. ,[id]
  141. ,[controlNo]
  142. ,[sCurrCostRate]
  143. ,[sCurrHoMargin]
  144. ,[sCurrSuperAgentMargin]
  145. ,[sCurrAgentMargin]
  146. ,[pCurrCostRate]
  147. ,[pCurrHoMargin]
  148. ,[pCurrSuperAgentMargin]
  149. ,[pCurrAgentMargin]
  150. ,[agentCrossSettRate]
  151. ,[customerRate]
  152. ,[sAgentSettRate]
  153. ,[pDateCostRate]
  154. ,[agentFxGain]
  155. ,[treasuryTolerance]
  156. ,[customerPremium]
  157. ,[schemePremium]
  158. ,[sharingValue]
  159. ,[sharingType]
  160. ,[serviceCharge]
  161. ,[handlingFee]
  162. ,[sAgentComm]
  163. ,[sAgentCommCurrency]
  164. ,[sSuperAgentComm]
  165. ,[sSuperAgentCommCurrency]
  166. ,[pAgentComm]
  167. ,[pAgentCommCurrency]
  168. ,[pSuperAgentComm]
  169. ,[pSuperAgentCommCurrency]
  170. ,[promotionCode]
  171. ,[promotionType]
  172. ,[pMessage]
  173. ,[sCountry]
  174. ,[sSuperAgent]
  175. ,[sSuperAgentName]
  176. ,[sAgent]
  177. ,[sAgentName]
  178. ,[sBranch]
  179. ,[sBranchName]
  180. ,[pCountry]
  181. ,[pSuperAgent]
  182. ,[pSuperAgentName]
  183. ,[pAgent]
  184. ,[pAgentName]
  185. ,[pBranch]
  186. ,[pBranchName]
  187. ,[paymentMethod]
  188. ,[pBank]
  189. ,[pBankName]
  190. ,[pBankBranch]
  191. ,[pBankBranchName]
  192. ,[accountNo]
  193. ,[externalBankCode]
  194. ,[collMode]
  195. ,[collCurr]
  196. ,[tAmt]
  197. ,[cAmt]
  198. ,[pAmt]
  199. ,[payoutCurr]
  200. ,[relWithSender]
  201. ,[purposeOfRemit]
  202. ,[sourceOfFund]
  203. ,[tranStatus]
  204. ,[payStatus]
  205. ,[createdDate]
  206. ,[createdDateLocal]
  207. ,[createdBy]
  208. ,[modifiedDate]
  209. ,[modifiedDateLocal]
  210. ,[modifiedBy]
  211. ,[approvedDate]
  212. ,[approvedDateLocal]
  213. ,[approvedBy]
  214. ,[paidDate]
  215. ,[paidDateLocal]
  216. ,[paidBy]
  217. ,[cancelRequestDate]
  218. ,[cancelRequestDateLocal]
  219. ,[cancelRequestBy]
  220. ,[cancelReason]
  221. ,[refund]
  222. ,[cancelCharge]
  223. ,[cancelApprovedDate]
  224. ,[cancelApprovedDateLocal]
  225. ,[cancelApprovedBy]
  226. ,[blockedDate]
  227. ,[blockedBy]
  228. ,[lockStatus]
  229. ,[lockedDate]
  230. ,[lockedDateLocal]
  231. ,[lockedBy]
  232. ,[payTokenId]
  233. ,[tranType]
  234. ,[ContNo]
  235. ,[uploadLogId]
  236. ,[voucherNo]
  237. ,[controlNo2]
  238. ,[pBankType]
  239. ,[expectedPayoutAgent]
  240. ,[routedBy]
  241. ,[routedDate]
  242. ,[senderName]
  243. ,[receiverName]
  244. ,[trnStatusBeforeCnlReq]
  245. ,[schemeId]
  246. ,[bonusPoint]
  247. ,pLocation
  248. ,pState
  249. ,pDistrict
  250. ,NULL sRouteId
  251. ,NULL postedBy
  252. ,NULL postedDate
  253. ,receiverNameAlt
  254. ,[referralId] = NULL
  255. ,[rewardPoints]
  256. ,[rewardType]
  257. ,[PayerId]
  258. ,[verifiedDate]
  259. ,[depositType]
  260. FROM remitTranTemp WITH (NOLOCK)
  261. GO