[freeside-commits] freeside/FS/FS Conf.pm, 1.183, 1.184 cust_main.pm, 1.274, 1.275

Kristian Hoffmann,420,, khoff at wavetail.420.am
Wed Mar 7 11:48:35 PST 2007


Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail:/tmp/cvs-serv20507

Modified Files:
	Conf.pm cust_main.pm 
Log Message:
Option to disable the charging of the setup fee while a package is suspended.


Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.183
retrieving revision 1.184
diff -u -d -r1.183 -r1.184
--- Conf.pm	1 Mar 2007 01:26:38 -0000	1.183
+++ Conf.pm	7 Mar 2007 19:48:32 -0000	1.184
@@ -2076,6 +2076,13 @@
     'type'        => 'checkbox',
   },
 
+  {
+    'key'         => 'disable_setup_suspended_pkgs',
+    'section'     => 'billing',
+    'description' => 'Disables charging of setup fees for suspended packages.',
+    'type'       => 'checkbox',
+  },
+
 );
 
 1;

Index: cust_main.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_main.pm,v
retrieving revision 1.274
retrieving revision 1.275
diff -u -d -r1.274 -r1.275
--- cust_main.pm	2 Mar 2007 23:48:18 -0000	1.274
+++ cust_main.pm	7 Mar 2007 19:48:32 -0000	1.275
@@ -1902,7 +1902,14 @@
     ###
 
     my $setup = 0;
-    if ( !$cust_pkg->setup || $options{'resetup'} ) {
+    if ( ! $cust_pkg->setup &&
+         (
+           ( $conf->exists('disable_setup_suspended_pkgs') &&
+            ! $cust_pkg->getfield('susp')
+          ) || ! $conf->exists('disable_setup_suspended_pkgs')
+         )
+      || $options{'resetup'}
+    ) {
     
       warn "    bill setup\n" if $DEBUG > 1;
 



More information about the freeside-commits mailing list