diff options
author | Mark Wells <mark@freeside.biz> | 2014-12-08 14:34:54 -0800 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2014-12-08 14:34:54 -0800 |
commit | 9e7de7d0c00d79c9616c5584213a25e2ca41b5b3 (patch) | |
tree | c6b25afcc7f971d97e54cd2615426e5554a379f2 /FS/FS/discount.pm | |
parent | 61e4d4c2bbb146090aa3acd1f31fd9f109d17425 (diff) |
show discounts on invoices as negative line items, #31273
Diffstat (limited to 'FS/FS/discount.pm')
-rw-r--r-- | FS/FS/discount.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/FS/FS/discount.pm b/FS/FS/discount.pm index 43ad490..0561f9c 100644 --- a/FS/FS/discount.pm +++ b/FS/FS/discount.pm @@ -174,12 +174,12 @@ sub description_short { my $money_char = $conf->config('money_char') || '$'; my $desc = $self->name ? $self->name.': ' : ''; - $desc .= $money_char. sprintf('%.2f/month ', $self->amount) + $desc .= $money_char. sprintf('%.2f/month', $self->amount) if $self->amount > 0; ( my $percent = $self->percent ) =~ s/\.0+$//; $percent =~ s/(\.\d*[1-9])0+$/$1/; - $desc .= $percent. '% ' + $desc .= $percent. '%' if $self->percent > 0; $desc; |