[freeside-commits] freeside/FS/FS cust_bill.pm, 1.291, 1.292 cust_bill_pkg_display.pm, 1.3, 1.4
Jeff Finucane,420,,
jeff at wavetail.420.am
Mon Aug 23 09:47:02 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv19438/FS/FS
Modified Files:
cust_bill.pm cust_bill_pkg_display.pm
Log Message:
create a default finance section and have hidden sectionless line items remain sectionless
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.291
retrieving revision 1.292
diff -u -w -d -r1.291 -r1.292
--- cust_bill.pm 18 Aug 2010 03:43:42 -0000 1.291
+++ cust_bill.pm 23 Aug 2010 16:47:00 -0000 1.292
@@ -2387,6 +2387,7 @@
$invoice_data{finance_section} = $pkg_class->categoryname;
}
$invoice_data{finance_amount} = '0.00';
+ $invoice_data{finance_section} ||= 'Finance Charges'; #avoid config confusion
my $countrydefault = $conf->config('countrydefault') || 'US';
my $prefix = $cust_main->has_ship_address ? 'ship_' : '';
@@ -3359,6 +3360,7 @@
if ( $summarypage ) {
@sections = grep { exists($subtotal{$_}) || ! _pkg_category($_)->disabled }
map { $_->categoryname } qsearch('pkg_category', {});
+ push @sections, '' if exists($subtotal{''});
} else {
@sections = keys %subtotal;
}
Index: cust_bill_pkg_display.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill_pkg_display.pm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -w -d -r1.3 -r1.4
--- cust_bill_pkg_display.pm 22 Oct 2009 05:32:31 -0000 1.3
+++ cust_bill_pkg_display.pm 23 Aug 2010 16:47:00 -0000 1.4
@@ -55,7 +55,7 @@
my $section = $self->getfield('section');
unless ($section) {
my $cust_bill_pkg = $self->cust_bill_pkg;
- if ( $cust_bill_pkg->pkgnum > 0 ) {
+ if ( $cust_bill_pkg->pkgnum > 0 && !$cust_bill_pkg->hidden ) {
my $part_pkg = $cust_bill_pkg->part_pkg;
$section = $part_pkg->categoryname if $part_pkg;
}
More information about the freeside-commits
mailing list