event refactor, landing on HEAD!
[freeside.git] / FS / FS / part_event / Action / apply.pm
1 package FS::part_event::Action::apply;
2
3 use strict;
4 use base qw( FS::part_event::Action );
5
6 sub description {
7   'Apply unapplied payments and credits';
8 }
9
10 sub deprecated {
11   1;
12 }
13
14 sub default_weight {
15   70;
16 }
17
18 sub do_action {
19   my( $self, $cust_object ) = @_;
20
21   my $cust_main = $self->cust_main($cust_object);
22
23   $cust_main->apply_payments_and_credits;
24
25   '';
26 }
27
28 1;