projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
3b73596
)
additional due_cust_event debugging
author
ivan
<ivan>
Thu, 4 Oct 2007 19:14:06 +0000
(19:14 +0000)
committer
ivan
<ivan>
Thu, 4 Oct 2007 19:14:06 +0000
(19:14 +0000)
FS/FS/Cron/bill.pm
patch
|
blob
|
history
diff --git
a/FS/FS/Cron/bill.pm
b/FS/FS/Cron/bill.pm
index
efcbfb3
..
e4ba118
100644
(file)
--- a/
FS/FS/Cron/bill.pm
+++ b/
FS/FS/Cron/bill.pm
@@
-18,10
+18,13
@@
sub bill {
my $check_freq = $opt{'check_freq'} || '1d';
my $check_freq = $opt{'check_freq'} || '1d';
- $FS::cust_main::DEBUG = 1 if $opt{'v'};
- $FS::cust_main::DEBUG = $opt{'l'} if $opt{'l'};
+ my $debug = 0;
+ $debug = 1 if $opt{'v'};
+ $debug = $opt{'l'} if $opt{'l'};
+
+ $FS::cust_main::DEBUG = $debug;
#$FS::cust_event::DEBUG = $opt{'l'} if $opt{'l'};
#$FS::cust_event::DEBUG = $opt{'l'} if $opt{'l'};
-
+
my %search = ();
$search{'payby'} = $opt{'p'} if $opt{'p'};
$search{'agentnum'} = $opt{'a'} if $opt{'a'};
my %search = ();
$search{'payby'} = $opt{'p'} if $opt{'p'};
$search{'agentnum'} = $opt{'a'} if $opt{'a'};
@@
-119,6
+122,7
@@
END
'invoice_time' => $invoice_time,
'check_freq' => $check_freq,
'resetup' => $opt{'s'},
'invoice_time' => $invoice_time,
'check_freq' => $check_freq,
'resetup' => $opt{'s'},
+ 'debug' => $debug,
);
}
);
}