Wrong number of parameters in document invoice in reporting.inc
[fa-stable.git] / reporting / includes / reporting.inc
index 707bb172f4923d6ea97fe8b85900767706474ffe..114696c38645fc1e41b3422447227905002db1ed 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;