Commit 43908e6c authored by prane's avatar prane

Process date should be always greater than or equal to To date and...

Process date should be always greater than or equal to To date and ReceivableJV transaction saved(tran_date) on Process Date added in process

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@194598 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8de43cc0
...@@ -961,8 +961,8 @@ Put a validation chq amount in filter and total of details matches in case heade ...@@ -961,8 +961,8 @@ Put a validation chq amount in filter and total of details matches in case heade
String groupCode=""; String groupCode="";
String xmlString = "",objName=""; String xmlString = "",objName="";
String procDateStr = ""; String procDateStr = "";
String procDtStr = ""; String procDtStr = "",sdueDateTo = "";
Timestamp procDate = null; Timestamp procDate = null, dueDateTo = null;
try try
{ {
if(conn==null) if(conn==null)
...@@ -1016,10 +1016,30 @@ conn = getConnection(); ...@@ -1016,10 +1016,30 @@ conn = getConnection();
System.out.println("TranDate ::::-"+trDate);*/ System.out.println("TranDate ::::-"+trDate);*/
//Commented by Manoj dtd 03/05/2014writeLog(filePtr,"TranDate ::::-"+trDate,true); //Commented by Manoj dtd 03/05/2014writeLog(filePtr,"TranDate ::::-"+trDate,true);
//Pavan R 17dec18[Process date should be always greater than or equal to To date] //Pavan R 17dec18[Process date should be always greater than or equal to To date]
procDateStr = genericUtility.getColumnValue("prc_date",headerDom); procDateStr = genericUtility.getColumnValue("prc_date",headerDom);
System.out.println(">>>>Process Date::1::["+procDateStr+"]");
if(procDateStr == null || procDateStr.trim().length() == 0)
{
returnString= itmDBAccessEJB.getErrorString("","VTNULLPRC","","",conn);
return returnString;
}
procDtStr = genericUtility.getValidDateString(procDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()); procDtStr = genericUtility.getValidDateString(procDateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
procDate = java.sql.Timestamp.valueOf(procDtStr + " 00:00:00"); procDate = java.sql.Timestamp.valueOf(procDtStr + " 00:00:00");
System.out.println(">>>>Process Date inside Process::["+procDate+"]"); System.out.println(">>>>Process Date inside Process::["+procDate+"]");
sdueDateTo = genericUtility.getColumnValue("due_date_to",headerDom);
System.out.println("due_dateTo is ::1::"+sdueDateTo);
if ( sdueDateTo == null || sdueDateTo.trim().length() == 0 )
{
returnString = itmDBAccessEJB.getErrorString("","INVDT1","","",conn);
return returnString;
}
sdueDateTo = genericUtility.getValidDateString(sdueDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat());
dueDateTo = java.sql.Timestamp.valueOf(dueDateTo + " 00:00:00");
if(procDate.before(dueDateTo))
{
returnString= itmDBAccessEJB.getErrorString("","VTPROCDATE","","",conn);
return returnString;
}
//Pavan R 17dec18 -end //Pavan R 17dec18 -end
/* try /* try
{ {
......
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