Commit 229b416c authored by manohar's avatar manohar

expiry date calculation logic changed to consider shelf life - 1


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96855 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9e3c173f
......@@ -892,9 +892,10 @@ public class WorkOrderAmd extends ValidatorEJB implements WorkOrderAmdLocal, W
if(trackShelfLife.equalsIgnoreCase("Y"))
{
calender.setTimeInMillis(mfgDateStart.getTime());
calender.add(Calendar.MONTH,shelfLife);
calender.add(Calendar.MONTH, (shelfLife - 1));
System.out.println("exp date old>>>>>> " + expDateStr );
System.out.println("exp date calculated>>>>>> " + calender.getTime() );
CalcExpiry(java.sql.Timestamp date, double shelfLife)
sql = "select last_day(?) from dual";
pstmt= conn.prepareStatement(sql);
pstmt.setTimestamp(1,new Timestamp(calender.getTime().getTime()));
......
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