Commit bf31e61d authored by ssalve's avatar ssalve

updated CostCtrAllocPosEJB.java class on 07NOV2017

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@173144 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 6c40fc93
......@@ -95,7 +95,7 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE
StringBuffer finalString = null;
StringBuffer headerString = null;
StringBuffer detailString = new StringBuffer();
double crAmount=0.0, drAmount=0.0;
double crAmount=0.0, drAmount=0.0,totUnitsVal=0.0;
double totalAllocAmt = 0;
String creditAmount="",debitAmount="";
......@@ -289,6 +289,11 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE
currCodeJrnal = getCurrencyCodeVal(finEntityJrnal, conn);
System.out.println("tranIDJNRL ::["+tranIDJNRL+"]"+"site_code ["+site_code+"]" +"acc_code ["+acct_code+"]" + "lineNo ::["+lineNo+"]"+"drcrFlag ::["+drcrFlag+"]" +"finEntityJrnal ::["+finEntityJrnal+"]" +"currCodeJrnal ::["+currCodeJrnal+"]");
System.out.println("Value of Flag is ::::::["+flag+"]");
// Added by sarita on 03NOV2017
if(tot_units != null && tot_units.trim().length() > 0)
{
totUnitsVal = Double.valueOf(tot_units);
}
pstmt.setString(1,tranID);
pstmt.setString(2,prd_code);
pstmt.setString(3,site_code);
......@@ -297,7 +302,7 @@ public class CostCtrAllocPosEJB extends ValidatorEJB implements CostCtrAllocPosE
pstmt.setString(6,acct_code);
pstmt.setString(7,cctr_code);
pstmt.setString(8,exp_head);
pstmt.setDouble(9,Double.valueOf(tot_units));
pstmt.setDouble(9,totUnitsVal);
pstmt.setTimestamp(10,tranDate);
pstmt.setString(11,userId);
pstmt.setString(12,chgTerm);
......
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