summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2015-01-28 02:26:52 -0800
committerIvan Kohler <ivan@freeside.biz>2015-01-28 02:26:52 -0800
commit2e4fa975e054554beac71883436b143267d7aa12 (patch)
tree246c066d8497d8db3f47a809caddfbd2e67d2264 /FS/FS/cust_main.pm
parentf4b7701c4c1e574ebe29e05db694d131d2799b35 (diff)
parente43f8075d053e3f1d969d8f762ab510a2de126de (diff)
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'FS/FS/cust_main.pm')
-rw-r--r--FS/FS/cust_main.pm5
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 30dbc04..1ed1d4a 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -4327,7 +4327,10 @@ sub notify {
return unless $conf->exists($template);
- my $from = $conf->config('invoice_from', $self->agentnum)
+ my $from = $conf->config('invoice_from_name', $self->agentnum) ?
+ $conf->config('invoice_from_name', $self->agentnum) . ' <' .
+ $conf->config('invoice_from', $self->agentnum) . '>' :
+ $conf->config('invoice_from', $self->agentnum)
if $conf->exists('invoice_from', $self->agentnum);
$from = $options{from} if exists($options{from});