[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.68,1.69
Ivan,,,
ivan at wavetail.420.am
Thu Dec 22 15:38:59 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv21112
Modified Files:
flat.pm
Log Message:
improve pricing descriptions
Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.68
retrieving revision 1.69
diff -u -w -d -r1.68 -r1.69
--- flat.pm 24 Oct 2011 01:15:53 -0000 1.68
+++ flat.pm 22 Dec 2011 23:38:57 -0000 1.69
@@ -93,9 +93,9 @@
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 = $money_char . $setup . ($recur ? ' setup ' : ' one-time') if $setup;
$str .= ', ' if ($setup && $recur);
- $str .= $money_char . $recur . ' recurring ' if $recur;
+ $str .= $money_char. $recur. '/'. $self->freq_pretty if $recur;
$str;
}
More information about the freeside-commits
mailing list