[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.133.2.29, 1.133.2.30

Ivan,,, ivan at wavetail.420.am
Mon Nov 28 16:20:12 PST 2011


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

Modified Files:
      Tag: FREESIDE_2_3_BRANCH
	MyAccount.pm 
Log Message:
also supress sending invoices w/selfservice-hide_invoices-taxclass, RT#15327

Index: MyAccount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/ClientAPI/MyAccount.pm,v
retrieving revision 1.133.2.29
retrieving revision 1.133.2.30
diff -u -w -d -r1.133.2.29 -r1.133.2.30
--- MyAccount.pm	12 Nov 2011 00:35:29 -0000	1.133.2.29
+++ MyAccount.pm	29 Nov 2011 00:20:10 -0000	1.133.2.30
@@ -1248,16 +1248,7 @@
 
   my @legacy_cust_bill = $cust_main->legacy_cust_bill;
 
-  my @cust_bill = $cust_main->cust_bill;
-
-  my $hide_taxclass = $conf->config('selfservice-hide_invoices-taxclass');
-  if ( $hide_taxclass ) {
-    @cust_bill = grep { my @cust_bill_pkg = $_->cust_bill_pkg;
-                        my @part_pkg= grep $_, map $_->part_pkg, @cust_bill_pkg;
-                        grep { $_->taxclass ne $hide_taxclass } @part_pkg;
-                      }
-                   @cust_bill;
-  }
+  my @cust_bill = grep ! $_->hide, $cust_main->cust_bill;
 
   my $balance = 0;
 



More information about the freeside-commits mailing list