summaryrefslogtreecommitdiff
path: root/FS/FS/part_event/Action
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2016-03-28 11:41:42 -0700
committerMark Wells <mark@freeside.biz>2016-03-28 17:36:49 -0700
commite002ba6d2f3c6f7dac37ea6fb4cc85d1af0c1e39 (patch)
tree7f41f9a83e7523f3dbc4b79766f861ea804eb0c6 /FS/FS/part_event/Action
parente19b24a18d4489ed0ea8c6624ba76364a933c868 (diff)
fix argument passing to event, #40152
Diffstat (limited to 'FS/FS/part_event/Action')
-rw-r--r--FS/FS/part_event/Action/cust_bill_send_with_notice.pm4
1 files changed, 2 insertions, 2 deletions
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 10e86e3..d2678fd 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)