Commit 24e71583 authored by manohar's avatar manohar

Minor Bug fixing


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97219 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 37f8dffc
...@@ -186,12 +186,16 @@ public class CalculateCommission ...@@ -186,12 +186,16 @@ public class CalculateCommission
} }
} }
if (errString != null && errString.trim().length() > 0)
{
break;
}
} }
rs.close(); rs.close();
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if (errString == null || errString.trim().length() == 0) if (errString != null && errString.trim().length() > 0)
{ {
return errString; return errString;
} }
...@@ -1242,11 +1246,11 @@ public class CalculateCommission ...@@ -1242,11 +1246,11 @@ public class CalculateCommission
{ {
jvExchrate = 1; jvExchrate = 1;
} }
if(lineNoInv == 0) if(lineNoInv != 0)
{ {
invLineNo = lineNoInv; invLineNo = lineNoInv;
} }
System.out.println(">>>>>>>lineNoInv:"+lineNoInv); System.out.println(">>>>>>>lineNoInv [" + lineNoInv + "]");
if("SR".equalsIgnoreCase(calledFrom) && "P".equalsIgnoreCase(commCalc)) if("SR".equalsIgnoreCase(calledFrom) && "P".equalsIgnoreCase(commCalc))
{ {
sql = "select net_amt from drcr_inv, drcr_invdet where drcr_inv.tran_id = drcr_invdet.tran_id and " + sql = "select net_amt from drcr_inv, drcr_invdet where drcr_inv.tran_id = drcr_invdet.tran_id and " +
...@@ -2075,8 +2079,8 @@ public class CalculateCommission ...@@ -2075,8 +2079,8 @@ public class CalculateCommission
pstmt.setString(3, crTranId); pstmt.setString(3, crTranId);
pstmt.setDouble(4, netAmt); pstmt.setDouble(4, netAmt);
pstmt.setDouble(5, netAmt); pstmt.setDouble(5, netAmt);
pstmt.setString(6, ""); pstmt.setString(6, " ");
pstmt.setString(7, ""); pstmt.setString(7, " ");
pstmt.setDouble(8, 0); pstmt.setDouble(8, 0);
pstmt.setString(9, mpayTranid); pstmt.setString(9, mpayTranid);
pstmt.executeUpdate(); pstmt.executeUpdate();
......
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