X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=reporting%2Fincludes%2Freporting.inc;h=764eb469378c28d19d76b3b54ed2dd4b5d5b675b;hb=97ce7657f26ca3cc7f7d705a8ca019bf06b31600;hp=68c443ea45ba24b9cfe88d7fec3abf5842030aa7;hpb=3b431d909abc53e4a4d712cbafa39ca556409d0e;p=fa-stable.git diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 68c443ea..764eb469 100644 --- a/reporting/includes/reporting.inc +++ b/reporting/includes/reporting.inc @@ -14,7 +14,7 @@ // or display_note(print_document_link($order_no, _("Print this order"))); // You only need full parameter list for invoices/credit notes -function print_document_link($doc_no, $link_text, $link=true, $type_no, +function print_document_link($doc_no, $link_text, $link, $type_no, $icon=false, $class='printlink', $id='', $email=0, $extra=0) { global $path_to_root; @@ -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,18 @@ function print_document_link($doc_no, $link_text, $link=true, $type_no, 'PARAM_3' => '', 'PARAM_4' => $def_orientation); break; + 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; -// default: $ar = array(); } return print_link($link_text, $rep, $ar, "", $icon, $class, $id);