X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fpart_pkg%2Fflat.pm;h=f5a2100b9f9b1c55996d0b7efc90009f001c0830;hb=5fa2ec5b24f52ddb14e569970ccb8a24cadbc6b1;hp=60a2346ace4a02737486c9e31ec37872b7f6e337;hpb=5d1c873c38990030fc082294ff728518460ccead;p=freeside.git diff --git a/FS/FS/part_pkg/flat.pm b/FS/FS/part_pkg/flat.pm index 60a2346ac..f5a2100b9 100644 --- a/FS/FS/part_pkg/flat.pm +++ b/FS/FS/part_pkg/flat.pm @@ -82,6 +82,19 @@ tie my %contract_years, 'Tie::IxHash', ( 'weight' => 10, ); +sub price_info { + my $self = shift; + my $conf = new FS::Conf; + my $money_char = $conf->config('money_char') || '$'; + my $setup = $self->option('setup_fee') || 0; + my $recur = $self->option('recur_fee', 1) || 0; + my $str = ''; + $str = $money_char . $setup . ' one-time' if $setup; + $str .= ', ' if ($setup && $recur); + $str .= $money_char . $recur . ' recurring ' if $recur; + $str; +} + sub calc_setup { my($self, $cust_pkg, $sdate, $details ) = @_;