Commit c30d2abb authored by caluka's avatar caluka

Reference number blank then return error message


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98686 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 177910b9
......@@ -66,6 +66,8 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf
custCode = rs.getString("cust_code");
rfDate = rs.getTimestamp("ref_date");
}
System.out.println("refNo>>>>>>>>"+refNo);
System.out.println("rfDate>>>>>>>>"+rfDate);
rs.close();
rs = null;
pstmt.close();
......@@ -75,9 +77,11 @@ public class EcollectionConf extends ActionHandlerEJB implements EcollectionConf
if (refNo == null || refNo.trim().length() == 0)
{
errString = itmDBAccessLocal.getErrorString("", "VTNULREFNO", "");
return errString;
}else if (rfDate == null)
{
errString = itmDBAccessLocal.getErrorString("", "VTNULREFDT", "");
return errString;
} else
{
sql = " select count(*) as cnt from receipt_form where site_code = ? and bank_code=? and ref_no=? ";
......
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