Commit 3759b910 authored by manohar's avatar manohar

Validation for null tran_date added


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@93772 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 25f2c393
...@@ -5121,6 +5121,14 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales ...@@ -5121,6 +5121,14 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
if( childNodeName.equalsIgnoreCase( "tran_date" ) ) if( childNodeName.equalsIgnoreCase( "tran_date" ) )
{ {
String mdateStr = genericUtility.getColumnValue( "tran_date", dom );// dw_edit.getitemdatetime(1,fldname) String mdateStr = genericUtility.getColumnValue( "tran_date", dom );// dw_edit.getitemdatetime(1,fldname)
// 14/10/13 manoharan check for null tran_date
if (mdateStr == null)
{
errList.add( "VTTRNDTNUL" );
errFields.add( childNodeName.toLowerCase() );
}
else
{
mdate1 = Timestamp.valueOf(genericUtility.getValidDateString( mdateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");//getDateInAppFormat( mdateStr ); mdate1 = Timestamp.valueOf(genericUtility.getValidDateString( mdateStr, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()) + " 00:00:00.0");//getDateInAppFormat( mdateStr );
siteCode = genericUtility.getColumnValue( "site_code", dom ); //dw_edit.getitemstring(1,"site_code") siteCode = genericUtility.getColumnValue( "site_code", dom ); //dw_edit.getitemstring(1,"site_code")
lsInvoiceId = genericUtility.getColumnValue( "invoice_id", dom ); //dw_edit.getitemstring(1,"invoice_id") lsInvoiceId = genericUtility.getColumnValue( "invoice_id", dom ); //dw_edit.getitemstring(1,"invoice_id")
...@@ -5166,6 +5174,7 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales ...@@ -5166,6 +5174,7 @@ public class SalesReturn extends ValidatorEJB implements SalesReturnLocal, Sales
} }
} }
} }
}
if( childNodeName.equalsIgnoreCase( "cust_code" ) || if( childNodeName.equalsIgnoreCase( "cust_code" ) ||
childNodeName.equalsIgnoreCase( "cust_code__bill" ) || childNodeName.equalsIgnoreCase( "cust_code__bill" ) ||
childNodeName.equalsIgnoreCase( "cust_code__dlv" ) ) childNodeName.equalsIgnoreCase( "cust_code__dlv" ) )
......
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