function display_bom($item_check)
{
- global $table_style;
-
$result = get_bom($item_check);
if (db_num_rows($result) == 0)
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("Component"), _("Description"), _("Work Centre"),
_("From Location"), _("Quantity"), _("Unit Cost"), _("Total Cost"));
function display_wo_requirements($woid, $quantity, $show_qoh=false, $date=null)
{
- global $table_style, $SysPrefs;
+ global $SysPrefs;
$result = get_wo_requirements($woid);
else
{
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("Component"), _("From Location"), _("Work Centre"),
_("Unit Quantity"), _("Total Quantity"), _("Units Issued"), _("On Hand"));
function display_wo_productions($woid)
{
- global $path_to_root, $table_style;
+ global $path_to_root;
$result = get_work_order_productions($woid);
}
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Reference"), _("Date"), _("Quantity"));
table_header($th);
function display_wo_issues($woid)
{
- global $path_to_root, $table_style;
+ global $path_to_root;
$result = get_work_order_issues($woid);
}
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Reference"), _("Date"));
table_header($th);
function display_wo_payments($woid)
{
- global $path_to_root, $table_style, $wo_cost_types;
+ global $path_to_root, $wo_cost_types;
- //$result = get_bank_trans(null, null, PT_WORKORDER, $woid);
$result = get_gl_wo_cost_trans($woid);
if (db_num_rows($result) == 0)
}
else
{
- start_table($table_style);
+ start_table(TABLESTYLE);
$th = array(_("#"), _("Type"), _("Date"), _("Amount"));
table_header($th);
function display_wo_details($woid, $suppress_view_link=false)
{
- global $table_style, $wo_types_array;
+ global $wo_types_array;
$myrow = get_work_order($woid);
exit;
}
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
if ($myrow["released"] == true)
$th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
function display_wo_details_quick($woid, $suppress_view_link=false)
{
- global $table_style, $wo_types_array;
+ global $wo_types_array;
$myrow = get_work_order($woid);
exit;
}
- start_table("$table_style width=80%");
+ start_table(TABLESTYLE, "width=80%");
$th = array(_("#"), _("Reference"), _("Type"), _("Manufactured Item"),
_("Into Location"), _("Date"), _("Quantity"));