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);
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
//
defined('ICON_ESCAPE') || define('ICON_ESCAPE', 'escape.png');
defined('ICON_ALLOC') || define('ICON_ALLOC', 'alloc.png');
-?>
\ No newline at end of file