projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
0003962: in Inventory Purchasing Report the result is wrongly showing.
[fa-stable.git]
/
includes
/
data_checks.inc
diff --git
a/includes/data_checks.inc
b/includes/data_checks.inc
index 7cc5586d4652e6c370109a3c668aebad75a47fee..54f9dbb5683fb2270079605c6ddb4d73c12626eb 100644
(file)
--- a/
includes/data_checks.inc
+++ b/
includes/data_checks.inc
@@
-153,8
+153,8
@@
function check_db_has_sales_people($msg)
{
display_error($msg, true);
end_page();
{
display_error($msg, true);
end_page();
- exit;
- }
+ exit;
+ }
}
function db_has_sales_areas()
}
function db_has_sales_areas()
@@
-674,3
+674,14
@@
function check_reference($reference, $trans_type, $trans_no=0, $context=null, $l
}
return true;
}
}
return true;
}
+
+function check_sys_pref($name, $msg, $empty = '')
+{
+ global $path_to_root;
+
+ if (get_company_pref($name) === $empty)
+ {
+ display_error(menu_link("/admin/gl_setup.php", $msg), true);
+ display_footer_exit();
+ }
+}