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