Commit c34b0889 authored by prane's avatar prane

fixes bug(NullPointerException) in credit check

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@172607 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ccf7ba3e
......@@ -3965,10 +3965,10 @@ public class PostOrdCreditChk
{
as_status = "F";
}
/*else
else
{
as_status = "";
}*/
}
ac_check_amt = 0;
//System.out.println("@@@@@@@@@@3907 as_status["+as_status+"]");
......
......@@ -1405,8 +1405,9 @@ public class PostOrderProcess extends ProcessEJB implements PostOrderProcessLoca
// System.out.println("@@@@@@@@@@@@ BUSINESS_LOGIC_CHECK cnt2["+cnt2+"]");
//if( cnt2 == 0 )
//Added by Pavan R on 27/OCT/17
if(chkamt > 0 || lsStatus.trim().length() == 0 )
//Added by Pavan R on 27/OCT/17 ls
//added lsStatus == null on 31/OCT/17
if(chkamt > 0 || lsStatus == null || lsStatus.length() == 0 )
{ // Pavan R End
tranId = generateTranId( "T_CRCHKTRACE",siteCode, conn );
if( tranId == null || tranId.trim().length() == 0 )
......
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