Commit 8b9cb0e6 authored by mchaudhari's avatar mchaudhari

Misc Voucher Update Query Correction


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@95566 ce508802-f39f-4f6c-b175-0d175dae99d5
parent bda50eb8
......@@ -129,7 +129,7 @@ public class MiscVoucherPostSave extends ValidatorEJB implements MiscVoucherPost
//Detail Screen Cross Update
sql="select case when mv.vouch_type = 'A' Then coalesce(sum(mvdet.amount),0) ELSE 0 END, case when mv.vouch_type != 'A' Then coalesce(sum(mvdet.amount),0) ELSE 0 END, coalesce(sum(tax_amt),0) from misc_vouchdet mvdet join misc_voucher mv on mvdet.tran_id = mv.tran_id WHERE mvdet.tran_id = ? " ;
sql="select case when mv.vouch_type = 'A' Then coalesce(sum(mvdet.amount),0) ELSE 0 END, case when mv.vouch_type != 'A' Then coalesce(sum(mvdet.amount),0) ELSE 0 END, coalesce(sum(mvdet.tax_amt),0) from misc_vouchdet mvdet join misc_voucher mv on mvdet.tran_id = mv.tran_id WHERE mvdet.tran_id = ? group by mv.vouch_type" ;
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,tranId);
rs = pstmt.executeQuery();
......
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