Commit 90d8a359 authored by agaikwad's avatar agaikwad

Added Sql case when r.bill_disc = 'Y' then d.exch_rate__rcv else h.exch_rate end


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99411 ce508802-f39f-4f6c-b175-0d175dae99d5
parent e986e955
......@@ -233,7 +233,7 @@ public class ReceiptAdvPostSave extends ValidatorEJB implements ReceiptAdvPostSa
}
else
{
sql="select sum(d.rcp_amt * d.exch_rate__rcv / h.exch_rate), sum(case when r.bill_disc = 'Y' then d.BILL_DISC_AMT + d. FIN_CHG else 0 end ) "
sql="select sum(d.rcp_amt * (case when r.bill_disc = 'Y' then d.exch_rate__rcv else h.exch_rate end) / h.exch_rate), sum(case when r.bill_disc = 'Y' then d.BILL_DISC_AMT + d. FIN_CHG else 0 end ) "
+ " from receipt h, rcpdet d, receivables r "
+ " WHERE h.tran_id = d.tran_id "
+ " and r.tran_ser = d.ref_ser "
......
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