include_once($path_to_root . "/inventory/includes/inventory_db.inc");
+if (list_updated('stock_id'))
+ $Ajax->activate('status_tbl');
//----------------------------------------------------------------------------------------------------
check_db_has_stock_items(_("There are no items defined in the system."));
$loc_details = get_loc_details($_POST['stock_id']);
+div_start('status_tbl');
start_table($table_style);
if ($kitset_or_service == true)
_("Demand"), _("Available"), _("On Order"));
}
table_header($th);
+$dec = get_qty_dec($_POST['stock_id']);
$j = 1;
$k = 0; //row colour counter
}
label_cell($myrow["location_name"]);
- qty_cell($qoh);
- qty_cell($myrow["reorder_level"]);
- qty_cell($demand_qty);
- qty_cell($qoh - $demand_qty);
- qty_cell($qoo);
+ qty_cell($qoh, false, $dec);
+ qty_cell($myrow["reorder_level"], false, $dec);
+ qty_cell($demand_qty, false, $dec);
+ qty_cell($qoh - $demand_qty, false, $dec);
+ qty_cell($qoo, false, $dec);
end_row();
}
{
/* It must be a service or kitset part */
label_cell($myrow["location_name"]);
- qty_cell($demand_qty);
+ qty_cell($demand_qty, false, $dec);
end_row();
}
}
end_table();
-
+div_end();
end_form();
end_page();