summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Action/apply.pm
diff options
context:
space:
mode:
Diffstat (limited to 'FS/FS/part_event/Action/apply.pm')
-rw-r--r--FS/FS/part_event/Action/apply.pm24
1 files changed, 24 insertions, 0 deletions
diff --git a/FS/FS/part_event/Action/apply.pm b/FS/FS/part_event/Action/apply.pm
new file mode 100644
index 0000000..823d1e0
--- /dev/null
+++ b/FS/FS/part_event/Action/apply.pm
@@ -0,0 +1,24 @@
+package FS::part_event::Action::apply;
+
+use strict;
+use base qw( FS::part_event::Action );
+
+sub description {
+ 'Apply unapplied payments and credits';
+}
+
+sub deprecated { 1; }
+
+sub default_weight { 70; }
+
+sub do_action {
+ my( $self, $cust_object ) = @_;
+
+ my $cust_main = $self->cust_main($cust_object);
+
+ $cust_main->apply_payments_and_credits;
+
+ '';
+}
+
+1;