Rerun of implemented Selectable Print Orientation (Portrait, Landscape) for all repor...
[fa-stable.git] / reporting / rep103.php
index cccef402c006e2f2dd9c1f1054657f0b5ffc6307..e7fdd3174421943ece6b9a62ee3bd7be165f536c 100644 (file)
@@ -104,8 +104,8 @@ function print_customer_details_listing()
                include_once($path_to_root . "/reporting/includes/excel_report.inc");
        else
                include_once($path_to_root . "/reporting/includes/pdf_report.inc");
+       
        $orientation = ($orientation ? 'L' : 'P');
-
     $dec = 0;
 
        if ($area == ALL_NUMERIC)
@@ -148,7 +148,7 @@ function print_customer_details_listing()
 
     $rep = new FrontReport(_('Customer Details Listing'), "CustomerDetailsListing", user_pagesize(), 9, $orientation);
     if ($orientation == 'L')
-       $rep->recalculate_cols($cols);
+       recalculate_cols($cols);
 
     $rep->Font();
     $rep->Info($params, $cols, $headers, $aligns);