Commit c337ec50 authored by cpatil's avatar cpatil

modify for error msg


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101381 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 7c0420e1
...@@ -3205,25 +3205,32 @@ public class PostOrdCreditChk ...@@ -3205,25 +3205,32 @@ public class PostOrdCreditChk
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
//lsStr1 = trim(lsStr1) //lsStr1 = trim(lsStr1)
if( lsStr1 == null || lsStr1.trim().length() == 0 ) if( lsStr1 == null || lsStr1.trim().length() == 0 )
{ {
lsStr1 = lsCrPolicy+" Dynamic credit check failed !!!"; lsStr1 = lsCrPolicy+" Dynamic credit check failed !!!";
} }
System.out.println("@@@@ 3213 lsStr1["+lsStr1+"]");
//} //}
//To show the Invoice/SO amt in credit chek fail description, Added Ruchira 21/08/2k6 //To show the Invoice/SO amt in credit chek fail description, Added Ruchira 21/08/2k6
if ("I".equals(asApplyTime)) if ("I".equals(asApplyTime))
{ {
lsStr3 = " , Invoice Amt.=> "+String(adNetAmt); //lsStr3 = " , Invoice Amt.=> "+String(adNetAmt);
lsStr3 = " Invoice Amt.=> "+String(adNetAmt);
} }
else else
{ {
lsStr3 = " , Sales Order Amt.=> "+String(adNetAmt); //lsStr3 = " , Sales Order Amt.=> "+String(adNetAmt);
lsStr3 = " Sales Order Amt.=> "+String(adNetAmt);
} }
//End To show the Invoice/SO amt in credit chek fail description, Added Ruchira 21/08/2k6 //End To show the Invoice/SO amt in credit chek fail description, Added Ruchira 21/08/2k6
lsStr = String(adNetAmt)+"\t"+lsStr1+", "+lsStr3;
System.out.println("@@@@@@3229 adNetAmt["+adNetAmt+"]lsStr1["+lsStr1+"]lsStr3["+lsStr3+"]");
//lsStr = String(adNetAmt)+"\t"+lsStr1+", "+lsStr3;
lsStr = String(adNetAmt)+" "+lsStr1+","+lsStr3;
System.out.println("@@@@@@3233 lsStr["+lsStr+"]");
// asCheck[ctr] = lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr // asCheck[ctr] = lsCrPolicy+"\t"+asDespId+"\t"+asSorder+"\t"+lsStr
// ctr = ctr + 1 // ctr = ctr + 1
...@@ -3242,7 +3249,7 @@ public class PostOrdCreditChk ...@@ -3242,7 +3249,7 @@ public class PostOrdCreditChk
{ {
lcCheckAmt = Double.parseDouble(retArrayList.get(1)==null?"0":retArrayList.get(1)); lcCheckAmt = Double.parseDouble(retArrayList.get(1)==null?"0":retArrayList.get(1));
} }
System.out.println("@@@@@ lsCrPolicy["+lsCrPolicy+"]lcCheckAmt["+lcCheckAmt+"]lsStatus["+lsStatus+"]"); System.out.println("@@@@@ lsCrPolicy["+lsCrPolicy+"]lcCheckAmt["+lcCheckAmt+"]lsStatus["+lsStatus+"]lsStr["+lsStr+"]");
////Always when credit check fails it must get added into as_mail. ////Always when credit check fails it must get added into as_mail.
......
...@@ -994,9 +994,9 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca ...@@ -994,9 +994,9 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
{ {
asSorder=strArray[2]; asSorder=strArray[2];
} }
if( strArray.length > 4 ) if( strArray.length > 3 )
{ {
lsStr=strArray[4]; lsStr=strArray[3];
} }
} }
System.out.println("@@@@@@@@["+lsCrPolicy+"]["+asDespId+"]["+asSorder+"]["+lsStr+"]"); System.out.println("@@@@@@@@["+lsCrPolicy+"]["+asDespId+"]["+asSorder+"]["+lsStr+"]");
......
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