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