! -> Note
$ -> Affected files
-
-15-Sep-2009 Janusz Dobrowolski
+15-Sep-2009 Janusz Dobrowolski/Joe Hunt
# Fixed journal entry type and systype selectors
$ /includes/types.inc
-! Clenaup
+! Cleanup
$ /includes/ui/ui_lists.inc
+ /reporting/includes/reports_classes.inc
14-Sep-2009 Joe Hunt
! Changed all numeric constants to the new defined constants. A huge task.
function systypes_list_cells($label, $name, $value=null, $submit_on_change=false)
{
global $systypes_array;
+
+ if ($label != null)
+ echo "<td>$label</td>\n";
+ echo "<td>";
$str = array_selector($name, $value, $systypes_array,
array(
foreach ($systypes_array as $i => $value)
{
- if (!$all_types && ($i == 16 || $i == 18 || $i == 25 || ($i >= 28 && $i <= 30) || $i >= 40))
+ if (!$all_types && ($i == ST_LOCTRANSFER || $i == ST_PURCHORDER || $i == ST_SUPPRECEIVE || ($i >= ST_MANUISSUE && $i <= ST_SALESQUOTE) ||
+ $i >= ST_DIMENSION))
continue;
- $st .= "<option" . ($selected_id == $i ? " selected" : "") . " value='$i'>" . $value['name'] . "</option>\n";
+ $st .= "<option" . ($selected_id == $i ? " selected" : "") . " value='$i'>" . $value . "</option>\n";
}
$st .= "</select>";
return $st;