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)
return number_format2($amount, $row['decimals']);
}
-$sql = get_sql_for_work_orders($outstanding_only, get_post('SelectedStockItem'), get_post('StockLocation'), get_post('OrderNumber'),
- check_value('OverdueOnly'));
+$sql = get_sql_for_work_orders($outstanding_only, get_post('SelectedStockItem'), get_post('StockLocation'),
+ get_post('OrderId'), get_post('OrderNumber'), check_value('OverdueOnly'));
$cols = array(
_("#") => array('fun'=>'view_link', 'ord'=>''),