EOL formatting cleanup.
[fa-stable.git] / reporting / rep701.php
index 8a86114d75fcf8c9372944612ced55aa73e474fa..30e6aa05595ae67b6a58affc4482625bcae367da 100644 (file)
@@ -25,7 +25,7 @@ include_once($path_to_root . "/gl/includes/gl_db.inc");
 
 //----------------------------------------------------------------------------------------------------
 
-function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)\r
+function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
 {
        $printtitle = 0; //Flag for printing type name  
        
@@ -36,15 +36,15 @@ function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
                //Print Type Title if it has atleast one non-zero account       
                if (!$printtitle)
                {
-                       $prefix = '';\r
-                       for ($sp=1; $sp<=$level; $sp++)\r
-                       {\r
-                               $prefix .= '         ';\r
-                       }               \r
+                       $prefix = '';
+                       for ($sp=1; $sp<=$level; $sp++)
+                       {
+                               $prefix .= '         ';
+                       }               
                        $printtitle = 1;
                        $rep->row -= 4;
                        $rep->TextCol(0, 1, $type);
-                       $rep->TextCol(1, 4, $prefix.$typename);\r
+                       $rep->TextCol(1, 4, $prefix.$typename);
                        $rep->row -= 4;
                        $rep->Line($rep->row);
                        $rep->NewLine();                
@@ -57,7 +57,7 @@ function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
                        $balance = get_gl_trans_from_to($begin, ToDay(), $account["account_code"], 0);
                }
                $rep->TextCol(0, 1,     $account['account_code']);
-               $rep->TextCol(1, 2,     $prefix.$account['account_name']);\r
+               $rep->TextCol(1, 2,     $prefix.$account['account_name']);
                $rep->TextCol(2, 3,     $account['account_code2']);
                if ($showbalance == 1)  
                        $rep->AmountCol(3, 4, $balance, $dec);
@@ -79,8 +79,8 @@ function display_type ($type, $typename, &$dec, &$rep, $showbalance, $level)
                        $rep->Line($rep->row);
                        $rep->NewLine();                
                }
-               $nextlevel = $level + 1;\r
-               display_type($accounttype["id"], $accounttype["name"].' ('.$typename.')', $dec, $rep, $showbalance, $nextlevel);\r
+               $nextlevel = $level + 1;
+               display_type($accounttype["id"], $accounttype["name"].' ('.$typename.')', $dec, $rep, $showbalance, $nextlevel);
        }
 }
 
@@ -131,7 +131,7 @@ function print_Chart_of_Accounts()
                $typeresult = get_account_types(false, $class['cid'], -1);
                while ($accounttype=db_fetch($typeresult))
                {
-                       display_type($accounttype["id"], $accounttype["name"], $dec, $rep, $showbalance, 0);\r
+                       display_type($accounttype["id"], $accounttype["name"], $dec, $rep, $showbalance, 0);
                }
                $rep->NewLine();
        }