Changed all numeric constants to the new defined constants. A huge task.
[fa-stable.git] / includes / prefs / sysprefs.inc
index 3c5df2f0652abe348e4be53d9f1f1d6ff1142865..f8e782826386d78afcec9e0fc7a7dbf44a852f9e 100644 (file)
@@ -1,5 +1,14 @@
 <?php
-
+/**********************************************************************
+    Copyright (C) FrontAccounting, LLC.
+       Released under the terms of the GNU General Public License, GPL, 
+       as published by the Free Software Foundation, either version 3 
+       of the License, or (at your option) any later version.
+    This program is distributed in the hope that it will be useful,
+    but WITHOUT ANY WARRANTY; without even the implied warranty of
+    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
+    See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
+***********************************************************************/
 include_once($path_to_root . "/admin/db/company_db.inc");
 
 class sys_prefs 
@@ -39,6 +48,11 @@ class sys_prefs
                return get_company_pref('default_workorder_required');
        }
 
+       function default_delivery_required_by() 
+       {
+               return get_company_pref('default_delivery_required');
+       }
+
        function default_dimension_required_by() 
        {
                return get_company_pref('default_dim_required');