X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Frep707.php;h=e19c29fee14db86c90259da0cd401424eea9bb68;hb=e29ab37ef51f39c200c3772e07eeceef0ce39214;hp=7ce02b2c8c8594db6c8f2ed5b07782c549ebbd49;hpb=a8d2bad4b2fbda5eaa5bcbf96733c2979b8083c7;p=fa-stable.git diff --git a/reporting/rep707.php b/reporting/rep707.php index 7ce02b2c..e19c29fe 100644 --- a/reporting/rep707.php +++ b/reporting/rep707.php @@ -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;