Commit 4b917501 authored by manohar's avatar manohar

MF89SUN092 bug fixing


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91580 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1b746d3b
......@@ -373,11 +373,12 @@ public class MiscPayAct extends ActionHandlerEJB implements MiscPayActLocal,Misc
try
{
//detCnt = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"detCnt"); //Will be Uncommented later - Jiten
System.out.println("actionAllRecords detCnt ["+detCnt + "]");
if (detCnt.equals("0"))
{
conn = connDriver.getConnectDB("DriverITM");
tranId = genericUtility.getColumnValue("vouch_no",dom) + "%";
System.out.println("tranId: ="+tranId);
System.out.println("actionAllRecords tranId ["+tranId + "]");
sql = "SELECT REF_NO FROM MISC_PAYABLES WHERE REF_NO LIKE '"+ tranId +"'"+" AND CASE WHEN TOT_AMT IS NULL THEN 0 ELSE TOT_AMT END - CASE WHEN ADJ_AMT IS NULL THEN 0 ELSE ADJ_AMT END <> 0 AND CASE WHEN HOLD_AMT IS NULL THEN 0 ELSE HOLD_AMT END = 0";
stmt = conn.createStatement();
rs = stmt.executeQuery(sql);
......
......@@ -1259,9 +1259,6 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
{
System.out.println("SET Value---"+it.next().toString());
}
}
rs.beforeFirst();
while(rs.next())
......@@ -1285,12 +1282,6 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
//System.out.println("bomExplode Function :: Site Code :: "+siteCode+"Bom Code ::"+bomCode+"Item Code ::"+rs.getString(1));
boolean isCyclic=false;
System.out.println("innerSuppSour-----"+innerSuppSour+"----innerBomCode----"+innerBomCode);
// if( ( (innerSuppSour == null) || (innerSuppSour.equals("P")) ) && (innerBomCode == null) )
// {
// System.out.println("level is decremented---"+level);
// level--;
// System.out.println("level is decremented---"+level);
// }
if( ( (innerSuppSour != null) && (!innerSuppSour.equals("P")) ) && (innerBomCode != null) )
{
......@@ -1308,10 +1299,9 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
{
this.fw.write(cyclicItem.siteCode+" "+cyclicItem.bomCode+" "+cyclicItem.itemCode+" "+rs.getString(1)+"\r\n");
System.out.println("Cyclic Item Code is : " + rs.getString(1));
//return "";
}
else{
else
{
System.out.println("Cyclic Item Code is : " + rs.getString(1));
errString = itmDBAccessEJB.getErrorString("","VTMRPITEME","","",conn);
rs.close();
......@@ -1319,38 +1309,35 @@ private String bomExplode(String siteCode, String bomCode) throws ITMException
return errString;
}
isCyclic=true;
//End//
}
}
System.out.println("manohar 14/01/12 checking item existance in itemCodeMap-------"+rs.getString(1));
if(!itemCodeMap.containsKey(rs.getString(1)))
{
System.out.println("Placing value in itemCodeMap-------"+rs.getString(1));
System.out.println("manohar 14/01/12 Placing value in itemCodeMap-------"+rs.getString(1));
itemCodeMap.put(rs.getString(1),new Integer(itemCodeMap.size() + 1));
}
/* else
else
{
itemHashMap.put(rs.getString(1),new Integer(itemHashMap.size()+1));
} */
System.out.println("manohar 14/01/12 already in itemCodeMap-------"+rs.getString(1));
}
}
}
/* if(itemCodeMap.containsKey(rs.getString(1)))
{}
else
{
System.out.println("manohar 14/01/12 checking item existance in itemCodeMap material -------"+rs.getString(1));
if(!itemCodeMap.containsKey(rs.getString(1)))
{
System.out.println("manohar 14/01/12 Placing value in itemCodeMap-------material"+rs.getString(1));
itemCodeMap.put(rs.getString(1),new Integer(itemCodeMap.size() + 1));
} */
// if( ( (innerSuppSour != null) && (innerSuppSour.equals("P")) ) && (innerBomCode == null) )
// {
// System.out.println("level is decremented-----"+level);
// level--;
// if(level<=0)
// level=0;
// System.out.println("level is decremented-----"+level);
// }
}
else
{
System.out.println("manohar 14/01/12 already in itemCodeMap-------material"+rs.getString(1));
}
}
if( ( (innerSuppSour != null) && (!innerSuppSour.equals("P")) ) && (innerBomCode != null) && (isCyclic==false) )
{
//System.out.println("Inner Exploding BOM for site : " + siteCode + " Item : " + rs.getString(1) + " BOM : " + innerBomCode);
validBomItemCode = rs.getString(1);
......
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