[freeside-commits] freeside/FS/FS cust_pkg.pm,1.193,1.194
Ivan,,,
ivan at wavetail.420.am
Fri Feb 4 21:18:43 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv16946
Modified Files:
cust_pkg.pm
Log Message:
add more debug tracing to invoice generation, RT#11452
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.193
retrieving revision 1.194
diff -u -w -d -r1.193 -r1.194
--- cust_pkg.pm 20 Jan 2011 05:22:20 -0000 1.193
+++ cust_pkg.pm 5 Feb 2011 05:18:41 -0000 1.194
@@ -1769,6 +1769,9 @@
sub h_cust_svc {
my $self = shift;
+ warn "$me _h_cust_svc called on $self\n"
+ if $DEBUG > 1;
+
my ($end, $start, $mode) = @_;
my @cust_svc = $self->_sort_cust_svc(
[ qsearch( 'h_cust_svc',
@@ -1779,8 +1782,7 @@
if ( $mode eq 'I' ) {
my %hidden_svcpart = map { $_->svcpart => $_->hidden } $self->part_svc;
return grep { !$hidden_svcpart{$_->svcpart} } @cust_svc;
- }
- else {
+ } else {
return @cust_svc;
}
}
@@ -2122,6 +2124,8 @@
sub h_labels {
my $self = shift;
+ warn "$me _h_labels called on $self\n"
+ if $DEBUG > 1;
map { [ $_->label(@_) ] } $self->h_cust_svc(@_);
}
@@ -2154,13 +2158,23 @@
sub _labels_short {
my( $self, $method ) = ( shift, shift );
+ warn "$me _labels_short called on $self with $method method\n"
+ if $DEBUG > 1;
+
my $conf = new FS::Conf;
my $max_same_services = $conf->config('cust_bill-max_same_services') || 5;
+ warn "$me _labels_short populating \%labels\n"
+ if $DEBUG > 1;
+
my %labels;
#tie %labels, 'Tie::IxHash';
push @{ $labels{$_->[0]} }, $_->[1]
foreach $self->$method(@_);
+
+ warn "$me _labels_short populating \@labels\n"
+ if $DEBUG > 1;
+
my @labels;
foreach my $label ( keys %labels ) {
my %seen = ();
More information about the freeside-commits
mailing list