X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=61ae6c0927e2e73d04536a2646350e01cb175f0e;hp=4fa876bb972bf8bd7cd35b059721a823b0ab62fc;hb=faa9e03809537153822776b375d3add5de7c7800;hpb=b800a3e44db3b68e72933242dae6d95b6968fd52 diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index 4fa876bb9..61ae6c092 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -996,6 +996,24 @@ sub ftp_invoice { ); } +=item spool_invoice [ TEMPLATENAME ] + +Spools this invoice data (see L) + +TEMPLATENAME is unused? + +=cut + +sub spool_invoice { + my $self = shift; + my $template = scalar(@_) ? shift : ''; + + $self->spool_csv( + 'format' => $conf->config('cust_bill-spoolformat'), + 'agent_spools' => $conf->exists('cust_bill-spoolagent'), + ); +} + =item send_if_newest [ TEMPLATENAME [ , AGENTNUM [ , INVOICE_FROM ] ] ] Like B, but only sends the invoice if it is the newest open invoice for @@ -2887,7 +2905,7 @@ sub _items_payments { =over 4 -=item reprint +=item process_reprint =cut @@ -2895,7 +2913,7 @@ sub process_reprint { process_re_X('print', @_); } -=item reemail +=item process_reemail =cut @@ -2903,7 +2921,7 @@ sub process_reemail { process_re_X('email', @_); } -=item refax +=item process_refax =cut @@ -2911,7 +2929,7 @@ sub process_refax { process_re_X('fax', @_); } -=item reftp +=item process_reftp =cut @@ -2919,6 +2937,14 @@ sub process_reftp { process_re_X('ftp', @_); } +=item respool + +=cut + +sub process_respool { + process_re_X('spool', @_); +} + use Storable qw(thaw); use Data::Dumper; use MIME::Base64;