Commit 5b714a6a authored by mmhatre's avatar mmhatre

call the getErrorMessage method

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@216579 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 63e357a3
...@@ -1214,38 +1214,38 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi ...@@ -1214,38 +1214,38 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
String errStr = "Payment amount can not be zero or greater then balance amount: Series("+mTranSer+") Voucher No ("+mVouchNo+")"; String errStr = "Payment amount can not be zero or greater then balance amount: Series("+mTranSer+") Voucher No ("+mVouchNo+")";
//Modified by Anjali R. on[] //Modified by Anjali R. on[]
//errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); //errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
//errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
errStr="PAYMENT NOT GENERATED"+errStr; //errStr="PAYMENT NOT GENERATED"+errStr;
errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019 //errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019
return errorString; return errString;
} }
else if (netPayable > 0 && (mPayAmt > netPayable || mPayAmt <= 0)) else if (netPayable > 0 && (mPayAmt > netPayable || mPayAmt <= 0))
{ {
String errStr = "Payment amount can not be zero or greater then balance amount: Series("+mTranSer+") Voucher No ("+mVouchNo+")"; String errStr = "Payment amount can not be zero or greater then balance amount: Series("+mTranSer+") Voucher No ("+mVouchNo+")";
//errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); //errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
//errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
errStr="PAYMENT NOT GENERATED"+errStr; //errStr="PAYMENT NOT GENERATED \n"+errStr;
errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019 //errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019
return errorString; return errString;
} }
else if (netPayable < 0 && (mPayAmt < netPayable || mPayAmt >= 0) ) else if (netPayable < 0 && (mPayAmt < netPayable || mPayAmt >= 0) )
{ {
String errStr = "Payment amount can not be zero or greater then balance amount: Series("+mTranSer+") Voucher No ("+mVouchNo+")"; String errStr = "Payment amount can not be zero or greater then balance amount: Series("+mTranSer+") Voucher No ("+mVouchNo+")";
//errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); //errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
//errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
errStr="PAYMENT NOT GENERATED"+errStr; //errStr="PAYMENT NOT GENERATED \n"+errStr;
errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019 //errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019
return errorString; return errString;
} }
else if(mPayAmt + totUnconfAmt > netPayable) else if(mPayAmt + totUnconfAmt > netPayable)
{ {
String errStr = "Payment Are Not Generated Due To Unconfirmed Payment Pending </br> Voucher No :"+mVouchNo+"" String errStr = "Payment Are Not Generated Due To Unconfirmed Payment Pending </br> Voucher No :"+mVouchNo+""
+ "Pay Amount:"+mPayAmt +"</br>Unconfirm Pay Amount:"+totUnconfAmt+" </br> Net Payable Amount:"+netPayable; + "Pay Amount:"+mPayAmt +"</br>Unconfirm Pay Amount:"+totUnconfAmt+" </br> Net Payable Amount:"+netPayable;
//errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); //errString = getErrorXML("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
//errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E"); errString = getErrorMessage("PAYMENT NOT GENERATED", errStr, "VTPAYANTZR", "", "E");
errStr="PAYMENT NOT GENERATED"+errStr; //errStr="PAYMENT NOT GENERATED \n"+errStr;
errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019 //errorString=utilMethods.getMsg(errStr,"VTPAYANTZR",conn); //added by manish mhatre on 7-feb-2019
return errorString; return errString;
} }
//Modified by Anjali R. on [27/08/2018][End] //Modified by Anjali R. on [27/08/2018][End]
//Added by Varsha V on 25-06-18 //Added by Varsha V on 25-06-18
...@@ -2062,7 +2062,7 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi ...@@ -2062,7 +2062,7 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
} }
return confirmRetString; return confirmRetString;
} }
private String getMiscAutoPayCheckSplit(Document headerDom, Document detailDom, String windowName, String xtraParams,Connection conn)throws ITMException, RemoteException private String getMiscAutoPayCheckSplit(Document headerDom, Document detailDom, String windowName, String xtraParams,Connection conn)throws Exception
{ {
String errString = ""; String errString = "";
String loginCode = ""; String loginCode = "";
...@@ -3553,7 +3553,6 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi ...@@ -3553,7 +3553,6 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
} }
alreadyExist.clear(); alreadyExist.clear();
} }
errMsg=utilMethods.getMsg("", "VTTRANCONF",conn); //added by manish mhatre on 7-feb-2019
} }
catch(Exception e ) catch(Exception e )
{ {
...@@ -3596,7 +3595,8 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi ...@@ -3596,7 +3595,8 @@ public class MiscPayAutoPrc extends ProcessEJB implements MiscPayAutoPrcLocal,Mi
//Modified by Anjali R. on [25/02/2019][Start] //Modified by Anjali R. on [25/02/2019][Start]
//return confirmRetString; //return confirmRetString;
//return getErrorMessage("", confirmRetString, "VTTRANCONF", "", "P"); //return getErrorMessage("", confirmRetString, "VTTRANCONF", "", "P");
return errMsg; //added by manish mhatre on 7-feb-2019 errString=utilMethods.getMsg("", "VTTRANCONF",conn); //added by manish mhatre on 7-feb-2019
return errString; //added by manish mhatre on 7-feb-2019
//Modified by Anjali R. on [25/02/2019][End] //Modified by Anjali R. on [25/02/2019][End]
} }
private String confirm(String tranId ,String xtraParams ,Connection conn) throws ITMException, Exception private String confirm(String tranId ,String xtraParams ,Connection conn) throws ITMException, Exception
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment