summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pay.pm
diff options
context:
space:
mode:
authormark <mark>2011-04-11 21:33:54 +0000
committermark <mark>2011-04-11 21:33:54 +0000
commit6e3e6b1051bf8bc603a437a72d5272f61330af18 (patch)
tree4f4db168e651f129096dcd9c502898fafe7dd8e7 /FS/FS/cust_pay.pm
parentade7fd5f694fcc47e4a0ffb606c0dc08ecb322fb (diff)
per-agent payment receipt addresses, #10797
Diffstat (limited to 'FS/FS/cust_pay.pm')
-rw-r--r--FS/FS/cust_pay.pm6
1 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm
index 29f3ddc..c80729a 100644
--- a/FS/FS/cust_pay.pm
+++ b/FS/FS/cust_pay.pm
@@ -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') ) {