summaryrefslogtreecommitdiff
path: root/LedgerSMB.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB.pm')
-rwxr-xr-xLedgerSMB.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/LedgerSMB.pm b/LedgerSMB.pm
index 61293a2b..08bf1a38 100755
--- a/LedgerSMB.pm
+++ b/LedgerSMB.pm
@@ -380,6 +380,9 @@ sub format_amount {
if (!defined $format){
$format = $myconfig->{numberformat}
}
+ if (!defined $args{precision} and defined $args{money}){
+ $places = $LedgerSMB::Sysconfig::decimal_places;
+ }
my $negative;
if ($amount) {