Reorganized access control structures
[fa-stable.git] / inventory / view / view_adjustment.php
index f5d9cbd692c4fcb467ab2d64907fcd3448b7340c..4aad5a4825665fcda8def791567f050df3a43b95 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 $page_security = 1;
 $path_to_root="../..";
 
@@ -18,16 +27,17 @@ if (isset($_GET["trans_no"]))
 
 display_heading(systypes::name(systypes::inventory_adjustment()) . " #$trans_no");
 
+br(1);
 $adjustment_items = get_stock_adjustment_items($trans_no);
 $k = 0;
 $header_shown = false;
-while ($adjustment = db_fetch($adjustment_items)) 
+while ($adjustment = db_fetch($adjustment_items))
 {
 
-       if (!$header_shown) 
+       if (!$header_shown)
        {
                $adjustment_type = get_movement_type($adjustment['person_id']) ;
-               
+
                start_table("$table_style2 width=90%");
                start_row();
                label_cells(_("At Location"), $adjustment['location_name'], "class='tableheader2'");
@@ -45,14 +55,14 @@ while ($adjustment = db_fetch($adjustment_items))
 
        $th = array(_("Item"), _("Description"), _("Quantity"),
                _("Units"), _("Unit Cost"));
-       table_header($th);      
+       table_header($th);
        }
 
     alt_table_row_color($k);
 
     label_cell($adjustment['stock_id']);
     label_cell($adjustment['description']);
-    qty_cell($adjustment['qty']);
+    qty_cell($adjustment['qty'], false, get_qty_dec($adjustment['stock_id']));
     label_cell($adjustment['units']);
     amount_cell($adjustment['standard_cost']);
     end_row();