summaryrefslogtreecommitdiff
path: root/FS/FS/Template_Mixin.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2016-04-02 16:24:58 -0700
committerIvan Kohler <ivan@freeside.biz>2016-04-02 16:24:58 -0700
commit137d53fa8148996a844dff0f179f8c06afe9e592 (patch)
tree32af2bc350c1ea40657b1357cc82e4fae369d9bd /FS/FS/Template_Mixin.pm
parent4178a13c1fc66dc732b6236a32df132316466856 (diff)
invoice mode in PDF spools, RT#39587
Diffstat (limited to 'FS/FS/Template_Mixin.pm')
-rw-r--r--FS/FS/Template_Mixin.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 8dff768d9..031c1f25c 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -147,6 +147,10 @@ sub print_latex {
$template ||= $self->_agent_template
if $self->can('_agent_template');
+ #the new way
+ $self->set('mode', $params{mode})
+ if $params{mode};
+
my $pkey = $self->primary_key;
my $tmp_template = $self->table. '.'. $self->$pkey. '.XXXXXXXX';