Commit 99a38114 authored by kshinde's avatar kshinde

Despatch IC and stock button skip item if expiry date is null

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@195804 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2cf544c2
...@@ -2600,20 +2600,23 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch ...@@ -2600,20 +2600,23 @@ public class DispatchIC extends ValidatorEJB implements DispatchICLocal,Dispatch
ld_chk_date = distCommon.CalcExpiry(ld_alloc_date,ll_min_shelf_life); ld_chk_date = distCommon.CalcExpiry(ld_alloc_date,ll_min_shelf_life);
if( ld_chk_date.after(ld_exp_date)) if(ld_exp_date!=null)
{ {
errCode = "VTNEXPDT"; if( ld_chk_date.after(ld_exp_date))
errList.add(errCode); {
errFields.add(childNodeName.toLowerCase()); errCode = "VTNEXPDT";
} errList.add(errCode);
//Code added by ajit on date 30_jan-2015 instructed by pravin errFields.add(childNodeName.toLowerCase());
if( ld_exp_date.before(ld_alloc_date) && "Y".equalsIgnoreCase(ls_track_shelf_life)) }
{ //Code added by ajit on date 30_jan-2015 instructed by pravin
errCode="VTLOTAEUR"; if( ld_exp_date.before(ld_alloc_date) && "Y".equalsIgnoreCase(ls_track_shelf_life))
errList.add(errCode); {
errFields.add(childNodeName.toLowerCase()); errCode="VTLOTAEUR";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
//End of the code added by ajit on date 30-Jan-2015
} }
//End of the code added by ajit on date 30-Jan-2015
}//end if }//end if
}// end if }// end if
......
...@@ -872,13 +872,15 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D ...@@ -872,13 +872,15 @@ public class DespatchAct extends ActionHandlerEJB implements DespatchActLocal, D
stkExpDate = rs.getDate("EXP_DATE"); stkExpDate = rs.getDate("EXP_DATE");
if(stkExpDate != null) if(stkExpDate != null)
{ {
stkExpDate1 = sdf.format(stkExpDate); stkExpDate1 = sdf.format(stkExpDate);
expDate = new Timestamp(stkExpDate.getTime());
} }
else else
{ {
stkExpDate1 = ""; stkExpDate1 = "";
continue;
} }
expDate = new Timestamp(stkExpDate.getTime()); //expDate = new Timestamp(stkExpDate.getTime());
System.out.println("Inside loop expDate ["+expDate+"]"); System.out.println("Inside loop expDate ["+expDate+"]");
......
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