In the file includes/ui/ui_lists.inc, the function sales_areas_list():
function sales_areas_list($name, $selected_id=null)
{
$sql = "SELECT area_code, description, inactive FROM ".TB_PREF."areas";
return combo_input($name, $selected_id, $sql, 'area_code', 'description', array());
}
should be made to match it's peers (function sales_persons_list) as:
function sales_areas_list($name, $selected_id=null, $spec_opt=false)
{
$opt = array();
if ($spec_opt !== false)
$opt = array('order'=>array('description'), 'spec_option' => $spec_opt, 'spec_id' => ALL_NUMERIC);
$sql = "SELECT area_code, description, inactive FROM ".TB_PREF."areas";
return combo_input($name, $selected_id, $sql, 'area_code', 'description', $opt);
}
and the lines in reporting/includes/reports_classes.inc:
case 'AREAS':
return sales_areas_list($name);
should be changed to:
case 'AREAS':
return sales_areas_list($name, null, _("No Sales Area Filter"));
and the string added to the empty.po for translations.
The "AREAS" is used only in the rep103.php as of now.
The "SALESTYPES" is used only in rep104.php and will need similar changes.