New variable in config.php, $use_oldstyle_convert, if set to 1, same convert as in...
[fa-stable.git] / reporting / rep707.php
index 7ce02b2c8c8594db6c8f2ed5b07782c549ebbd49..e19c29fee14db86c90259da0cd401424eea9bb68 100644 (file)
@@ -251,8 +251,8 @@ function print_profit_and_loss_statement()
                }
                $classname = $account['AccountClassName'];
                $ctype = $account['ClassType'];
-               $convert = (($ctype == CL_INCOME || $ctype == 0) ? -1 : 1); // backwards compatibility
-
+               $convert = get_class_type_convert($ctype); 
+               
                if ($account['account_code'] != null)
                {
                        //$per_balance *= -1;