Commit b684032f authored by vvengurlekar's avatar vvengurlekar

condition added for remarks column because gltrace and gltran table storing...

condition added for remarks column because gltrace and gltran  table storing max 60 char value in remarks column

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@181099 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 873ab81b
......@@ -10355,7 +10355,8 @@ public class FinCommon
refType = (glTrace.get("ref_type") == null ? "":glTrace.get("ref_type").toString());
refSer = (glTrace.get("ref_ser") == null ? "":glTrace.get("ref_ser").toString());
refId = (glTrace.get("ref_id") == null ? "":glTrace.get("ref_id").toString());
remarks = (glTrace.get("remarks") == null ? "":glTrace.get("remarks").toString());
//remarks = (glTrace.get("remarks") == null ? "":glTrace.get("remarks").toString()); commented by Varsha V. on 27-02-18 because gltrace table storing 60 char remarks
remarks = (glTrace.get("remarks") == null ? "" : (glTrace.get("remarks").toString().length()>60 ? glTrace.get("remarks").toString().substring(0,60) : glTrace.get("remarks").toString()));
partyDocRef = (glTrace.get("party_doc_ref") == null ? "":glTrace.get("party_doc_ref").toString());
projCode = (glTrace.get("proj_code") == null ? "":glTrace.get("proj_code").toString());
analysis1 = (glTrace.get("analysis1") == null ? "":glTrace.get("analysis1").toString()); // added by cpatil
......@@ -11128,7 +11129,8 @@ public class FinCommon
}else{
pstmt.setString(13,analCode);
}
pstmt.setString(14,glTran.get("remarks").toString());
//pstmt.setString(14,glTran.get("remarks").toString()); commented by Varsha V. on 27-02-18 because gltrace table storing 60 char remarks
pstmt.setString(14,(glTran.get("remarks") == null ? "" : (glTran.get("remarks").toString().length()>60 ? glTran.get("remarks").toString().substring(0,60) : glTran.get("remarks").toString())));
String acctPrd = (String)glTran.get("acct_prd");
if(acctPrd == null || acctPrd.trim().length() == 0){
pstmt.setNull(15,Types.VARCHAR);
......
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