Commit d88b8dfb authored by vdhoble's avatar vdhoble

commented sql for voucherConfScheduler


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98134 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e5c4985e
......@@ -202,13 +202,14 @@ public class VoucherConfScheduler implements Schedule
conn = connDriver.getConnectDB("DriverITM");
connDriver = null;
sql="select tran_id from voucher where site_code=? and confirmed='N' and "
+ "tran_id in(select voucher_no from supplier_bill where case when match_status is null then '1' else match_status end = '3')"
+ " union all select tran_id from voucher where site_code=? and confirmed='N' "
+ "tran_id in(select voucher_no from supplier_bill where case when match_status is null then '1' else match_status end = '3')";
//commented as per manoj sir's instruction on 23/Jun/2015
/* + " union all select tran_id from voucher where site_code=? and confirmed='N' "
+ "and tran_id not in(select voucher_no from supplier_bill where "
+ "voucher_no is not null) ";
+ "voucher_no is not null) ";*/
pstmt=conn.prepareStatement(sql);
pstmt.setString(1,siteCode);
pstmt.setString(2,siteCode);
// pstmt.setString(2,siteCode);
rs=pstmt.executeQuery();
while(rs.next())
{
......
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