Fixed Email Receipt to customer.
[fa-stable.git] / reporting / includes / reporting.inc
index 114696c38645fc1e41b3422447227905002db1ed..6062ddca554ef024ca0ead27085e815041a3e31a 100644 (file)
@@ -92,8 +92,9 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no,
                                'PARAM_0' => $doc_no, 
                                'PARAM_1' => $doc_no, 
                                'PARAM_2' => '', 
-                               'PARAM_3' => '',
-                               'PARAM_4' => $def_orientation);
+                               'PARAM_3' => $email,
+                               'PARAM_4' => '',
+                               'PARAM_5' => $def_orientation);
                        break;
                case ST_SUPPAYMENT :
                        $rep = 210;
@@ -116,9 +117,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);
 }
 //