Better check for fixed assets.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 3 Feb 2018 21:43:55 +0000 (22:43 +0100)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Sat, 3 Feb 2018 21:43:55 +0000 (22:43 +0100)
fixed_assets/process_depreciation.php

index 14accf61a88add56ea97cc6693ace793f09027ca..67abc10fba5b97367c14fd6e4a0e5344f5e1f55a 100644 (file)
@@ -132,8 +132,8 @@ function show_gl_rows() {
 function show_gl_controls() {
   global $Ajax;
 
-  check_db_has_stock_items('There are no active fixed asset defined in the system.');
-
+  check_db_has_depreciable_fixed_assets('There are no active fixed asset defined in the system.');
   start_table(TABLESTYLE_NOBORDER);
   start_row();
   stock_depreciable_fa_list_cells(_("Select an item:"), 'stock_id', null,