Commit f54b4121 authored by cpatil's avatar cpatil

bank code move up


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98512 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 65ab3a64
...@@ -600,6 +600,8 @@ public class AutoPmtGenPrc extends ProcessEJB implements AutoPmtGenPrcLocal,Auto ...@@ -600,6 +600,8 @@ public class AutoPmtGenPrc extends ProcessEJB implements AutoPmtGenPrcLocal,Auto
double balanceAmt=0; double balanceAmt=0;
String sundryCodeList=""; String sundryCodeList="";
double unAppNegativeAmt=0; double unAppNegativeAmt=0;
String maxRefNo="";
try try
{ System.out.println("intializingLog$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$........."+ intializingLog("Gen_bank_payment_log")); { System.out.println("intializingLog$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$........."+ intializingLog("Gen_bank_payment_log"));
...@@ -809,6 +811,36 @@ System.out.println("Getting winName============"+windowName); ...@@ -809,6 +811,36 @@ System.out.println("Getting winName============"+windowName);
System.out.println("excRateBc from getDailyExchRateSellBuy========="+excRateBc); System.out.println("excRateBc from getDailyExchRateSellBuy========="+excRateBc);
sql = "SELECT chq1,chq2 FROM BANK WHERE BANK_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,bankCode);
rs = pstmt.executeQuery();
if (rs.next())
{
chq1= checkNull(rs.getString(1)).trim();
chq2= checkNull(rs.getString(2)).trim();
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("Chq1========="+chq1);
System.out.println("chq2========="+chq2);
if(chq1!=null & chq1.trim().length()>0 && chq2!=null & chq2.trim().length()>0)
{
if(Integer.parseInt(chq1)>Integer.parseInt(chq2))
{
// maxRefNo=""+(Integer.parseInt(chq1)+1);
maxRefNo=""+chq1; // modified by cpatil for cheq no increment
}
}
System.out.println("Ref No To ======="+maxRefNo);
//changes for grouping on 25/05/15 //changes for grouping on 25/05/15
...@@ -1035,7 +1067,8 @@ System.out.println("Getting winName============"+windowName); ...@@ -1035,7 +1067,8 @@ System.out.println("Getting winName============"+windowName);
} // For inner loop } // For inner loop
//if (Double.parseDouble(netPayable) != 0 ) // Condition added by jaimin 16/08/2007 // Remarked by Raj - 29/12/2007 //if (Double.parseDouble(netPayable) != 0 ) // Condition added by jaimin 16/08/2007 // Remarked by Raj - 29/12/2007
//changes for grouping on 21/05/15 //changes for grouping on 21/05/15
sundryCodeList+="'"+sundryCode+"',"; sundryCodeList+="'"+sundryCode+"',";
if(spiltChq!=null && "Y".equalsIgnoreCase(spiltChq)) if(spiltChq!=null && "Y".equalsIgnoreCase(spiltChq))
...@@ -1618,6 +1651,7 @@ System.out.println("Getting winName============"+windowName); ...@@ -1618,6 +1651,7 @@ System.out.println("Getting winName============"+windowName);
System.out.println("1319Sundry Code===="+sundryCode); System.out.println("1319Sundry Code===="+sundryCode);
//ArrayList<String > sundryCodeList=new ArrayList<String>(); //ArrayList<String > sundryCodeList=new ArrayList<String>();
double sumNetAmtDummy=0; double sumNetAmtDummy=0;
double sumNetAmt=0.0,totUnconfAmt=0; double sumNetAmt=0.0,totUnconfAmt=0;
...@@ -1685,33 +1719,7 @@ System.out.println("Getting winName============"+windowName); ...@@ -1685,33 +1719,7 @@ System.out.println("Getting winName============"+windowName);
sql = "SELECT chq1,chq2 FROM BANK WHERE BANK_CODE = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,bankCode);
rs = pstmt.executeQuery();
if (rs.next())
{
chq1= checkNull(rs.getString(1)).trim();
chq2= checkNull(rs.getString(2)).trim();
}
rs.close();
rs = null;
pstmt.close();
pstmt = null;
System.out.println("Chq1========="+chq1);
System.out.println("chq2========="+chq2);
String maxRefNo="";
if(chq1!=null & chq1.trim().length()>0 && chq2!=null & chq2.trim().length()>0)
{
if(Integer.parseInt(chq1)>Integer.parseInt(chq2))
{
// maxRefNo=""+(Integer.parseInt(chq1)+1);
maxRefNo=""+chq1; // modified by cpatil for cheq no increment
}
}
System.out.println("1416Currency_code==================="+currCode); System.out.println("1416Currency_code==================="+currCode);
System.out.println("Site_code==================="+siteCode); System.out.println("Site_code==================="+siteCode);
...@@ -1720,7 +1728,7 @@ System.out.println("Getting winName============"+windowName); ...@@ -1720,7 +1728,7 @@ System.out.println("Getting winName============"+windowName);
System.out.println("Final Negative List====="+splitCodeWiseNegMap); System.out.println("Final Negative List====="+splitCodeWiseNegMap);
System.out.println("Ref No To be set in Header ======="+maxRefNo);
sumNetAmt=0.0; sumNetAmt=0.0;
System.out.println("Sum Amount 1 @@@==="+sumNetAmt); System.out.println("Sum Amount 1 @@@==="+sumNetAmt);
balanceAmt=0; balanceAmt=0;
......
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