Commit 7fe637bb authored by kmandhre's avatar kmandhre

change in rbfPost() get item series form item code and pass for getFromAcctDetr() Head


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95311 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 16d2b795
......@@ -2242,7 +2242,7 @@ public class InvAcct
PreparedStatement pstmt = null,pstmt1 = null;
ResultSet rs = null,rs1 = null;
String errString = "",invOnLine = "";
String sql = "",itemSer = "",tempAcctcodeCr = "";
String sql = "",itemSer = "",tempAcctcodeCr = "" ,itemSerHdr = "";
java.sql.Date rcpTranDate = null;
String siteCodeHdr = "",finEntityHdr = "",currCodeHdr = "";
String tranType="",analysis=""; // added by cpatil on 09-03-13
......@@ -2466,8 +2466,23 @@ public class InvAcct
rcpAmount = rs.getDouble("amount");
rcpInvValue = rs.getDouble("inv_value");
sql = "select item_ser from item where item_code = ?"; //added by kunal on 26/jun/14
System.out.println("SQL =:"+sql);
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, rcpItemCode);
rs1 = pstmt1.executeQuery();
if(rs1.next())
{
itemSerHdr = rs1.getString("item_ser");
}
rs1.close();
pstmt1.close();
pstmt1 = null;
if(rcpAmount >= 0){
tempAcctcodeCr = finCommon.getFromAcctDetr(rcpItemCode,itemSer,"IN",conn);
tempAcctcodeCr = finCommon.getFromAcctDetr(rcpItemCode,itemSerHdr,"IN",conn);
acctCodeDr = tempAcctcodeCr.substring(0,tempAcctcodeCr.indexOf(","));
cctrCodeDr = tempAcctcodeCr.substring(tempAcctcodeCr.indexOf(",")+1);
}else{
......
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