Commit 71a06556 authored by pdas's avatar pdas

As per PB code the changes are made where the acct_code_p is taken from the...

As per PB code the changes are made where the acct_code_p is taken from the sales_pers table using the finParam() method.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97317 ce508802-f39f-4f6c-b175-0d175dae99d5
parent eff47596
...@@ -954,15 +954,21 @@ public class CalculateCommission ...@@ -954,15 +954,21 @@ public class CalculateCommission
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
acctCode = finCommon.getFinparams("999999", "SALES_COMM_PROV_ACCT", conn);
if("NULLFOUND".equalsIgnoreCase(acctCode)||acctCode.trim().length()==0)
{
errString = itmDBAccessEJB.getErrorString("","VTFINPARM ","","",conn);
return errString;
sql = "select acct_code__ap,cctr_code__ap from sales_pers where sales_pers = ?"; }
sql = "select cctr_code__ap from sales_pers where sales_pers = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, salesPers); pstmt.setString(1, salesPers);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
acctCode = rs.getString(1);
cctrCode = rs.getString(2); cctrCode = rs.getString(1);
} }
else else
{ {
......
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