0000593,0001093: Prepayments made against orders implemented.
[fa-stable.git] / includes / data_checks.inc
index 543a7d5936edb3767cdef001198cfd60fe343a95..cfb87a61e5c4d9c89c396431eab442b359dfa018 100644 (file)
@@ -499,3 +499,14 @@ function check_is_closed($type, $type_no, $msg=null)
     }
 }
 
+function check_deferred_income_act($msg)
+{
+       global $path_to_root;
+
+    if (!get_company_pref('deferred_income_act')) 
+    {
+       display_error($msg, true);
+       end_page();
+       exit;
+    }
+}