projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Redesign of the 2 core COAs. They are similar now except the demo data in the demo...
[fa-stable.git]
/
reporting
/
includes
/
reporting.inc
diff --git
a/reporting/includes/reporting.inc
b/reporting/includes/reporting.inc
index caffb6888a22062987b309dab734dbaebdb24143..80632db211e2b2645413846bbad7ec37ef0d746d 100644
(file)
--- 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_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;
break;
case ST_PURCHORDER :
$rep = 209;
@@
-114,9
+116,10
@@
function print_document_link($doc_no, $link_text, $link=true, $type_no,
'PARAM_3' => '',
'PARAM_4' => $def_orientation);
break;
'PARAM_3' => '',
'PARAM_4' => $def_orientation);
break;
-// default: $ar = array();
+ default:
+ return null;
}
}
-
+
return print_link($link_text, $rep, $ar, "", $icon, $class, $id);
}
//
return print_link($link_text, $rep, $ar, "", $icon, $class, $id);
}
//
@@
-125,7
+128,7
@@
function print_document_link($doc_no, $link_text, $link=true, $type_no,
function print_link($link_text, $rep, $pars = array(), $dir = '',
$icon=false, $class='printlink', $id='')
{
function print_link($link_text, $rep, $pars = array(), $dir = '',
$icon=false, $class='printlink', $id='')
{
- global $path_to_root, $
pdf_debug
;
+ global $path_to_root, $
SysPrefs
;
$url = $dir == '' ? $path_to_root.'/reporting/prn_redirect.php?' : $dir;
$url = $dir == '' ? $path_to_root.'/reporting/prn_redirect.php?' : $dir;
@@
-137,7
+140,7
@@
function print_link($link_text, $rep, $pars = array(), $dir = '',
$url .= implode ('&', $pars);
if ($class != '')
$url .= implode ('&', $pars);
if ($class != '')
- $class = $pdf_debug ? '' : " class='$class'";
+ $class = $
SysPrefs->
pdf_debug ? '' : " class='$class'";
if ($id != '')
$id = " id='$id'";
$pars = access_string($link_text);
if ($id != '')
$id = " id='$id'";
$pars = access_string($link_text);