Commit 2d15c394 authored by msharma's avatar msharma

Validation changed in Mis Pay submit button


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@100037 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c1c907a4
......@@ -268,9 +268,9 @@ public class MiscPaySubAct extends ActionHandlerEJB implements MiscPaySubActLoca
else if(finparPayModeArrList.contains(payMode.trim()))
{
System.out.println("@V@ Stan code not blank");
if (!"E".equalsIgnoreCase(sundryType))
/*if (!"E".equalsIgnoreCase(sundryType))
{
System.out.println("@V@ Sundry type NOT 'E'");
System.out.println("@V@ Sundry type NOT 'E'");*/
if (stnCdList.size() > 0)
{
System.out.println("@V@ List size is NOT 0 :-[" + stnCdList.size() + "]");
......@@ -287,7 +287,7 @@ public class MiscPaySubAct extends ActionHandlerEJB implements MiscPaySubActLoca
System.out.println("@V@ First Stan code added in list");
stnCdList.add(stationCode);
}
}
// }
}
sql = "SELECT tot_amt as tot_amt, adj_amt as adj_amt ,hold_amt,sundry_type as sundrytype from misc_payables where tran_ser = ?"
......@@ -454,7 +454,7 @@ public class MiscPaySubAct extends ActionHandlerEJB implements MiscPaySubActLoca
retString = itmDBAccessLocal.getErrorString("", "VTSTNCDINV", "");
return retString;
}
if (!"E".equalsIgnoreCase(sundryType))
/* if (!"E".equalsIgnoreCase(sundryType))
{
if (stanCdDupl)
{
......@@ -462,10 +462,15 @@ public class MiscPaySubAct extends ActionHandlerEJB implements MiscPaySubActLoca
retString = itmDBAccessLocal.getErrorString("", "VTSTNCDDPL", "");
return retString;
}
}*/
if (stanCdDupl)
{
System.out.println("@V@ Station code Duplicate found");
retString = itmDBAccessLocal.getErrorString("", "VTSTNCDDPL", "");
return retString;
}
/* sql = "SELECT COUNT(*) AS CNT FROM BANKTRAN_LOG WHERE BANK_CODE=? AND TRAN_TYPE='P' AND TRAN_SER <> 'R-DIS' AND REF_NO=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, bankCode);
......
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