projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fa298c5
)
give discounts a default name, #31273
author
Mark Wells
<mark@freeside.biz>
Wed, 28 Jan 2015 07:27:54 +0000
(23:27 -0800)
committer
Mark Wells
<mark@freeside.biz>
Wed, 28 Jan 2015 07:27:54 +0000
(23:27 -0800)
FS/FS/discount.pm
patch
|
blob
|
history
diff --git
a/FS/FS/discount.pm
b/FS/FS/discount.pm
index
0561f9c
..
361e0b4
100644
(file)
--- a/
FS/FS/discount.pm
+++ b/
FS/FS/discount.pm
@@
-173,7
+173,12
@@
sub description_short {
my $conf = new FS::Conf;
my $money_char = $conf->config('money_char') || '$';
- my $desc = $self->name ? $self->name.': ' : '';
+ my $desc;
+ if ( $self->name ) {
+ $desc = $self->name . ': ';
+ } else {
+ $desc = 'Discount of ';
+ }
$desc .= $money_char. sprintf('%.2f/month', $self->amount)
if $self->amount > 0;