X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_bill_pay_pkg.pm;h=ccfa49258adaa4892cdb4ef945d6dd3d8240a14b;hp=0a17469e5acdacb5629f5d2640068335ea6e5552;hb=HEAD;hpb=32072dbf59a054529f5304574c0f56f9567d14d0 diff --git a/FS/FS/cust_bill_pay_pkg.pm b/FS/FS/cust_bill_pay_pkg.pm index 0a17469e5..ccfa49258 100644 --- a/FS/FS/cust_bill_pay_pkg.pm +++ b/FS/FS/cust_bill_pay_pkg.pm @@ -1,5 +1,5 @@ package FS::cust_bill_pay_pkg; -use base qw( FS::Record ); +use base qw( FS::cust_main_Mixin FS::Record ); use strict; use FS::Conf; @@ -97,7 +97,11 @@ sub insert { #payment receipt my $conf = new FS::Conf; - my $trigger = $conf->config('payment_receipt-trigger') || 'cust_pay'; + my $trigger = + $conf->config('payment_receipt-trigger', + $self->cust_bill_pay->cust_bill->cust_main->agentnum, + ) + || 'cust_pay'; if ( $trigger eq 'cust_bill_pay_pkg' ) { my $error = $self->send_receipt( 'manual' => $options{'manual'},