Browse Source

#19238 updated changes for send txn

Ime-london-webcore
Leeza Baidar 12 months ago
parent
commit
a0093b3b23
  1. 37
      Swift.web/AgentNew/js/SendTxn/sendTxnInfo.js

37
Swift.web/AgentNew/js/SendTxn/sendTxnInfo.js

@ -307,6 +307,13 @@ function CalculateTxn(amt, obj, isManualSc) {
GetElement(mId + "pMode").focus(); GetElement(mId + "pMode").focus();
return false; return false;
} }
//if (tpExRate === "" || tpExRate === null || tpExRate === undefined) {
// alert("Please choose payment option");
// GetElement(mId + "pMode").focus();
// return false;
//}
//var sAgent = $("#" + mId + "sendingAgentOnBehalfDDL option:selected").val(); //var sAgent = $("#" + mId + "sendingAgentOnBehalfDDL option:selected").val();
//if (sAgent === "" || sAgent === null || sAgent === undefined) { //if (sAgent === "" || sAgent === null || sAgent === undefined) {
// alert("Please choose Sending AgentBbranch"); // alert("Please choose Sending AgentBbranch");
@ -818,13 +825,13 @@ function SendTransactionMethod() {
//********IF NEW CUSTOMER CHECK REQUIRED FIELD****** //********IF NEW CUSTOMER CHECK REQUIRED FIELD******
var enrollCustomer = "N"; var enrollCustomer = "N";
var collModeFrmCustomer = $("input[name='chkCollMode']:checked").val();
if (collModeFrmCustomer === undefined || collModeFrmCustomer === '') {
alert('Please choose collect mode first!');
return false;
} if (collModeFrmCustomer === "Existing Balance") {
collModeFrmCustomer = "Bank Deposit";
}
//var collModeFrmCustomer = $("input[name='chkCollMode']:checked").val();
//if (collModeFrmCustomer === undefined || collModeFrmCustomer === '') {
// alert('Please choose collect mode first!');
// return false;
//} if (collModeFrmCustomer === "Existing Balance") {
// collModeFrmCustomer = "Bank Deposit";
//}
//New params added //New params added
var sCustStreet = $("#" + mId + "sCustStreet").val(); var sCustStreet = $("#" + mId + "sCustStreet").val();
@ -863,7 +870,7 @@ function SendTransactionMethod() {
return false; return false;
} }
} }
var cashCollMode = collModeFrmCustomer;
//var cashCollMode = collModeFrmCustomer;
var customerDepositedBank = $("#" + mId + "depositedBankDDL").val(); var customerDepositedBank = $("#" + mId + "depositedBankDDL").val();
var introducerTxt = $("#" + mId + "introducerTxt_aValue").val(); var introducerTxt = $("#" + mId + "introducerTxt_aValue").val();
@ -911,8 +918,8 @@ function SendTransactionMethod() {
var isRealTime = $("#" + mId + "hddIsRealTimeTxn").val(); var isRealTime = $("#" + mId + "hddIsRealTimeTxn").val();
var tpExRate = $("#" + mId + "hddTPExRate").val(); var tpExRate = $("#" + mId + "hddTPExRate").val();
var IsExrateFromPartner = $("#" + mId + "hddFetchExrateFromPartner").val(); var IsExrateFromPartner = $("#" + mId + "hddFetchExrateFromPartner").val();
var branchId = $("#" + mId + "sendingAgentOnBehalfDDL").val().split('|')[0];
var branchName = $("#" + mId + "sendingAgentOnBehalfDDL :selected").text();
// var branchId = $("#" + mId + "sendingAgentOnBehalfDDL").val().split('|')[0];
// var branchName = $("#" + mId + "sendingAgentOnBehalfDDL :selected").text();
var txnRequestFromAgent = $("#" + mId + "hddTxnRequestFromAgent").val(); var txnRequestFromAgent = $("#" + mId + "hddTxnRequestFromAgent").val();
var txnRequestRowId = $("#" + mId + "hddTxnRequestRowId").val(); var txnRequestRowId = $("#" + mId + "hddTxnRequestRowId").val();
var goodsType = $("#" + mId + "goodsType").val(); var goodsType = $("#" + mId + "goodsType").val();
@ -997,21 +1004,21 @@ function SendTransactionMethod() {
"&manualSC=" + manualSC + "&manualSC=" + manualSC +
"&isManualSC=" + isManualSC + "&isManualSC=" + isManualSC +
//new fields //new fields
"&sCustStreet=" + sCustStreet +
"&sCustLocation=" + sCustLocation +
//"&sCustStreet=" + sCustStreet +
//"&sCustLocation=" + sCustLocation +
"&sCustomerType=" + sCustomerType + "&sCustomerType=" + sCustomerType +
"&sCustBusinessType=" + sCustBusinessType + "&sCustBusinessType=" + sCustBusinessType +
"&sCustIdIssuedCountry=" + sCustIdIssuedCountry + "&sCustIdIssuedCountry=" + sCustIdIssuedCountry +
"&sCustIdIssuedDate=" + sCustIdIssuedDate + "&sCustIdIssuedDate=" + sCustIdIssuedDate +
"&receiverId=" + receiverId + "&receiverId=" + receiverId +
"&payoutPartnerId=" + payoutPartnerId + "&payoutPartnerId=" + payoutPartnerId +
"&cashCollMode=" + cashCollMode +
//"&cashCollMode=" + cashCollMode +
"&customerDepositedBank=" + customerDepositedBank + "&customerDepositedBank=" + customerDepositedBank +
"&introducerTxt=" + introducerTxt + "&introducerTxt=" + introducerTxt +
"&pSubLocationText=" + pSubLocationText + "&pSubLocationText=" + pSubLocationText +
"&payerId=" + payerId + "&payerId=" + payerId +
"&payerBranchId=" + payerBranchId + "&payerBranchId=" + payerBranchId +
"&branchId=" + branchId +
//"&branchId=" + branchId +
"&isCDDI=" + FilterString(isCDDI) + "&isCDDI=" + FilterString(isCDDI) +
"&isRealTime=" + isRealTime + "&isRealTime=" + isRealTime +
"&agentRefId=" + hddAgentRefId + "&agentRefId=" + hddAgentRefId +
@ -1021,7 +1028,7 @@ function SendTransactionMethod() {
"&relationOther=" + relationOther + "&relationOther=" + relationOther +
"&purposeOther=" + purposeOther + "&purposeOther=" + purposeOther +
"&promotionAmount=" + promotionAmount + "&promotionAmount=" + promotionAmount +
"&branchName=" + branchName +
//"&branchName=" + branchName +
"&txnRequestFromAgent=" + txnRequestFromAgent + "&txnRequestFromAgent=" + txnRequestFromAgent +
"&txnRequestRowId=" + txnRequestRowId + "&txnRequestRowId=" + txnRequestRowId +
"&goodsType=" + goodsType + "&goodsType=" + goodsType +

Loading…
Cancel
Save