summaryrefslogtreecommitdiff
path: root/LedgerSMB
diff options
context:
space:
mode:
authortetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-22 19:44:24 +0000
committertetragon <tetragon@4979c152-3d1c-0410-bac9-87ea11338e46>2007-11-22 19:44:24 +0000
commite66442aedfc08147d4cd86706e53ebc4198844c6 (patch)
tree7e5e6d50505f4a8d4967d16430132f27f691a821 /LedgerSMB
parent08e1b04d20e4f328638fbde9f7a2ae54a3dca966 (diff)
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
Diffstat (limited to 'LedgerSMB')
-rwxr-xr-xLedgerSMB/Template.pm5
1 files changed, 3 insertions, 2 deletions
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);