- date_row(_("Date:"), 'AdjDate');
-
- table_section(3, "33%");
-
- movement_types_list_row(_("Detail:"), 'type', null);
-
- if (!isset($_POST['Increase']))
- $_POST['Increase'] = 1;
- yesno_list_row(_("Type:"), 'Increase', $_POST['Increase'],
- _("Positive Adjustment"), _("Negative Adjustment"));
+ ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_INVADJUST, null, array('location'=>get_post('StockLocation'), 'date'=>get_post('AdjDate'))),
+ false, ST_INVADJUST);