[freeside-commits] freeside/FS/FS/part_pkg flat.pm,1.23,1.24

Ivan,,, ivan at wavetail.420.am
Thu Jun 5 12:25:34 PDT 2008


Update of /home/cvs/cvsroot/freeside/FS/FS/part_pkg
In directory wavetail.420.am:/tmp/cvs-serv22408

Modified Files:
	flat.pm 
Log Message:
implement quantity charging for setup fees

Index: flat.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_pkg/flat.pm,v
retrieving revision 1.23
retrieving revision 1.24
diff -u -d -r1.23 -r1.24
--- flat.pm	17 Apr 2008 01:39:53 -0000	1.23
+++ flat.pm	5 Jun 2008 19:25:32 -0000	1.24
@@ -99,7 +99,9 @@
     push @$details, $self->option( 'additional_info' . $i++ );
   }
 
-  $self->option('setup_fee');
+  my $quantity = $cust_pkg->quantity || 1;
+
+  sprintf("%.2f", $quantity * $self->option('setup_fee') );
 }
 
 sub calc_recur {



More information about the freeside-commits mailing list