X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=inventory%2Fincludes%2Fitem_adjustments_ui.inc;h=28f38f0a0723abd90d8c8130922e51e0762b27a1;hb=59233fde6a6ea38e17c1ce5b089cb0b798a98e2d;hp=ce8762f1151b55d9853d2436a753afc688672a9f;hpb=da8311619dd73feae101d246a1957b972e00cbd2;p=fa-stable.git diff --git a/inventory/includes/item_adjustments_ui.inc b/inventory/includes/item_adjustments_ui.inc index ce8762f1..28f38f0a 100644 --- a/inventory/includes/item_adjustments_ui.inc +++ b/inventory/includes/item_adjustments_ui.inc @@ -35,7 +35,7 @@ function display_order_header(&$order) echo ""; // inner table locations_list_row(_("Location:"), 'StockLocation', null); - ref_row(_("Reference:"), 'ref', references::get_next(systypes::inventory_adjustment())); + ref_row(_("Reference:"), 'ref', '', references::get_next(systypes::inventory_adjustment())); echo "
"; // inner table @@ -73,6 +73,8 @@ function display_adjustment_items($title, &$order) start_table("$table_style width=80%"); $th = array(_("Item Code"), _("Item Description"), _("Quantity"), _("Unit"), _("Unit Cost"), _("Total")); + if ( count($order->line_items)) $th[] = ''; + table_header($th); $total = 0; $k = 0; //row colour counter @@ -124,9 +126,9 @@ function adjustment_edit_item_controls(&$order, $stock_id=null) if (!isset($_POST['stock_id'])) $_POST['stock_id'] = $order->line_items[$stock_id]->stock_id; if (!isset($_POST['qty']) OR ($_POST['qty']=="")) - $_POST['qty'] = $order->line_items[$stock_id]->quantity; + $_POST['qty'] = qty_format($order->line_items[$stock_id]->quantity); if (!isset($_POST['std_cost']) OR ($_POST['std_cost']=="")) - $_POST['std_cost'] = $order->line_items[$stock_id]->standard_cost; + $_POST['std_cost'] = price_format($order->line_items[$stock_id]->standard_cost); $_POST['units'] = $order->line_items[$stock_id]->units; @@ -142,15 +144,15 @@ function adjustment_edit_item_controls(&$order, $stock_id=null) $item_info = get_item_edit_info($_POST['stock_id']); - $_POST['qty'] = 0; - $_POST['std_cost'] = $item_info["standard_cost"]; + $_POST['qty'] = qty_format(0); + $_POST['std_cost'] = price_format($item_info["standard_cost"]); $_POST['units'] = $item_info["units"]; } - text_cells(null, 'qty', $_POST['qty'], 13, 15); + qty_cells(null, 'qty', $_POST['qty']); label_cell($_POST['units']); - text_cells(null, 'std_cost', $_POST['std_cost'], 15, 14); + amount_cells(null, 'std_cost', $_POST['std_cost']); label_cell(" "); if (isset($_GET['Edit']))