Commit 2f07eb66 authored by manohar's avatar manohar

bugfix in nfcheckperiod and daysafter methods


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@91240 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 88b6e32f
...@@ -72,6 +72,10 @@ public class SysCommon ...@@ -72,6 +72,10 @@ public class SysCommon
errCode = "VTPRDT" + fldPart; errCode = "VTPRDT" + fldPart;
} }
} }
else
{
errCode = "VTPRD2";
}
rs.close(); rs.close();
pstmt.close(); pstmt.close();
rs = null; rs = null;
......
...@@ -71,7 +71,7 @@ public class UtilMethods { ...@@ -71,7 +71,7 @@ public class UtilMethods {
date2 = java.sql.Timestamp.valueOf(sdt.format(date2) + " 00:00:00.000"); date2 = java.sql.Timestamp.valueOf(sdt.format(date2) + " 00:00:00.000");
calen1.setTime(date2); calen1.setTime(date2);
totDays = (calen.getTime().getTime() - calen1.getTime().getTime()) / (24 * 3600 * 1000); totDays = (calen1.getTime().getTime() - calen.getTime().getTime()) / (24 * 3600 * 1000);
return totDays; return totDays;
} }
...@@ -183,7 +183,7 @@ public class UtilMethods { ...@@ -183,7 +183,7 @@ public class UtilMethods {
totHHMM = (double) Double.parseDouble( Integer.toString(totalHrs).trim() + "." + Integer.toString(totlMts).trim() ); totHHMM = (double) Double.parseDouble( Integer.toString(totalHrs).trim() + "." + Integer.toString(totlMts).trim() );
totHHMM = totHHMM * multiplier ; totHHMM = totHHMM * multiplier ;
return totHHMM; return totHHMM;
} }
} }
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