From 5deb0455ef5b5a2ffe8cbe26a75cdd07e8788ded Mon Sep 17 00:00:00 2001 From: tetragon Date: Fri, 1 Jun 2007 14:13:33 +0000 Subject: Templating updates for output handling git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1248 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/arapprn.pl | 4 ++-- bin/cp.pl | 2 +- bin/io.pl | 2 +- bin/jc.pl | 2 +- bin/pos.pl | 2 +- bin/rp.pl | 6 +++--- 6 files changed, 9 insertions(+), 9 deletions(-) (limited to 'bin') diff --git a/bin/arapprn.pl b/bin/arapprn.pl index 845d829a..b1885e66 100644 --- a/bin/arapprn.pl +++ b/bin/arapprn.pl @@ -290,7 +290,7 @@ sub print_check { format => uc $form->{'format'} ); try { $template->render($form); - $template->output($form->{'media'}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; @@ -558,7 +558,7 @@ sub print_transaction { format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; diff --git a/bin/cp.pl b/bin/cp.pl index d9316fea..15552a37 100644 --- a/bin/cp.pl +++ b/bin/cp.pl @@ -1477,7 +1477,7 @@ sub print_form { template => $form->{'formname'}, format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; diff --git a/bin/io.pl b/bin/io.pl index 6b21c95a..13b646ef 100644 --- a/bin/io.pl +++ b/bin/io.pl @@ -1771,7 +1771,7 @@ sub print_form { template => $form->{'formname'}, format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; diff --git a/bin/jc.pl b/bin/jc.pl index 9f6c0015..fe6900a4 100644 --- a/bin/jc.pl +++ b/bin/jc.pl @@ -2209,7 +2209,7 @@ qq|$form->{"${item}hour"}:$form->{"${item}min"}:$form->{"${item}sec"}|; template => $form->{'formname'}, format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; diff --git a/bin/pos.pl b/bin/pos.pl index 3071bf33..cb37f7d3 100644 --- a/bin/pos.pl +++ b/bin/pos.pl @@ -1005,7 +1005,7 @@ sub print_form { template => $form->{'formname'}, format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; diff --git a/bin/rp.pl b/bin/rp.pl index 5886c2da..242f69de 100644 --- a/bin/rp.pl +++ b/bin/rp.pl @@ -1084,7 +1084,7 @@ sub generate_income_statement { template => $form->{'formname'}, format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; @@ -1134,7 +1134,7 @@ sub generate_balance_sheet { template => $form->{'formname'}, format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; @@ -2282,7 +2282,7 @@ sub print_form { format => uc $form->{format} ); try { $template->render($form); - $template->output($form->{media}); + $template->output(%{$form}); } catch Error::Simple with { my $E = shift; -- cgit v1.2.3