[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.24,1.25
Ivan,,,
ivan at wavetail.420.am
Thu Jun 5 13:09:23 PDT 2008
Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv23706/FS/FS/part_pkg
Modified Files:
flat.pm
Log Message:
fix one-time charge quantities &
Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- flat.pm 5 Jun 2008 19:25:32 -0000 1.24
+++ flat.pm 5 Jun 2008 20:09:21 -0000 1.25
@@ -101,7 +101,13 @@
my $quantity = $cust_pkg->quantity || 1;
- sprintf("%.2f", $quantity * $self->option('setup_fee') );
+ sprintf("%.2f", $quantity * $self->unit_setup($cust_pkg, $sdate, $details) );
+}
+
+sub unit_setup {
+ my($self, $cust_pkg, $sdate, $details ) = @_;
+
+ $self->option('setup_fee');
}
sub calc_recur {
More information about the freeside-commits
mailing list