Commit 64509c22 authored by pdas's avatar pdas

Changes in CommCreditNote


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97803 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 17ced8c5
......@@ -2894,7 +2894,7 @@ public class CalculateCommission
{
sql = "select sum(case when drcr_flag = 'C' then net_amt else -net_amt end) from drcr_inv, drcr_invdet " +
"where drcr_inv.tran_id = drcr_invdet.tran_id and drcr_inv.invoice_id = ? and drcr_inv.sundry_code = ? " +
" and drcr_inv.curr_code = ? and (case when line_no__inv is null then 0 else line_no__inv end) = ? ";
" and drcr_inv.curr_code = ? and (case when line_no__inv is null then 0 else line_no__inv end) = ? and drcr_flag = 'C'";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1,invoiceId );
pstmt.setString(2, salesPer);
......
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