Fixed Assets fixes, bugs and improvements.
[fa-stable.git] / inventory / manage / items.php
index c69c485498115cb39bd331a30a533c57d6436cd1..21e2ab7a4283405104bffe4559e65ab31dcd0a76 100644 (file)
@@ -21,7 +21,7 @@ if (user_use_date_picker())
 
 if (isset($_GET['FixedAsset'])) {
   $page_security = 'SA_ASSET';
-  $_SESSION['page_title'] = _($help_context = "FA Items");
+  $_SESSION['page_title'] = _($help_context = "Fixed Assets");
   $_POST['mb_flag'] = 'F';
   $_POST['fixed_asset']  = 1;
 }
@@ -342,7 +342,7 @@ function item_settings(&$stock_id, $new_item)
                        $_POST['depreciation_date'] = sql2date($myrow['depreciation_date']);
                        $_POST['fa_class_id'] = $myrow['fa_class_id'];
                        $_POST['material_cost'] = $myrow['material_cost'];
-                       $_POST['last_cost'] = $myrow['last_cost'];
+                       $_POST['purchase_cost'] = $myrow['purchase_cost'];
                        
                        $_POST['sales_account'] =  $myrow['sales_account'];
                        $_POST['inventory_account'] = $myrow['inventory_account'];
@@ -521,9 +521,9 @@ function item_settings(&$stock_id, $new_item)
                table_section_title(_("Values"));
                if (!$new_item) {
                        hidden('material_cost');
-                       hidden('last_cost');
-                       label_row(_("Amount").":", price_format($_POST['last_cost']), "", "align='right'");
-                       label_row(_("Depreciations").":", price_format($_POST['last_cost'] - $_POST['material_cost']), "", "align='right'");
+                       hidden('purchase_cost');
+                       label_row(_("Initial Value").":", price_format($_POST['purchase_cost']), "", "align='right'");
+                       label_row(_("Depreciations").":", price_format($_POST['purchase_cost'] - $_POST['material_cost']), "", "align='right'");
                        label_row(_("Current Value").':', price_format($_POST['material_cost']), "", "align='right'");
                }
        }