Commit cf0e111d authored by prane's avatar prane

iss_criteria in item master is W. then system should not allow to issue partial quantity.

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@182817 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 62b6541c
......@@ -1909,7 +1909,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//System.out.println("rate1 :" + rate1);
sql = " SELECT (CASE WHEN ACTIVE IS NULL THEN 'Y' ELSE ACTIVE END) ACT, MIN_SHELF_LIFE, "
+ " (CASE WHEN TRACK_SHELF_LIFE IS NULL THEN 'N' ELSE TRACK_SHELF_LIFE END) TRK_SHELF_LIFE, "
+ " (CASE WHEN SUPP_SOUR IS NULL THEN 'M' ELSE SUPP_SOUR END) SUP_SOUR, DESCR "
+ " (CASE WHEN SUPP_SOUR IS NULL THEN 'M' ELSE SUPP_SOUR END) SUP_SOUR, DESCR, ISS_CRITERIA "
+ " FROM ITEM WHERE ITEM_CODE = '" + itemCode + "'";
System.out.println( "sql :" + sql );
rs = stmt.executeQuery(sql);
......@@ -1925,6 +1925,10 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
itemDescr = rs.getString( 5 );
//Added By Pavan Rane on 29MAR2018[START][iss_criteria in item master is W. then system should not allow to issue partial quantity.]
issCriteria = rs.getString( 6 );
System.out.println("issCriteria :[" + issCriteria+"]");
//Added By Pavan Rane on 29MAR2018[END]
/* System.out.println("active : " + active);
System.out.println("minShelfLife : " + minShelfLife);
System.out.println("trackShelfLife : " + trackShelfLife);
......@@ -2187,7 +2191,18 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
return errString;
}
}
//System.out.println("stockQty :" + stockQty + " \nremQuantity :" + remQuantity);
System.out.println("stockQty before issCriteria[" + stockQty + "] remQuantity :[" + remQuantity+"]");
//Added By Pavan Rane on 29MAR2018[START][iss_criteria in item master is W. then system should not allow to issue partial quantity.]
if (issCriteria != null && ("W").equalsIgnoreCase(issCriteria))
{
if (stockQty >= remQuantity)
{
minputQty = remQuantity;
}
}
else
{
//Added by Pavan Rane on 29MAR2018[END]
if (stockQty >= remQuantity)
{
if (checkIntegralQty.equals("Y"))
......@@ -2198,7 +2213,7 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
//System.out.println("remQuantity :"+remQuantity);
}
minputQty = remQuantity;
//System.out.println("minputQty :"+minputQty);
System.out.println("@@ 2214 minputQty :"+minputQty);
remQuantity = 0;
}
else if (stockQty < remQuantity)
......@@ -2216,7 +2231,8 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
remQuantity = remQuantity - stockQty;
//System.out.println("remQuantity :"+remQuantity);
}
//System.out.println("minputQty :"+minputQty);
}
System.out.println("@@ 2233 minputQty :"+minputQty);
if (minputQty == 0)
{
continue;
......@@ -2578,6 +2594,18 @@ public class DistIssueAct extends ActionHandlerEJB implements DistIssueActLocal,
netWt = 0;
cnt++;
//System.out.println("The cnt :" + ++cnt);
//Added By Pavan R on 29MAR2018[START][iss_criteria in item master is W. then system should not allow to issue partial quantity.]
if (issCriteria != null && ("W").equalsIgnoreCase(issCriteria))
{
if (stockQty >= remQuantity)
{
if(minputQty > 0)
{
System.out.println("break executed...");
break;
}
}
}//Added by Pavan R on 29MAR2018[END]
}//while end
//changed by msalam on 22/09/07 start
......
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