e1e25bf2688e9f58730df17b0b6bb2ec4e3ebebf
[freeside.git] / FS / FS / part_event / Action / cust_bill_fsinc_print.pm
1 package FS::part_event::Action::cust_bill_fsinc_print;
2
3 use strict;
4 use base qw( FS::part_event::Action );
5
6 sub description { 'Send invoice to Freeside Inc. for printing and mailing'; }
7
8 sub eventtable_hashref {
9   { 'cust_bill' => 1 };
10 }
11
12 sub option_fields {
13   (
14     'modenum'     => { label  => 'Invoice mode',
15                        type   => 'select-invoice_mode',
16                      },
17   );
18 }
19
20 sub default_weight { 52; }
21
22 sub do_action {
23   my( $self, $cust_bill ) = @_;
24
25   $cust_bill->set('mode' => $self->option('modenum'));
26
27   my $letter_id = $cust_bill->postal_mail_fsinc;
28
29   #TODO: store this so we can query for a status later
30 }
31
32 1;