From: Joe Date: Sun, 15 Feb 2015 07:49:41 +0000 (+0100) Subject: Wrong number of parameters in document invoice in reporting.inc X-Git-Tag: v2.4.2~19^2~253 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=f73603c014ca134d801e773278052aa0d2220817;p=fa-stable.git Wrong number of parameters in document invoice in reporting.inc --- diff --git a/reporting/includes/reporting.inc b/reporting/includes/reporting.inc index 707bb172..114696c3 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;