$sql .= " AND workorder.loc_code=".db_escape($_POST['StockLocation']);
}
+ if (isset($_POST['OrderId']) && $_POST['OrderId'] != "")
+ {
+ $sql .= " AND workorder.id LIKE ".db_escape('%'.$_POST['OrderId'].'%');
+ }
+
if (isset($_POST['OrderNumber']) && $_POST['OrderNumber'] != "")
{
$sql .= " AND workorder.wo_ref LIKE ".db_escape('%'.$_POST['OrderNumber'].'%');
start_table(TABLESTYLE_NOBORDER);
start_row();
+ref_cells(_("#:"), 'OrderId', '',null, '', true);
ref_cells(_("Reference:"), 'OrderNumber', '',null, '', true);
locations_list_cells(_("at Location:"), 'StockLocation', null, true);
+end_row();
+end_table();
+start_table(TABLESTYLE_NOBORDER);
+start_row();
+
check_cells( _("Only Overdue:"), 'OverdueOnly', null);
if ($outstanding_only==0)