Commit ee8bbc20 authored by sshaikh's avatar sshaikh

Buildforecast calculate sales quantity related changes

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@198822 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 22e85b8d
...@@ -625,7 +625,7 @@ public class BuildForecastPrc extends ProcessEJB ...@@ -625,7 +625,7 @@ public class BuildForecastPrc extends ProcessEJB
{ {
String userid = getUserInfo().getLoginCode(); String userid = getUserInfo().getLoginCode();
String termid = getUserInfo().getLoginCode(); String termid = getUserInfo().getLoginCode();
float lc_quantity = 0, lc_perc = 0, qty = 0; float lc_quantity = 0, lc_perc = 1, qty = 0;
int hdrInsCont = 0; int hdrInsCont = 0;
int detInsCont = 0; int detInsCont = 0;
...@@ -699,11 +699,15 @@ public class BuildForecastPrc extends ProcessEJB ...@@ -699,11 +699,15 @@ public class BuildForecastPrc extends ProcessEJB
{ {
lc_quantity = qty + (qty * forecastBean.getPercent())/100; lc_quantity = qty + (qty * forecastBean.getPercent())/100;
} }
if ( lc_perc > 0 ) else if ( lc_perc > 0 )
{ {
lc_quantity = qty + (qty * lc_perc)/100; lc_quantity = qty + (qty * lc_perc)/100;
} }
} }
else if ( lc_perc > 0 )
{
lc_quantity = qty + (qty * lc_perc)/100;
}
lc_quantity = Math.round(lc_quantity); lc_quantity = Math.round(lc_quantity);
BaseLogger.log("3", null, null, " lc_quantity insert value ="+lc_quantity ); BaseLogger.log("3", null, null, " lc_quantity insert value ="+lc_quantity );
......
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