X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_print.pm;fp=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_print.pm;h=6b3e6f4606d9e30c0207fac427afc4ea3780b192;hb=982ded2d929bdcdfa72efa810273f3bc753bf036;hp=0000000000000000000000000000000000000000;hpb=214f0bb42fc4b59d9111274b6255ebaafaac35ef;p=freeside.git diff --git a/FS/FS/part_event/Action/cust_bill_print.pm b/FS/FS/part_event/Action/cust_bill_print.pm new file mode 100644 index 000000000..6b3e6f460 --- /dev/null +++ b/FS/FS/part_event/Action/cust_bill_print.pm @@ -0,0 +1,23 @@ +package FS::part_event::Action::cust_bill_print; + +use strict; +use base qw( FS::part_event::Action ); + +sub description { 'Send invoice (print only)'; } + +sub eventtable_hashref { + { 'cust_bill' => 1 }; +} + +sub default_weight { 51; } + +sub do_action { + my( $self, $cust_bill ) = @_; + + #my $cust_main = $self->cust_main($cust_bill); + my $cust_main = $cust_bill->cust_main; + + $cust_bill->print; +} + +1;