|
|
@ -13,6 +13,7 @@ ALTER PROC PROC_DYNAMIC_TABLE |
|
|
|
,@ConfirmPassword VARCHAR(40) = NULL |
|
|
|
,@ipAddress VARCHAR(20) = NULL |
|
|
|
,@id BIGINT = NULL |
|
|
|
,@SchemeId VARCHAR(30) = NULL |
|
|
|
) |
|
|
|
AS; |
|
|
|
SET NOCOUNT ON; |
|
|
@ -65,7 +66,12 @@ BEGIN TRY |
|
|
|
END |
|
|
|
ELSE IF @Flag = 'PayoutMethod' |
|
|
|
BEGIN |
|
|
|
DECLARE @PayoutCurrency VARCHAR(5) |
|
|
|
DECLARE @PayoutCurrency VARCHAR(5), @tpExRate MONEY |
|
|
|
|
|
|
|
SELECT @tpExRate = detailDesc |
|
|
|
FROM staticDataValue (NOLOCK) |
|
|
|
WHERE typeId = '8109' |
|
|
|
AND detailTitle = @SchemeId |
|
|
|
|
|
|
|
SELECT @PayoutCurrency = CM.currencyCode |
|
|
|
FROM countryCurrency CC(NOLOCK) |
|
|
@ -83,6 +89,7 @@ BEGIN TRY |
|
|
|
,CM.CountryName |
|
|
|
,AgentId |
|
|
|
,PayoutCurrency = @PayoutCurrency |
|
|
|
,tpExRate = @tpExRate |
|
|
|
FROM TblPartnerwiseCountry P(NOLOCK) |
|
|
|
INNER JOIN COUNTRYMASTER CM(NOLOCK) ON CM.COUNTRYID = P.COUNTRYID |
|
|
|
WHERE P.countryId = @CountryId |
|
|
@ -101,6 +108,7 @@ BEGIN TRY |
|
|
|
,CM.CountryName |
|
|
|
,AgentId |
|
|
|
,PayoutCurrency = @PayoutCurrency |
|
|
|
,tpExRate = @tpExRate |
|
|
|
FROM TblPartnerwiseCountry P(NOLOCK) |
|
|
|
INNER JOIN COUNTRYMASTER CM(NOLOCK) ON CM.COUNTRYID = P.COUNTRYID |
|
|
|
WHERE P.countryId = @CountryId |
|
|
@ -144,9 +152,9 @@ BEGIN TRY |
|
|
|
END |
|
|
|
ELSE IF @Flag = 'howToPay' |
|
|
|
BEGIN |
|
|
|
SELECT Id = 'BT', Text = 'Bank Transfer (Best Rate)', errorCode = 0, msg = 'Success' UNION ALL |
|
|
|
SELECT Id = 'CARD', Text = 'Debit/Credit Card', errorCode = 0, msg = 'Success' UNION ALL |
|
|
|
SELECT Id = 'ONB', Text = 'Online Banking/Open Banking', errorCode = 0, msg = 'Success' |
|
|
|
SELECT Id = 'ONLINE', Text = 'Online Banking(Best Rate)', extra = 0, errorCode = 0, msg = 'Success' UNION ALL |
|
|
|
SELECT Id = 'EBANKING', Text = 'E-Banking/ (Good rate)', extra = 0, errorCode = 0, msg = 'Success' UNION ALL |
|
|
|
SELECT Id = 'DEBIT_CARD', Text = 'DEBIT CARD', extra = 0.15, errorCode = 0, msg = 'Success' |
|
|
|
END |
|
|
|
ELSE IF @Flag = 'pCountry' |
|
|
|
BEGIN |
|
|
@ -259,9 +267,17 @@ BEGIN TRY |
|
|
|
END |
|
|
|
ELSE IF @Flag = 'Txn-Detail' |
|
|
|
BEGIN |
|
|
|
SELECT ControlNo = dbo.decryptdb(rt.controlNo), rt.receivername, rt.camt, rt.id |
|
|
|
SELECT ControlNo = dbo.decryptdb(rt.controlNo), rt.receivername, rt.camt, rt.id, rt.collCurr, tr.address, rt.createdDate, rt.paymentMethod |
|
|
|
, collMode = rt.depositType, rt.pbankname, rt.pbankBranchName, rt.accountNo, rt.purposeofremit |
|
|
|
, status = CASE WHEN payStatus = 'Paid' THEN 'Paid' WHEN tranStatus = 'Cancel' OR payStatus = 'Cancel' THEN 'Cancel' ELSE 'Processing' END |
|
|
|
, rt.pamt, rt.payoutCurr, rt.customerRate |
|
|
|
, PromotionPremiumRate = 0 |
|
|
|
, rt.tamt, rt.collCurr, rt.servicecharge |
|
|
|
, PromotionDiscount = 0 |
|
|
|
, rt.camt, rt.pCountry |
|
|
|
FROM remitTranTemp rt(NOLOCK) |
|
|
|
WHERE id = @id |
|
|
|
INNER JOIN tranReceiversTemp tr(NOLOCK) on tr.tranid = rt.id |
|
|
|
WHERE rt.id = @id |
|
|
|
END |
|
|
|
END TRY |
|
|
|
BEGIN CATCH |
|
|
|