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();
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();
//if (sAgent === "" || sAgent === null || sAgent === undefined) {
// alert("Please choose Sending AgentBbranch");
@ -818,13 +825,13 @@ function SendTransactionMethod() {
//********IF NEW CUSTOMER CHECK REQUIRED FIELD******
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
var sCustStreet = $("#" + mId + "sCustStreet").val();
@ -863,7 +870,7 @@ function SendTransactionMethod() {
return false;
}
}
var cashCollMode = collModeFrmCustomer;
//var cashCollMode = collModeFrmCustomer;
var customerDepositedBank = $("#" + mId + "depositedBankDDL").val();
var introducerTxt = $("#" + mId + "introducerTxt_aValue").val();
@ -911,8 +918,8 @@ function SendTransactionMethod() {
var isRealTime = $("#" + mId + "hddIsRealTimeTxn").val();
var tpExRate = $("#" + mId + "hddTPExRate").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 txnRequestRowId = $("#" + mId + "hddTxnRequestRowId").val();
var goodsType = $("#" + mId + "goodsType").val();
@ -997,21 +1004,21 @@ function SendTransactionMethod() {
"&manualSC=" + manualSC +
"&isManualSC=" + isManualSC +
//new fields
"&sCustStreet=" + sCustStreet +
"&sCustLocation=" + sCustLocation +
//"&sCustStreet=" + sCustStreet +
//"&sCustLocation=" + sCustLocation +
"&sCustomerType=" + sCustomerType +
"&sCustBusinessType=" + sCustBusinessType +
"&sCustIdIssuedCountry=" + sCustIdIssuedCountry +
"&sCustIdIssuedDate=" + sCustIdIssuedDate +
"&receiverId=" + receiverId +
"&payoutPartnerId=" + payoutPartnerId +
"&cashCollMode=" + cashCollMode +
//"&cashCollMode=" + cashCollMode +
"&customerDepositedBank=" + customerDepositedBank +
"&introducerTxt=" + introducerTxt +
"&pSubLocationText=" + pSubLocationText +
"&payerId=" + payerId +
"&payerBranchId=" + payerBranchId +
"&branchId=" + branchId +
//"&branchId=" + branchId +
"&isCDDI=" + FilterString(isCDDI) +
"&isRealTime=" + isRealTime +
"&agentRefId=" + hddAgentRefId +
@ -1021,7 +1028,7 @@ function SendTransactionMethod() {
"&relationOther=" + relationOther +
"&purposeOther=" + purposeOther +
"&promotionAmount=" + promotionAmount +
"&branchName=" + branchName +
//"&branchName=" + branchName +
"&txnRequestFromAgent=" + txnRequestFromAgent +
"&txnRequestRowId=" + txnRequestRowId +
"&goodsType=" + goodsType +

Loading…
Cancel
Save