Commit d4d4d9f8 authored by smanohar's avatar smanohar

bug in case of alternate item while checking available stock item code is...

bug in case of alternate item while checking available stock item code is taken from workorder_bill instead workorder_issdet table, fixed the bug

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@197593 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b55039d9
......@@ -81,7 +81,7 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
String itemCode="",locCode="",lotNo="",lotSl="",unit="",expLev="",qcReqd="",reasCode="",calcPotency="";
double quantity=0,shortQty=0,grossWeight=0,tareWeight=0,netWeight=0,potencyAdj=0;
int lineNo=0,noArt=0;
String itemSer="",itemunit="",trackShelfLife="";
String itemSer="",itemunit="",trackShelfLife="", itemCodedet = "";
double stkQty=0,stkRate=0,grossRate=0,qtystduom=0;
String issCriteria ="";
String stkGrade="",suppCodeMfg="",acct_code__inv="",cctr_code__inv="",acct_code__oh="",cctr_code__oh="";
......@@ -486,11 +486,11 @@ public class WorkorderIssConf extends ActionHandlerEJB implements WorkorderIssCo
rs = pstmt.executeQuery();
if (rs.next())
{
itemCode = rs.getString(1);
itemCodedet = rs.getString(1);
itemCodeRef = rs.getString(2);
sql =" select use_invstatus from bomdet where bom_code = "
+" (select bom_code from workorder where work_order = '"+workOrder+"' ) "
+" and item_code ='"+itemCode+"' "
+" and item_code ='"+itemCodedet+"' "
+" and item_ref ='"+itemCodeRef+"'";
pstmt1 = conn.prepareStatement(sql);
//rs = pstmt.executeQuery();
......
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