X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_send.pm;h=c6928dc000cd3d7e40d4f3ec55159674b91616c5;hb=833cfe5c9938d33c3e6b97ed610c25a7afa6eb04;hp=587a7c6642bf1d675cdf16fef5f76f16bff268fc;hpb=40a7b3dc653e099f7bd0bd762b649b04c4432db2;p=freeside.git diff --git a/FS/FS/part_event/Action/cust_bill_send.pm b/FS/FS/part_event/Action/cust_bill_send.pm index 587a7c664..c6928dc00 100644 --- a/FS/FS/part_event/Action/cust_bill_send.pm +++ b/FS/FS/part_event/Action/cust_bill_send.pm @@ -9,11 +9,20 @@ sub eventtable_hashref { { 'cust_bill' => 1 }; } +sub option_fields { + ( + 'modenum' => { label => 'Invoice mode', + type => 'select-invoice_mode', + }, + ); +} + sub default_weight { 50; } sub do_action { my( $self, $cust_bill ) = @_; + $cust_bill->set('mode' => $self->option('modenum')); $cust_bill->send; }