summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main
diff options
context:
space:
mode:
authorivan <ivan>2011-03-14 21:58:41 +0000
committerivan <ivan>2011-03-14 21:58:41 +0000
commitadaed99f98856d3a2a72804c77ef006a0bce6cb8 (patch)
tree9383c0565aef86823b66f78834c91bda64463f0e /FS/FS/cust_main
parentb08fdcdd5b0c7e32e0a666fd9a044651dd575589 (diff)
additional debugging, RT#11993
Diffstat (limited to 'FS/FS/cust_main')
-rw-r--r--FS/FS/cust_main/Billing.pm12
1 files changed, 10 insertions, 2 deletions
diff --git a/FS/FS/cust_main/Billing.pm b/FS/FS/cust_main/Billing.pm
index cbe8b64..64dd8e4 100644
--- a/FS/FS/cust_main/Billing.pm
+++ b/FS/FS/cust_main/Billing.pm
@@ -897,6 +897,13 @@ sub _make_lines {
|| $cust_pkg->setup
|| $time;
+ if ( $DEBUG > 2 ) {
+ warn 'part_pkg.freq: '. $part_pkg->freq. "\n";
+ warn 'cust_pkg.bill: '. $cust_pkg->getfield('bill'). "\n";
+ warn "time: $time\n";
+ warn "options{cancel}: $options{cancel}\n";
+ }
+
#over two params! lets at least switch to a hashref for the rest...
my $increment_next_bill = ( $part_pkg->freq ne '0'
&& ( $cust_pkg->getfield('bill') || 0 ) <= $time
@@ -916,8 +923,9 @@ sub _make_lines {
# which can_discount are supported.
# (the UI should prevent adding discounts to these at the moment)
- warn "calling $method on cust_pkg ". $cust_pkg->pkgnum. " with params ".
- join(' / ', map "$_=>$params{$_}", keys %param). "\n"
+ warn "calling $method on cust_pkg ". $cust_pkg->pkgnum.
+ " for pkgpart ". $cust_pkg->pkgpart.
+ " with params ". join(' / ', map "$_=>$params{$_}", keys %param). "\n"
if $DEBUG > 2;
$recur = eval { $cust_pkg->$method( \$sdate, \@details, \%param ) };