Commit 08864f71 authored by manohar's avatar manohar

order_type "N" stock should be based on user_invstatus in header


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93203 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9541f48f
...@@ -172,6 +172,7 @@ public class InvPackAct extends ActionHandlerEJB implements InvPackActLocal, Inv ...@@ -172,6 +172,7 @@ public class InvPackAct extends ActionHandlerEJB implements InvPackActLocal, Inv
ConnDriver connDriver = new ConnDriver(); ConnDriver connDriver = new ConnDriver();
GenericUtility genericUtility = GenericUtility.getInstance(); GenericUtility genericUtility = GenericUtility.getInstance();
ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB(); ITMDBAccessEJB itmDBAccess = new ITMDBAccessEJB();
String orderType = "", useInvStatus = "";
try try
{ {
if (dom != null) if (dom != null)
...@@ -220,7 +221,20 @@ public class InvPackAct extends ActionHandlerEJB implements InvPackActLocal, Inv ...@@ -220,7 +221,20 @@ public class InvPackAct extends ActionHandlerEJB implements InvPackActLocal, Inv
System.out.println("available :"+available); System.out.println("available :"+available);
} }
} }
orderType = genericUtility.getColumnValue("order_type",dom1);
useInvStatus = genericUtility.getColumnValue("use_invstatus",dom1);
if( "N".equals(orderType))
{
if ( "U".equals(useInvStatus))
{
available = "'Y'";
}
else
{
available = "'N'";
}
}
sql = "SELECT CASE WHEN TRACK_SHELF_LIFE IS NULL THEN 'N' ELSE TRACK_SHELF_LIFE END " sql = "SELECT CASE WHEN TRACK_SHELF_LIFE IS NULL THEN 'N' ELSE TRACK_SHELF_LIFE END "
+"FROM ITEM WHERE ITEM_CODE = '"+itemCode+"'"; +"FROM ITEM WHERE ITEM_CODE = '"+itemCode+"'";
System.out.println("sql :"+sql); System.out.println("sql :"+sql);
......
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