private void createForecastRunDetail(MPPForecastRunMaster master,MPPPeriod period){
  MPPForecastRunDetail forecastRunDetail=new MPPForecastRunDetail(getCtx(),0,get_TrxName());
  forecastRunDetail.setPP_ForecastRun_ID(m_run.get_ID());
  forecastRunDetail.setPP_ForecastRunMaster_ID(master.getPP_ForecastRunMaster_ID());
  forecastRunDetail.setPP_Period_ID(period.get_ID());
  forecastRunDetail.setPeriodNo(period.getPeriodNo());
  forecastRunDetail.saveEx();
  generateForcastRunLines(forecastRunDetail);
  updateDetail(period.get_ID(),forecastRunDetail.get_ID());
}

private void createForecastRunDetail ( MPPForecastRunMaster master , MPPPeriod period ) { MPPForecastRunDetail forecastRunDetail = new MPPForecastRunDetail ( getCtx ( ) , 0 , get_TrxName ( ) ) ; forecastRunDetail . setPP_ForecastRun_ID ( m_run . get_ID ( ) ) ; forecastRunDetail . setPP_ForecastRunMaster_ID ( master . getPP_ForecastRunMaster_ID ( ) ) ; forecastRunDetail . setPP_Period_ID ( period . get_ID ( ) ) ; forecastRunDetail . setPeriodNo ( period . getPeriodNo ( ) ) ; forecastRunDetail . saveEx ( ) ; generateForcastRunLines ( forecastRunDetail ) ; updateDetail ( period . get_ID ( ) , forecastRunDetail . get_ID ( ) ) ; }
create forecast detail based on sales history
