X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fitem_adjustments_ui.inc;h=eb2f03d26da770968c5253d27758e7c6141fdedb;hb=f821f29324e963437132a3f6fa7c57fcef5c5f0e;hp=b1fcef825209e4f0c2cf538f4388555effe83978;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/inventory/includes/item_adjustments_ui.inc b/inventory/includes/item_adjustments_ui.inc index b1fcef82..eb2f03d2 100644 --- a/inventory/includes/item_adjustments_ui.inc +++ b/inventory/includes/item_adjustments_ui.inc @@ -28,24 +28,14 @@ function display_order_header(&$order) { global $Refs; - start_outer_table(TABLESTYLE2, "width=70%"); // outer table + start_outer_table(TABLESTYLE2, "width='70%'"); // outer table 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 } @@ -58,7 +48,7 @@ function display_adjustment_items($title, &$order) display_heading($title); div_start('items_table'); - start_table(TABLESTYLE, "width=80%"); + start_table(TABLESTYLE, "width='80%'"); $th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), _("Unit Cost"), _("Total"), ""); if ( count($order->line_items)) $th[] = ''; @@ -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) {