[freeside-commits] freeside/FS/FS cust_bill.pm, 1.299.2.7, 1.299.2.8
Ivan,,,
ivan at wavetail.420.am
Fri Feb 4 19:36:15 PST 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv10874
Modified Files:
Tag: FREESIDE_2_1_BRANCH
cust_bill.pm
Log Message:
add more debug tracing to invoice generation, RT#11452
Index: cust_bill.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_bill.pm,v
retrieving revision 1.299.2.7
retrieving revision 1.299.2.8
diff -u -w -d -r1.299.2.7 -r1.299.2.8
--- cust_bill.pm 5 Feb 2011 02:38:45 -0000 1.299.2.7
+++ cust_bill.pm 5 Feb 2011 03:36:12 -0000 1.299.2.8
@@ -2708,7 +2708,7 @@
foreach my $section (@sections, @$late_sections) {
- warn "$me adding $section section\n"
+ warn "$me adding section \n". Dumper($section)
if $DEBUG > 1;
# begin some normalization
@@ -2736,6 +2736,9 @@
);
}
+ warn "$me setting options\n"
+ if $DEBUG > 1;
+
my $multilocation = scalar($cust_main->cust_location); #too expensive?
my %options = ();
$options{'section'} = $section if $multisection;
@@ -2749,7 +2752,14 @@
$options{'multilocation'} = $multilocation;
$options{'multisection'} = $multisection;
+ warn "$me searching for line items\n"
+ if $DEBUG > 1;
+
foreach my $line_item ( $self->_items_pkg(%options) ) {
+
+ warn "$me adding line item $line_item\n"
+ if $DEBUG > 1;
+
my $detail = {
ext_description => [],
};
@@ -4111,9 +4121,21 @@
sub _items_pkg {
my $self = shift;
my %options = @_;
+
+ warn "$me _items_pkg searching for all package line items\n"
+ if $DEBUG > 1;
+
my @cust_bill_pkg = grep { $_->pkgnum } $self->cust_bill_pkg;
+
+ warn "$me _items_pkg filtering line items\n"
+ if $DEBUG > 1;
my @items = $self->_items_cust_bill_pkg(\@cust_bill_pkg, @_);
+
if ($options{section} && $options{section}->{condensed}) {
+
+ warn "$me _items_pkg condensing section\n"
+ if $DEBUG > 1;
+
my %itemshash = ();
local $Storable::canonical = 1;
foreach ( @items ) {
@@ -4133,6 +4155,10 @@
}
keys %itemshash;
}
+
+ warn "$me _items_pkg returning ". scalar(@items). " items\n"
+ if $DEBUG > 1;
+
@items;
}
More information about the freeside-commits
mailing list