Commit a6787af5 authored by sshaikh's avatar sshaikh

BuildForecast Related changes .

1 ) argument change 
2 ) System entries added  in the sql file.
3 ) Unused variable remove

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202401 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a86c55e2
......@@ -133,7 +133,9 @@ public class BuildForecastPrc extends ProcessEJB
}
HashMap<Integer, ForecastBean> periodDataMap = getPeriodCode( prdCodeFrom, prdCodeTo, detailDom, conn );
HashMap<Integer, DWHSalesSumBean> dwhSalesSumBeanMap = buildDWHSalesSumData( siteCodeFrom, siteCodeTo, prdCodeFrom, prdCodeTo, itemSerFrom, itemSerTo, conn );
//Arguement change by sadique shaikh 21-6-2019
HashMap<Integer, DWHSalesSumBean> dwhSalesSumBeanMap = buildDWHSalesSumData( siteCodeFrom, siteCodeTo, minPeriod, maxPeriod, itemSerFrom, itemSerTo, conn );
windowName = checkNull( windowName );
if ( windowName.length() == 0 )
......@@ -625,7 +627,7 @@ public class BuildForecastPrc extends ProcessEJB
{
String userid = getUserInfo().getLoginCode();
String termid = getUserInfo().getLoginCode();
float lc_quantity = 0, lc_perc = 1, qty = 0;
float lc_quantity = 0, lc_perc = 0, qty = 0;
int hdrInsCont = 0;
int detInsCont = 0;
......@@ -699,12 +701,12 @@ public class BuildForecastPrc extends ProcessEJB
{
lc_quantity = qty + (qty * forecastBean.getPercent())/100;
}
else if ( lc_perc > 0 )
else
{
lc_quantity = qty + (qty * lc_perc)/100;
}
}
else if ( lc_perc > 0 )
else
{
lc_quantity = qty + (qty * lc_perc)/100;
}
......@@ -929,7 +931,9 @@ public class BuildForecastPrc extends ProcessEJB
PreparedStatement pstm = null;
ResultSet rs = null;
float lc_sales_quantity = 0, lc_total_qty = 0;
//remove unused variable by sadique 21-6-2019
float lc_sales_quantity = 0;
try
{
int li_ctr = 0;
......@@ -957,7 +961,7 @@ public class BuildForecastPrc extends ProcessEJB
}
else
{
lc_total_qty = 0;
lc_sales_quantity = 0;
}
}
else if ( ls_consider_zero.equalsIgnoreCase( "Y" ) )
......
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