Commit a9ee7272 authored by msharma's avatar msharma

Remove receipt condition in getdata for S-INV as discussed with manohar sir


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92408 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 754b841a
......@@ -364,11 +364,14 @@ Put a validation chq amount in filter and total of details matches in case heade
// + "AND D.EXP_RCP_DATE = ? "//CHANGES MADE ON 18/12/2006 AND A.DUE_DATE->D.EXP_RCP_DATE
+ "AND ((D.DUE_DATE >= ? "//CHANGES MADE ON 18/12/2006 AND A.DUE_DATE->D.EXP_RCP_DATE
+ "AND D.DUE_DATE <= ? ) OR (D.DUE_DATE IS NULL)) "//CHANGES MADE ON 18/12/2006 AND A.DUE_DATE->D.EXP_RCP_DATE
/* 22/12/2012 Commented by Manoj not required
+ "AND NOT EXISTS (SELECT 1 FROM RECEIPT I "
+ "WHERE I.SITE_CODE = A.SITE_CODE "
+ "AND I.CUST_CODE = A.CUST_CODE "
//+ "AND I.REF_NO = (select E.REF_NO from invoice_amendment e where e.invoice_id = a.invoice_id and e.status = 'S' and e.confirmed = 'Y') " // Commented by manoj dtd 21/12/2012 to remove join with invoice amendment
+" ) "
*/
+ "ORDER BY A.CUST_CODE ";
//this.fw.write("getData SQL ..."+ sql + "\n");
writeLog(filePtr,"GetData 1st Sql :::."+ sql,true);
......
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