diff options
author | ivan <ivan> | 2007-10-04 19:03:57 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-10-04 19:03:57 +0000 |
commit | ef5c5621cdb9541d6bcf934233396edae30f8c3b (patch) | |
tree | d86c8c5d241424fdab558cdf034290d2515d2e9b /FS/FS | |
parent | 8031d0cdfc2d79715dfd05152cefbeb2eb639a66 (diff) |
additional due_cust_event debugging
Diffstat (limited to 'FS/FS')
-rw-r--r-- | FS/FS/cust_main.pm | 83 |
1 files changed, 65 insertions, 18 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index 5e3b2e8d8..c26dc9231 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1888,17 +1888,30 @@ Options are passed as name-value pairs. Currently available options are: =over 4 -=item time - bills the customer as if it were that time. Specified as a UNIX timestamp; see L<perlfunc/"time">). Also see L<Time::Local> and L<Date::Parse> for conversion functions. For example: +=item time + +Bills the customer as if it were that time. Specified as a UNIX timestamp; see L<perlfunc/"time">). Also see L<Time::Local> and L<Date::Parse> for conversion functions. For example: use Date::Parse; ... $cust_main->bill( 'time' => str2time('April 20th, 2001') ); -=item invoice_time - used in conjunction with the I<time> option, this option specifies the date of for the generated invoices. Other calculations, such as whether or not to generate the invoice in the first place, are not affected. +=item invoice_time + +Used in conjunction with the I<time> option, this option specifies the date of for the generated invoices. Other calculations, such as whether or not to generate the invoice in the first place, are not affected. + +=item check_freq + +"1d" for the traditional, daily events (the default), or "1m" for the new monthly events (part_event.check_freq) + +=item resetup + +If set true, re-charges setup fees. -=item check_freq - "1d" for the traditional, daily events (the default), or "1m" for the new monthly events (part_event.check_freq) +=item debug + +Debugging level. Default is 0 (no debugging), or can be set to 1 (passed-in options), 2 (traces progress), 3 (more information), or 4 (include full search queries) -=item resetup - if set true, re-charges setup fees. =back @@ -1965,19 +1978,27 @@ Options are passed as name-value pairs. Currently available options are: =over 4 -=item resetup - if set true, re-charges setup fees. +=item resetup + +if set true, re-charges setup fees. + +=item time -=item time - bills the customer as if it were that time. Specified as a UNIX timestamp; see L<perlfunc/"time">). Also see L<Time::Local> and L<Date::Parse> for conversion functions. For example: +bills the customer as if it were that time. Specified as a UNIX timestamp; see L<perlfunc/"time">). Also see L<Time::Local> and L<Date::Parse> for conversion functions. For example: use Date::Parse; ... $cust_main->bill( 'time' => str2time('April 20th, 2001') ); -=item pkg_list - An array ref of specific packages (objects) to attempt billing, instead trying all of them. +=item pkg_list + +An array ref of specific packages (objects) to attempt billing, instead trying all of them. $cust_main->bill( pkg_list => [$pkg1, $pkg2] ); -=item invoice_time - used in conjunction with the I<time> option, this option specifies the date of for the generated invoices. Other calculations, such as whether or not to generate the invoice in the first place, are not affected. +=item invoice_time + +used in conjunction with the I<time> option, this option specifies the date of for the generated invoices. Other calculations, such as whether or not to generate the invoice in the first place, are not affected. =back @@ -2423,15 +2444,30 @@ Currently available options are: =over 4 -=item invoice_time - Use this time when deciding when to print invoices and late notices on those invoices. The default is now. It is specified as a UNIX timestamp; see L<perlfunc/"time">). Also see L<Time::Local> and L<Date::Parse> for conversion functions. +=item invoice_time + +Use this time when deciding when to print invoices and late notices on those invoices. The default is now. It is specified as a UNIX timestamp; see L<perlfunc/"time">). Also see L<Time::Local> and L<Date::Parse> for conversion functions. -=item retry - Retry card/echeck/LEC transactions even when not scheduled by invoice events. +=item retry -=item quiet - set true to surpress email card/ACH decline notices. +Retry card/echeck/LEC transactions even when not scheduled by invoice events. -=item check_freq - "1d" for the traditional, daily events (the default), or "1m" for the new monthly events (part_event.check_freq) +=item quiet + +set true to surpress email card/ACH decline notices. + +=item check_freq + +"1d" for the traditional, daily events (the default), or "1m" for the new monthly events (part_event.check_freq) + +=item payby + +allows for one time override of normal customer billing method + +=item debug + +Debugging level. Default is 0 (no debugging), or can be set to 1 (passed-in options), 2 (traces progress), 3 (more information), or 4 (include full search queries) -=item payby - allows for one time override of normal customer billing method =back @@ -2475,6 +2511,7 @@ sub collect { # false laziness w/pay_batch::import_results my $due_cust_event = $self->due_cust_event( + 'debug' => ( $opt{'debug'} || 0 ), 'time' => $invoice_time, 'check_freq' => $options{'check_freq'}, ); @@ -2528,15 +2565,25 @@ options are: =over 4 -=item check_freq - Search only for events of this check frequency (how often events of this type are checked); currently "1d" (daily, the default) and "1m" (monthly) are recognized. +=item check_freq + +Search only for events of this check frequency (how often events of this type are checked); currently "1d" (daily, the default) and "1m" (monthly) are recognized. + +=item time + +"Current time" for the events. + +=item debug + +Debugging level. Default is 0 (no debugging), or can be set to 1 (passed-in options), 2 (traces progress), 3 (more information), or 4 (include full search queries) -=item time - "Current time" for the events. +=item eventtable -=item debug - Debugging level. Default is 0 (no debugging), or can be set to 1 (passed-in options), 2 (traces progress), or 3 (more information) +nly return events for the specified eventtable (by default, events of all eventtables are returned) -=item eventtable - Only return events for the specified eventtable (by default, events of all eventtables are returned) +=item objects -=item objects - Explicitly pass the objects to be tested (typically used with eventtable). +xplicitly pass the objects to be tested (typically used with eventtable). =back |