X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=FS%2FFS%2Fpart_event%2FAction%2Fcust_bill_send_with_notice.pm;h=d2678fd8273ebc6ad07812eba4ce1b3b3cd8a83d;hb=11c9b2c65cc3c96ce86367ed1ca7e4bc24a4305d;hp=10e86e37fb7b835afc601ca822d34a9e9d499f21;hpb=df21571ae9b56b8645c53053fdabc78ca6eeffed;p=freeside.git diff --git a/FS/FS/part_event/Action/cust_bill_send_with_notice.pm b/FS/FS/part_event/Action/cust_bill_send_with_notice.pm index 10e86e37f..d2678fd82 100644 --- a/FS/FS/part_event/Action/cust_bill_send_with_notice.pm +++ b/FS/FS/part_event/Action/cust_bill_send_with_notice.pm @@ -30,10 +30,10 @@ sub option_fields { sub default_weight { 56; } sub do_action { - my( $self, $cust_bill, %opt ) = @_; + my( $self, $cust_bill, $cust_event ) = @_; $cust_bill->set('mode' => $self->option('modenum')); - my %args = ( 'time' => $opt{'time'} ); + my %args = ( 'time' => $cust_event->_date ); my $mimepart = MIME::Entity->build( $cust_bill->mimebuild_pdf(\%args) ); my $msgnum = $self->option('msgnum'); my $msg_template = FS::msg_template->by_key($msgnum)