X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freporting.inc;h=0267687d115a6d1efd81c24ea488655f02969ac1;hb=f478231ee53d429047979736dafda1db9e6fcd72;hp=114696c38645fc1e41b3422447227905002db1ed;hpb=f73603c014ca134d801e773278052aa0d2220817;p=fa-stable.git diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 114696c3..0267687d 100644 --- a/reporting/includes/reporting.inc +++ b/reporting/includes/reporting.inc @@ -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,20 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no, 'PARAM_3' => '', 'PARAM_4' => $def_orientation); break; -// default: $ar = array(); + case ST_DIMENSION : + $rep = 501; + // from, to, email, comments, orientation + $ar = array( + 'PARAM_0' => $doc_no, + 'PARAM_1' => $doc_no, + 'PARAM_2' => 1, + 'PARAM_3' => '', + 'PARAM_4' => $def_orientation); + break; + default: + return null; } - + return print_link($link_text, $rep, $ar, "", $icon, $class, $id); } //