Removed obsolete stock_move.person_id field and related handling.
[fa-stable.git] / inventory / includes / item_adjustments_ui.inc
index a390634a4aa009a9c20ac4bcc3b2aa1e53056d7e..eb2f03d26da770968c5253d27758e7c6141fdedb 100644 (file)
@@ -32,20 +32,10 @@ function display_order_header(&$order)
        table_section(1);
 
        locations_list_row(_("Location:"), 'StockLocation', null);
-       ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_INVADJUST));
-
-       table_section(2, "33%");
-
     date_row(_("Date:"), 'AdjDate', '', true);
 
-       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"));
+       table_section(2, "50%");
+       ref_row(_("Reference:"), 'ref', '', $Refs->get_next(ST_INVADJUST));
 
        end_outer_table(1); // outer table
 }
@@ -67,7 +57,7 @@ function display_adjustment_items($title, &$order)
        $total = 0;
        $k = 0;  //row colour counter
 
-       $low_stock = $order->check_qoh($_POST['StockLocation'], $_POST['AdjDate'], !$_POST['Increase']);
+       $low_stock = $order->check_qoh($_POST['StockLocation'], $_POST['AdjDate']);
        $id = find_submit('Edit');
        foreach ($order->line_items as $line_no=>$stock_item)
        {
@@ -192,4 +182,3 @@ function adjustment_options_controls()
 
 //---------------------------------------------------------------------------------
 
-?>
\ No newline at end of file