Commit b3fb4d8b authored by manohar's avatar manohar

cctr_code spaces assigned in case of null


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91305 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 0c2d4811
......@@ -352,7 +352,12 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
rSet = null;
pstmt1.close();
pstmt1 = null;
// 21/07/10 manoharan make cctr_code blank in case null
if (cctrCode == null)
{
cctrCode = " ";
}
// end 21/07/10
detAcct = disComm.getDisparams( "999999", "DRCR_ACCT_CBACK", conn );
if( detAcct == null || detAcct.equalsIgnoreCase( "NULLFOUND" ) || detAcct.trim().length() == 0 )
......@@ -365,8 +370,11 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
if( detCctr == null || detCctr.equalsIgnoreCase( "NULLFOUND" ) || detCctr.trim().length() == 0 )
{
errCode = "VMLSCCTR"; //'DS000' + string(sqlca.sqldbcode)
break;
// 21/07/10 manoharan if cctr_code is null then assign as cctr_code__ar (blank included)
//errCode = "VMLSCCTR"; //'DS000' + string(sqlca.sqldbcode)
//break;
detCctr = cctrCode;
// end 21/07/10 manoharan if cctr_code is null then assign as cctr_code__ar (blank included)
}
tranType = disComm.getDisparams( "999999", "CHARGE_BACK_TRAN_TYPE", conn );
......@@ -401,13 +409,13 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
pstmtHdr.setTimestamp( 3, currDate );
pstmtHdr.setTimestamp( 4, currDate );
pstmtHdr.setString( 5, finEntity );
pstmtHdr.setString( 6, siteCodeCr.trim() );
pstmtHdr.setString( 6, siteCodeCr);
pstmtHdr.setString( 7, "C" );
pstmtHdr.setString( 8, custCodeCr.trim() );
pstmtHdr.setString( 9, acctCode == null || acctCode.trim().length() == 0 ? "" : acctCode.trim() );
pstmtHdr.setString( 10, cctrCode == null || cctrCode.trim().length() == 0 ? "" : cctrCode.trim() );
pstmtHdr.setString( 8, custCodeCr );
pstmtHdr.setString( 9, acctCode == null ? "" : acctCode );
pstmtHdr.setString( 10, cctrCode == null ? " " : cctrCode );
pstmtHdr.setDouble( 11, drcrAmt );
pstmtHdr.setString( 12, currCode == null || currCode.trim().length() == 0 ? "" : currCode.trim() );
pstmtHdr.setString( 12, currCode == null || currCode.trim().length() == 0 ? "" : currCode);
pstmtHdr.setDouble( 13, exchgRate );
if( remarks == null || remarks.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