From f73603c014ca134d801e773278052aa0d2220817 Mon Sep 17 00:00:00 2001 From: Joe Date: Sun, 15 Feb 2015 08:49:41 +0100 Subject: [PATCH] Wrong number of parameters in document invoice in reporting.inc --- reporting/includes/reporting.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- 2.30.2