X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Freporting.inc;h=0267687d115a6d1efd81c24ea488655f02969ac1;hb=d6ba8c34ca46258a5ed424dfca43c4c8841ea8c4;hp=707bb172f4923d6ea97fe8b85900767706474ffe;hpb=5e63c6ace55729bbb5ee3b060035a25a4426eb0a;p=fa-stable.git diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 707bb172..0267687d 100644 --- a/reporting/includes/reporting.inc +++ b/reporting/includes/reporting.inc @@ -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; @@ -90,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; @@ -114,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); } //