Commit a0d778ad authored by manohar's avatar manohar

for ibca site_code__pay to be taken from misc_voucher itself instead of master


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103664 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1ca1b4e6
...@@ -1161,17 +1161,18 @@ conn = getConnection(); ...@@ -1161,17 +1161,18 @@ conn = getConnection();
{ {
supp =(String)mischdrMap.get("sundry_code"); supp =(String)mischdrMap.get("sundry_code");
siteCode =(String)mischdrMap.get("site_code"); siteCode =(String)mischdrMap.get("site_code");
// 13/10/16 manoharan site_code__pay to be taken from misc_voucher
sql =" select site_code__pay from site_supplier where supp_code = ? and site_code = ? "; //sql =" select site_code__pay from site_supplier where supp_code = ? and site_code = ? ";
sql =" select site_code__pay from misc_voucher where tran_id = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,supp); pstmt.setString(1,tranId);
pstmt.setString(2,siteCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
sitePayment = rs.getString("site_code__pay"); sitePayment = rs.getString("site_code__pay");
System.out.println( "Site Payment"+sitePayment); System.out.println( "Site Payment"+sitePayment);
} }
/*
else else
{ {
System.out.println("Else Condition"); System.out.println("Else Condition");
...@@ -1189,6 +1190,7 @@ conn = getConnection(); ...@@ -1189,6 +1190,7 @@ conn = getConnection();
pstmtInner = null; pstmtInner = null;
System.out.println("Else sitePayment"+sitePayment); System.out.println("Else sitePayment"+sitePayment);
} }
*/
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
...@@ -1200,7 +1202,7 @@ conn = getConnection(); ...@@ -1200,7 +1202,7 @@ conn = getConnection();
} }
System.out.println("sitePayment"+sitePayment+" !=siteCode"+siteCode); System.out.println("sitePayment"+sitePayment+" !=siteCode"+siteCode);
if((sitePayment != siteCode) && (("I").equalsIgnoreCase(runMode))) if((!sitePayment.trim().equals(siteCode.trim()) && (("I").equalsIgnoreCase(runMode)))
{ {
winName = "W_PAY_IBCA"; winName = "W_PAY_IBCA";
sql ="select key_string from transetup where upper(tran_window) = ? "; sql ="select key_string from transetup where upper(tran_window) = ? ";
......
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