[freeside-commits] freeside/FS/FS/ClientAPI MyAccount.pm, 1.162, 1.163
Ivan,,,
ivan at wavetail.420.am
Mon Nov 28 17:23:18 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS/ClientAPI
In directory wavetail.420.am:/tmp/cvs-serv9831/FS/FS/ClientAPI
Modified Files:
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.162
retrieving revision 1.163
diff -u -w -d -r1.162 -r1.163
--- MyAccount.pm 12 Nov 2011 00:35:21 -0000 1.162
+++ MyAccount.pm 29 Nov 2011 01:23:15 -0000 1.163
@@ -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