import torrus 1.0.9
[freeside.git] / FS / FS / part_event / Action / cust_bill_comp.pm
1 package FS::part_event::Action::cust_bill_comp;
2
3 use strict;
4 use base qw( FS::part_event::Action );
5
6 sub description { 'Pay invoice with a complimentary "payment"'; }
7
8 sub deprecated { 1; }
9
10 sub eventtable_hashref {
11   { 'cust_bill' => 1 };
12 }
13
14 sub default_weight { 30; }
15
16 sub do_action {
17   my( $self, $cust_bill ) = @_;
18
19   #my $cust_main = $self->cust_main($cust_bill);
20   my $cust_main = $cust_bill->cust_main;
21
22   my $error = $cust_bill->comp;
23   die $error if $error;
24
25   '';
26 }
27
28 1;