[freeside-commits] freeside/FS/FS/part_event/Action cust_bill_fee_percent.pm, 1.6, 1.7 fee.pm, 1.6, 1.7

Jeff Finucane,420,, jeff at wavetail.420.am
Sun Oct 4 17:49:36 PDT 2009


Update of /home/cvs/cvsroot/freeside/FS/FS/part_event/Action
In directory wavetail.420.am:/tmp/cvs-serv31511/FS/FS/part_event/Action

Modified Files:
	cust_bill_fee_percent.pm fee.pm 
Log Message:
leading summary page invoices #RT5086

Index: fee.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Action/fee.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- fee.pm	19 Aug 2009 21:27:16 -0000	1.6
+++ fee.pm	5 Oct 2009 00:49:34 -0000	1.7
@@ -26,10 +26,13 @@
 
   my $cust_main = $self->cust_main($cust_object);
 
+  my $conf = new FS::Conf;
+
   my %charge = (
     'amount'   => $self->option('charge'),
     'pkg'      => $self->option('reason'),
     'taxclass' => $self->option('taxclass'),
+    'classnum' => $conf->config('finance_pkgclass'),
     'setuptax' => $self->option('setuptax'),
   );
 

Index: cust_bill_fee_percent.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/part_event/Action/cust_bill_fee_percent.pm,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- cust_bill_fee_percent.pm	19 Aug 2009 21:27:16 -0000	1.6
+++ cust_bill_fee_percent.pm	5 Oct 2009 00:49:34 -0000	1.7
@@ -31,6 +31,8 @@
   #my $cust_main = $self->cust_main($cust_bill);
   my $cust_main = $cust_bill->cust_main;
 
+  my $conf = new FS::Conf;
+
   my $amount =
     sprintf('%.2f', $cust_bill->owed * $self->option('percent') / 100 );
 
@@ -38,6 +40,7 @@
     'amount'   => $amount,
     'pkg'      => $self->option('reason'),
     'taxclass' => $self->option('taxclass'),
+    'classnum'   => $conf->config('finance_pkgclass'),
     'setuptax' => $self->option('setuptax'),
   );
 



More information about the freeside-commits mailing list