Improved layout.
[fa-stable.git] / inventory / view / view_transfer.php
index 66f5a7a44d4209f636686631e16673d8994d8244..4d6a44736dc1c3ce200f8d913a45cb119385beaf 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="../..";
 
@@ -48,16 +57,16 @@ start_table("$table_style width=90%");
 $th = array(_("Item"), _("Description"), _("Quantity"), _("Units"));
 table_header($th);
 $transfer_items = get_stock_moves(systypes::location_transfer(), $trans_no);
-
-while ($item = db_fetch($transfer_items))      
+$k = 0;
+while ($item = db_fetch($transfer_items))
 {
-       if ($item['loc_code'] == $to_trans['loc_code']) 
+       if ($item['loc_code'] == $to_trans['loc_code'])
        {
         alt_table_row_color($k);
 
         label_cell($item['stock_id']);
         label_cell($item['description']);
-        qty_cell($item['qty']);
+        qty_cell($item['qty'], false, get_qty_dec($item['stock_id']));
         label_cell($item['units']);
         end_row();;
        }