start_table(TABLESTYLE2);
br();
-ref_row(_("Reference:"), 'ref', '', $Refs->get_next(29, null, get_post('date_')), false, ST_MANUISSUE);
+ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_MANURECEIVE, null, get_post('date_')), false, ST_MANURECEIVE);
date_row(_("Date:"), 'date_');
if (!isset($_POST['ProductionType']))