diff options
Diffstat (limited to 'FS/FS/part_event/Action/cust_statement.pm')
-rw-r--r-- | FS/FS/part_event/Action/cust_statement.pm | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/FS/FS/part_event/Action/cust_statement.pm b/FS/FS/part_event/Action/cust_statement.pm new file mode 100644 index 0000000..2d9e877 --- /dev/null +++ b/FS/FS/part_event/Action/cust_statement.pm @@ -0,0 +1,39 @@ +package FS::part_event::Action::cust_statement; + +use strict; + +use base qw( FS::part_event::Action ); + +use FS::cust_statement; + +sub description { + 'Group invoices into an informational statement.'; +} + +sub eventtable_hashref { + { 'cust_main' => 1, + 'cust_pkg' => 1, + }; +} + +sub default_weight { + 90; +} + +sub do_action { + my( $self, $cust_main ) = @_; + + #my( $self, $object ) = @_; + #my $cust_main = $self->cust_main($object); + + my $cust_statement = new FS::cust_statement { + 'custnum' => $cust_main->custnum + }; + my $error = $cust_statement->insert; + die $error if $error; + + ''; + +} + +1; |