|
@ -43,7 +43,7 @@ |
|
|
<div class="col-md-10"> |
|
|
<div class="col-md-10"> |
|
|
<div class="mb-3"> |
|
|
<div class="mb-3"> |
|
|
<div class="form-floating"> |
|
|
<div class="form-floating"> |
|
|
<select asp-for="CollMode" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("howToPay", true)" class="form-select" required></select> |
|
|
|
|
|
|
|
|
<select asp-for="SchemeId" asp-items="@CustomerOnlineV2.Helper.HelperClass.GetDropdownData("howToPay", true)" class="form-select" required></select> |
|
|
<label class="form-label">How do you pay us? </label> |
|
|
<label class="form-label">How do you pay us? </label> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
@ -179,6 +179,7 @@ |
|
|
<input type="hidden" id="hdnTransferAmount" /> |
|
|
<input type="hidden" id="hdnTransferAmount" /> |
|
|
<input type="hidden" id="hdnServiceCharge" /> |
|
|
<input type="hidden" id="hdnServiceCharge" /> |
|
|
<input type="hidden" id="hdnExRate" /> |
|
|
<input type="hidden" id="hdnExRate" /> |
|
|
|
|
|
<input type="hidden" id="hdnTPExRate" /> |
|
|
<input type="hidden" id="hdnForexSessionId" /> |
|
|
<input type="hidden" id="hdnForexSessionId" /> |
|
|
<input type="hidden" id="hdnProcessId" /> |
|
|
<input type="hidden" id="hdnProcessId" /> |
|
|
|
|
|
|
|
@ -257,13 +258,14 @@ |
|
|
DisableCalculateButton(); |
|
|
DisableCalculateButton(); |
|
|
debugger |
|
|
debugger |
|
|
let receivingCountry = $('#ReceivingCountry').val(); |
|
|
let receivingCountry = $('#ReceivingCountry').val(); |
|
|
let collMode = $('#CollMode').val(); |
|
|
|
|
|
let deliveryMethod = $('#DeliveryMethod').val(); |
|
|
let deliveryMethod = $('#DeliveryMethod').val(); |
|
|
let collectionAmount = parseFloat($('#CollectAmount').val()); |
|
|
let collectionAmount = parseFloat($('#CollectAmount').val()); |
|
|
let payoutAmount = parseFloat($('#PayoutAmount').val()); |
|
|
let payoutAmount = parseFloat($('#PayoutAmount').val()); |
|
|
let promoCode = $('#PromoCode').val(); |
|
|
let promoCode = $('#PromoCode').val(); |
|
|
let calcBy = $('#hdnCalcBy').val(); |
|
|
let calcBy = $('#hdnCalcBy').val(); |
|
|
|
|
|
|
|
|
|
|
|
let schemeId = $('#SchemeId').val(); |
|
|
|
|
|
|
|
|
if (calcBy == '') { |
|
|
if (calcBy == '') { |
|
|
ShowAlertMessage(1, 'Invalid param calculate by!'); |
|
|
ShowAlertMessage(1, 'Invalid param calculate by!'); |
|
|
EnableCalculateButton(); |
|
|
EnableCalculateButton(); |
|
@ -302,12 +304,12 @@ |
|
|
|
|
|
|
|
|
let Data = { |
|
|
let Data = { |
|
|
ReceivingCountry: receivingCountry, |
|
|
ReceivingCountry: receivingCountry, |
|
|
CollMode: collMode, |
|
|
|
|
|
DeliveryMethod: deliveryMethod, |
|
|
DeliveryMethod: deliveryMethod, |
|
|
CollectAmount: collectionAmount, |
|
|
CollectAmount: collectionAmount, |
|
|
PayoutAmount: payoutAmount, |
|
|
PayoutAmount: payoutAmount, |
|
|
PromoCode: promoCode, |
|
|
PromoCode: promoCode, |
|
|
CalcBy: calcBy |
|
|
|
|
|
|
|
|
CalcBy: calcBy, |
|
|
|
|
|
SchemeId: schemeId |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
$.ajax( |
|
|
$.ajax( |
|
@ -351,6 +353,7 @@ |
|
|
$('#hdnExRate').val(response.exRate); |
|
|
$('#hdnExRate').val(response.exRate); |
|
|
$('#hdnForexSessionId').val(response.forexSessionId); |
|
|
$('#hdnForexSessionId').val(response.forexSessionId); |
|
|
$('#hdnProcessId').val(response.processId); |
|
|
$('#hdnProcessId').val(response.processId); |
|
|
|
|
|
$('#hdnTPExRate').val(response.tpExRate); |
|
|
}, |
|
|
}, |
|
|
error: function () { |
|
|
error: function () { |
|
|
return null; |
|
|
return null; |
|
@ -363,7 +366,6 @@ |
|
|
DisableSendButton(); |
|
|
DisableSendButton(); |
|
|
debugger |
|
|
debugger |
|
|
let receivingCountry = $('#ReceivingCountry').val(); |
|
|
let receivingCountry = $('#ReceivingCountry').val(); |
|
|
let collMode = $('#CollMode').val(); |
|
|
|
|
|
let deliveryMethod = $('#DeliveryMethod').val(); |
|
|
let deliveryMethod = $('#DeliveryMethod').val(); |
|
|
let collectionAmount = parseFloat($('#CollectAmount').val()); |
|
|
let collectionAmount = parseFloat($('#CollectAmount').val()); |
|
|
let payoutAmount = parseFloat($('#PayoutAmount').val()); |
|
|
let payoutAmount = parseFloat($('#PayoutAmount').val()); |
|
@ -373,6 +375,9 @@ |
|
|
let purposeOfRemit = $('#PurposeOfRemit').val(); |
|
|
let purposeOfRemit = $('#PurposeOfRemit').val(); |
|
|
let termsAndConditions = $('#TermsAndConditions').val(); |
|
|
let termsAndConditions = $('#TermsAndConditions').val(); |
|
|
|
|
|
|
|
|
|
|
|
let schemeId = $('#SchemeId').val(); |
|
|
|
|
|
let tpExRate = $('#hdnTPExRate').val(); |
|
|
|
|
|
|
|
|
let payoutPartner = $('#hdnPayoutPartner').val(); |
|
|
let payoutPartner = $('#hdnPayoutPartner').val(); |
|
|
let payoutCurrency = $('#hdnPayoutCurrency').val(); |
|
|
let payoutCurrency = $('#hdnPayoutCurrency').val(); |
|
|
let transferAmount = $('#hdnTransferAmount').val(); |
|
|
let transferAmount = $('#hdnTransferAmount').val(); |
|
@ -419,7 +424,6 @@ |
|
|
|
|
|
|
|
|
let Data = { |
|
|
let Data = { |
|
|
ReceivingCountry: receivingCountry, |
|
|
ReceivingCountry: receivingCountry, |
|
|
CollMode: collMode, |
|
|
|
|
|
DeliveryMethod: deliveryMethod, |
|
|
DeliveryMethod: deliveryMethod, |
|
|
CollectAmount: collectionAmount, |
|
|
CollectAmount: collectionAmount, |
|
|
PayoutAmount: payoutAmount, |
|
|
PayoutAmount: payoutAmount, |
|
@ -434,7 +438,9 @@ |
|
|
ServiceCharge: serviceCharge, |
|
|
ServiceCharge: serviceCharge, |
|
|
ExRate: exRate, |
|
|
ExRate: exRate, |
|
|
ForexSessionId: forexSessionId, |
|
|
ForexSessionId: forexSessionId, |
|
|
ProcessId: processId |
|
|
|
|
|
|
|
|
ProcessId: processId, |
|
|
|
|
|
SchemeId: schemeId, |
|
|
|
|
|
TpExRate: tpExRate |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
$.ajax( |
|
|
$.ajax( |
|
|