From e66442aedfc08147d4cd86706e53ebc4198844c6 Mon Sep 17 00:00:00 2001 From: tetragon Date: Thu, 22 Nov 2007 19:44:24 +0000 Subject: Some work towards getting metatrontech's preprocess function to work git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1891 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/Template.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'LedgerSMB') diff --git a/LedgerSMB/Template.pm b/LedgerSMB/Template.pm index aff967a0..0c396ac6 100755 --- a/LedgerSMB/Template.pm +++ b/LedgerSMB/Template.pm @@ -205,8 +205,9 @@ sub _preprocess { if (UNIVERSAL::isa($vars, 'Math::BigFloat')){ $vars = LedgerSMB::format_amount('LedgerSMB', - {amount => $vars. - user => $self->{myconfig} }); + amount => $vars, + user => $self->{myconfig}, + precision => 2); } my $type = ref($vars); -- cgit v1.2.3