1 package FS::part_event::Action::cust_bill_fee_percent;
4 use base qw( FS::part_event::Action );
7 'Late fee (percentage of invoice)';
10 sub eventtable_hashref {
16 'percent' => { label=>'Percent', size=>2, },
26 my( $self, $cust_bill ) = @_;
28 #my $cust_main = $self->cust_main($cust_bill);
29 my $cust_main = $cust_bill->cust_main;
31 my $error = $cust_main->charge(
32 sprintf('%.2f', $cust_bill->owed * $self->option('percent') / 100 ),
33 $self->option('reason')