A bug in Customer Allocations fixed.
[fa-stable.git] / reporting / includes / reporting.inc
index 707bb172f4923d6ea97fe8b85900767706474ffe..80632db211e2b2645413846bbad7ec37ef0d746d 100644 (file)
@@ -70,7 +70,9 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_3' => $email, 
                                'PARAM_4' => '',
                                'PARAM_5' => '', 
-                               'PARAM_6' => $def_orientation);
+                               'PARAM_6' => $rep == 107 ? '' : $def_orientation);
+                       if ($rep == 107)
+                               $ar['PARAM_7'] = $def_orientation;
                        break;
                case ST_PURCHORDER :
                        $rep = 209;
@@ -114,9 +116,10 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_3' => '', 
                                'PARAM_4' => $def_orientation);
                        break;
-//             default: $ar = array();
+               default:
+                       return null;
        }
-       
+
        return print_link($link_text, $rep, $ar, "", $icon, $class, $id);
 }
 //