X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fdiscount.pm;h=361e0b4b2e63a6d11c26f4a33523a58f2d47d93c;hb=292ef074d01bb925e9a466ed771bf2ac418bb44f;hp=0561f9ca0802fc9cf7f4f88eeecbcf65006c47b0;hpb=fa0223015fe6c03491b1d0d43524e03ac5fdb899;p=freeside.git diff --git a/FS/FS/discount.pm b/FS/FS/discount.pm index 0561f9ca0..361e0b4b2 100644 --- 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;