6 include($path_to_root . "/includes/session.inc");
8 page(_("View Inventory Adjustment"), true);
10 include_once($path_to_root . "/includes/date_functions.inc");
11 include_once($path_to_root . "/includes/ui.inc");
12 include_once($path_to_root . "/inventory/includes/inventory_db.inc");
14 if (isset($_GET["trans_no"]))
16 $trans_no = $_GET["trans_no"];
19 display_heading(systypes::name(systypes::inventory_adjustment()) . " #$trans_no");
21 $adjustment_items = get_stock_adjustment_items($trans_no);
23 $header_shown = false;
24 while ($adjustment = db_fetch($adjustment_items))
29 $adjustment_type = get_movement_type($adjustment['person_id']) ;
31 start_table("$table_style2 width=90%");
33 label_cells(_("At Location"), $adjustment['location_name'], "class='tableheader2'");
34 label_cells(_("Reference"), $adjustment['reference'], "class='tableheader2'", "colspan=6");
35 label_cells(_("Date"), sql2date($adjustment['tran_date']), "class='tableheader2'");
36 label_cells(_("Adjustment Type"), $adjustment_type['name'], "class='tableheader2'");
38 comments_display_row(systypes::inventory_adjustment(), $trans_no);
44 start_table("$table_style width=90%");
46 $th = array(_("Item"), _("Description"), _("Quantity"),
47 _("Units"), _("Unit Cost"));
51 alt_table_row_color($k);
53 label_cell($adjustment['stock_id']);
54 label_cell($adjustment['description']);
55 qty_cell($adjustment['qty']);
56 label_cell($adjustment['units']);
57 amount_cell($adjustment['standard_cost']);
63 is_voided_display(systypes::inventory_adjustment(), $trans_no, _("This adjustment has been voided."));