Commit 69648afd authored by manohar's avatar manohar

Bug fix in sql || used as or condition corrected


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@96630 ce508802-f39f-4f6c-b175-0d175dae99d5
parent aba0a21d
......@@ -113,7 +113,7 @@ public class CalculateCommission
// called from receipt
sql = "select rcpdet.ref_ser, rcpdet.ref_no, ( rcpdet.rcp_amt - ( rcpdet.tax_amt * rcpdet.rcp_amt / rcpdet.net_amt ) ) / (inv_amt - invoice.disc_amt)" +
"from rcpdet, invoice where rcpdet.ref_no = invoice.invoice_id and tran_id = ?" +
" and ( ref_ser = 'S-INV' || ref_ser like 'R-IBC%' )";
" and ( ref_ser = 'S-INV' OR ref_ser like 'R-IBC%' )";
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