Commit 8c6bd28b authored by mchauhan's avatar mchauhan

"Inventory account code not found"

system is checking the inventory account code in receiving location.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203982 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9befccf6
......@@ -17,6 +17,8 @@ import ibase.webitm.ejb.*;
import org.w3c.dom.*;
import com.itextpdf.text.log.SysoCounter;
//import com.itextpdf.text.log.SysoCounter;
import ibase.webitm.ejb.dis.DistCommon;
......@@ -2954,13 +2956,50 @@ public class InvAcct
pstmt = null;
if (acctCodeInv == null || "null".equals(acctCodeInv) || acctCodeInv.trim().length() == 0 )
{
errCode = "VTACCTINV";
//-----------------------------------------------------------
//COMMENTED BY MUKESH CHAUHAN ON 23/07/19
/*errCode = "VTACCTINV";
errString = itmDBAccessEJB.getErrorString("",errCode,"","",conn);
break;
break;*/
//ADDED BY MUKESH CHAUHAN ON 23/07/19 START
sql = "select acct_code__inv, cctr_code__inv"
+ " from stock "
+ " where item_code = ? "
+ " and site_code = ? "
+ " and loc_code != ? "
+ " and lot_no = ? "
+ " and lot_sl = ? "
+ " and acct_code__inv is not null";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, itemCode);
pstmt.setString(2, siteCode);
pstmt.setString(3, locCode);
pstmt.setString(4, lotNo);
pstmt.setString(5, lotSl);
rs = pstmt.executeQuery();
if(rs.next())
{
acctCodeInv = rs.getString("acct_code__inv");
System.out.println("Acctcode INV>>>>>>>>>>>>>>>>"+acctCodeInv);
cctrCodeInv = rs.getString("cctr_code__inv");
System.out.println("cctrcode INV>>>>>>>>>>>>>>>>"+cctrCodeInv);
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
if(acctCodeInv == null || "null".equals(acctCodeInv) || acctCodeInv.trim().length() == 0)
{
errCode = "VTACCTINV";
errString = itmDBAccessEJB.getErrorString("",errCode,"","",conn);
break;
}
//END
}
if (cctrCodeInv == null || "null".equals(cctrCodeInv) || cctrCodeInv.trim().length() == 0 )
{
cctrCodeInv = " " ;
}
amount = quantity * rate ;
foundRow = findExistingIndex(wipList,acctCodeInv, cctrCodeInv);
......
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