Commit 250c552e authored by kshinde's avatar kshinde

Pdc received and given added conditon to check (totAmt -adjAmt) > pdcAmt

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198635 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9ec9239b
......@@ -137,7 +137,7 @@ public class PdcGivenAct extends ActionHandlerEJB implements PdcGivenActLocal,Pd
//Condition added by Kunal to check tot - adj amount is greater than pdc amt
+ " AND ABS(TOT_AMT - ADJ_AMT) > 0 "
//+" AND (TOT_AMT - ADJ_AMT - (case when PDC_AMOUNT is null then 0 else PDC_AMOUNT end) ) <> 0";
+ " AND ABS(TOT_AMT - ADJ_AMT) > (case when PDC_AMOUNT is null then 0 else PDC_AMOUNT end)";
+ " AND ABS(TOT_AMT - ADJ_AMT) > ABS(case when PDC_AMOUNT is null then 0 else PDC_AMOUNT end)";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, siteCode);
pstmt.setString(2, currCode);
......@@ -188,7 +188,7 @@ public class PdcGivenAct extends ActionHandlerEJB implements PdcGivenActLocal,Pd
+ " AND ABS(TOT_AMT - ADJ_AMT) > 0 "
//+" AND (TOT_AMT - ADJ_AMT - (case when PDC_AMOUNT is null then 0 else PDC_AMOUNT end) ) <> 0 "
//Condition added by Kunal to check tot - adj amount is greater than pdc amt
+ " AND ABS(TOT_AMT - ADJ_AMT) > (case when PDC_AMOUNT is null then 0 else PDC_AMOUNT end) "
+ " AND ABS(TOT_AMT - ADJ_AMT) > ABS(case when PDC_AMOUNT is null then 0 else PDC_AMOUNT end) "
+ " ORDER BY DUE_DATE";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, currCode);
......
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