- my $self = shift;
- my %opt = @_;
- my $conf = new FS::Conf;
- my $money_char = $conf->config('money_char') || '$';
- my $setup = $opt{cust_pkg} ? $self->base_setup( $opt{cust_pkg} )
- : ($self->option('setup_fee') || 0);
- my $recur = $opt{cust_pkg} ? $self->base_recur( $opt{cust_pkg} )
- : ($self->option('recur_fee', 1) || 0);
- $recur += $self->usageprice_recur( $opt{cust_pkg} ) if $opt{cust_pkg};
- my $str = '';
- $str = $money_char . $setup . ($recur ? ' setup' : ' one-time') if $setup;
- $str .= ', ' if ($setup && $recur);
- $str .= $money_char. $recur. '/'. $self->freq_pretty if $recur;
- $str;
+ my $self = shift;
+ my %opt = @_;
+
+ my $setup = $opt{cust_pkg} ? $self->base_setup( $opt{cust_pkg} )
+ : ($self->option('setup_fee') || 0);
+ my $recur = $opt{cust_pkg} ? $self->base_recur( $opt{cust_pkg} )
+ : ($self->option('recur_fee', 1) || 0);
+ $recur += $self->usageprice_recur( $opt{cust_pkg} ) if $opt{cust_pkg};
+
+ my $str = '';
+ $str = $money_char . $setup . ($recur ? ' setup' : ' one-time') if $setup;
+ $str .= ', ' if ($setup && $recur);
+ $str .= $money_char. $recur. '/'. $self->freq_pretty if $recur;
+ $str;