X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=includes%2Ftypes.inc;h=dc2145eb9012051d5cafa0499ccb0bb05ae03f34;hb=3b431d909abc53e4a4d712cbafa39ca556409d0e;hp=65805a901787bbeb8fbf5ddc9444a74629c212b8;hpb=5b8f4c4b4aa8cf996bc071f116bfce1273200fa2;p=fa-stable.git diff --git a/includes/types.inc b/includes/types.inc index 65805a90..dc2145eb 100644 --- a/includes/types.inc +++ b/includes/types.inc @@ -186,8 +186,9 @@ define('CL_EXPENSE', 6); function get_class_type_convert($ctype) { - global $use_oldstyle_convert; - if (isset($use_oldstyle_convert) && $use_oldstyle_convert == 1) + global $SysPrefs; + + if (isset($SysPrefs->use_oldstyle_convert) && $SysPrefs->use_oldstyle_convert == 1) return (($ctype >= CL_INCOME || $ctype == CL_NONE) ? -1 : 1); else return ((($ctype >= CL_LIABILITIES && $ctype <= CL_INCOME) || $ctype == CL_NONE) ? -1 : 1); @@ -242,6 +243,9 @@ define('BO_SUPPLIER', 3); include_once($path_to_root . '/includes/sysnames.inc'); +// tax register type +define('TR_OUTPUT', 0); // sales +define('TR_INPUT', 1); // purchase //--------------------------------------------------------------------------------- // Constants optionally redefined locally //