/
var
/
www
/
html
/
freshsugar25
/
include
/
SugarForecasting
/
Progress
/
Upload File
HOME
<?php /* * Your installation or use of this SugarCRM file is subject to the applicable * terms available at * http://support.sugarcrm.com/Resources/Master_Subscription_Agreements/. * If you do not agree to all of the applicable terms or do not have the * authority to bind the entity as an authorized representative, then do not * install or use this SugarCRM file. * * Copyright (C) SugarCRM Inc. All rights reserved. */ abstract class SugarForecasting_Progress_AbstractProgress extends SugarForecasting_AbstractForecastArgs implements SugarForecasting_ForecastProcessInterface { /** * Class Constructor * @param array $args Service Arguments */ public function __construct($args) { parent::__construct($args); $this->loadConfigArgs(); } /** * Get Settings from the Config Table. */ public function loadConfigArgs() { /* @var $admin Administration */ $admin = Administration::getSettings(); $settings = $admin->getConfigForModule('Forecasts'); // decode and json decode the settings from the administration to set the sales stages for closed won and closed lost $this->setArg('sales_stage_won', $settings['sales_stage_won']); $this->setArg('sales_stage_lost', $settings['sales_stage_lost']); } }