X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Fdata_checks.inc;h=cfb87a61e5c4d9c89c396431eab442b359dfa018;hb=7e830126b96477e969fe3b48d9fc0e78f6c1fe00;hp=543a7d5936edb3767cdef001198cfd60fe343a95;hpb=78fe8cb8f56510ba3f6a1720b207a33b5828e071;p=fa-stable.git diff --git a/includes/data_checks.inc b/includes/data_checks.inc index 543a7d59..cfb87a61 100644 --- a/includes/data_checks.inc +++ b/includes/data_checks.inc @@ -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; + } +}