diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/arapprn.pl | 8 | ||||
-rw-r--r-- | bin/cp.pl | 4 | ||||
-rw-r--r-- | bin/io.pl | 3 | ||||
-rw-r--r-- | bin/pos.pl | 3 | ||||
-rw-r--r-- | bin/rp.pl | 11 |
5 files changed, 20 insertions, 9 deletions
diff --git a/bin/arapprn.pl b/bin/arapprn.pl index 223518d0..0d256c28 100644 --- a/bin/arapprn.pl +++ b/bin/arapprn.pl @@ -288,7 +288,9 @@ sub print_check { if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' ); + LedgerSMB::Template->new( + user => \%myconfig, template => $form->{'formname'}, + format => 'HTML' ); try { $template->render($form); $form->header; @@ -561,7 +563,9 @@ sub print_transaction { if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' ); + LedgerSMB::Template->new( + user => \%myconfig, template => $form->{'formname'}, + format => 'HTML' ); try { $template->render($form); $form->header; @@ -49,6 +49,7 @@ use LedgerSMB::CP; use LedgerSMB::OP; use LedgerSMB::IS; use LedgerSMB::IR; +use LedgerSMB::Template; require "bin/arap.pl"; @@ -1475,7 +1476,8 @@ sub print_form { if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' ); + LedgerSMB::Template->new( user => \%myconfig, + template => $form->{'formname'}, format => 'HTML' ); try { $template->render($form); $form->header; @@ -1770,7 +1770,8 @@ sub print_form { if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' ); + LedgerSMB::Template->new( user => \%myconfig, + template => $form->{'formname'}, format => 'HTML' ); try { $template->render($form); $form->header; @@ -1010,7 +1010,8 @@ sub print_form { if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' ); + LedgerSMB::Template->new(user => \%myconfig, + template => $form->{'formname'}, format => 'HTML' ); try { $template->render($form); $form->header; @@ -1083,7 +1083,8 @@ sub generate_income_statement { if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' ); + LedgerSMB::Template->new( user => \%myconfig, + template => $form->{'formname'}, format => 'HTML' ); try { $template->render($form); $form->header; @@ -1139,7 +1140,8 @@ sub generate_balance_sheet { if ( ( $form->{'media'} eq 'screen' ) and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, 'HTML' ); + LedgerSMB::Template->new( user => \%myconfig, + template => $form->{'formname'}, format => 'HTML' ); try { $template->render($form); $form->header; @@ -2293,8 +2295,9 @@ sub print_form { and ( $form->{'format'} eq 'html' ) ) { my $template = - LedgerSMB::Template->new( \%myconfig, $form->{'formname'}, - 'HTML' ); + LedgerSMB::Template->new( user => \%myconfig, + template => $form->{'formname'}, + format => 'HTML' ); try { $template->render($form); $form->header; |