X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pay.pm;h=2d7c6dddf76db7d55cd4bf78743d095d5b083172;hb=85ea300702e8120ab4953c8fec27a52c7f7c7075;hp=71bc70764fc8a1cea0857bffc88fdc236ae0454e;hpb=376db7da0730dc2d9483d4e53954647fd7b578e3;p=freeside.git diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm index 71bc70764..2d7c6dddf 100644 --- a/FS/FS/cust_pay.pm +++ b/FS/FS/cust_pay.pm @@ -204,7 +204,7 @@ sub insert { } my @pkgs = $cust_main->_discount_pkgs_and_bill; my $cust_bill = shift(@pkgs); - @pkgs = &FS::cust_main::Billing::_discountable_pkgs_at_term($months, @pkgs); + @pkgs = &FS::cust_main::Billing_Discount::_discountable_pkgs_at_term($months, @pkgs); $_->bill($_->last_bill) foreach @pkgs; $error = $cust_main->bill( 'recurring_only' => 1, @@ -551,7 +551,11 @@ sub send_receipt { my $msgnum = $conf->config('payment_receipt_msgnum', $cust_main->agentnum); if ( $msgnum ) { my $msg_template = FS::msg_template->by_key($msgnum); - $error = $msg_template->send('cust_main'=> $cust_main, 'object'=> $self); + $error = $msg_template->send( + 'cust_main' => $cust_main, + 'object' => $self, + 'from_config' => 'payment_receipt_from', + ); } elsif ( $conf->exists('payment_receipt_email') ) {