X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fdata_checks.inc;h=cfb87a61e5c4d9c89c396431eab442b359dfa018;hb=7e830126b96477e969fe3b48d9fc0e78f6c1fe00;hp=a37c91d4a6a711021deef3be48bc96f7f030fe90;hpb=fedd801edd1244b499b7f052c6b4298137563a57;p=fa-stable.git diff --git a/includes/data_checks.inc b/includes/data_checks.inc index a37c91d4..cfb87a61 100644 --- a/includes/data_checks.inc +++ b/includes/data_checks.inc @@ -499,4 +499,14 @@ function check_is_closed($type, $type_no, $msg=null) } } -?> \ No newline at end of file +function check_deferred_income_act($msg) +{ + global $path_to_root; + + if (!get_company_pref('deferred_income_act')) + { + display_error($msg, true); + end_page(); + exit; + } +}