Improved journal trans: added currency support, tax and source document date. Allowed...
[fa-stable.git] / reporting / includes / reporting.inc
index 707bb172f4923d6ea97fe8b85900767706474ffe..68c443ea45ba24b9cfe88d7fec3abf5842030aa7 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,11 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_3' => '', 
                                'PARAM_4' => $def_orientation);
                        break;
+               default:
+                       return null;
 //             default: $ar = array();
        }
-       
+
        return print_link($link_text, $rep, $ar, "", $icon, $class, $id);
 }
 //