diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-01-28 02:26:52 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-01-28 02:26:52 -0800 |
commit | 2e4fa975e054554beac71883436b143267d7aa12 (patch) | |
tree | 246c066d8497d8db3f47a809caddfbd2e67d2264 /FS/FS/cust_pay.pm | |
parent | f4b7701c4c1e574ebe29e05db694d131d2799b35 (diff) | |
parent | e43f8075d053e3f1d969d8f762ab510a2de126de (diff) |
Merge branch 'master' of git.freeside.biz:/home/git/freeside
Diffstat (limited to 'FS/FS/cust_pay.pm')
-rw-r--r-- | FS/FS/cust_pay.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/FS/FS/cust_pay.pm b/FS/FS/cust_pay.pm index df567a5..e44278d 100644 --- a/FS/FS/cust_pay.pm +++ b/FS/FS/cust_pay.pm @@ -694,7 +694,10 @@ sub send_receipt { 'msgtype' => 'receipt', }; $error = $queue->insert( - 'from' => $conf->config('invoice_from', $cust_main->agentnum), + 'from' => $conf->config('invoice_from_name', $cust_main->agentnum ) ? + $conf->config('invoice_from_name', $cust_main->agentnum ) . ' <' . + $conf->config('invoice_from', $cust_main->agentnum ) . '>' : + $conf->config('invoice_from', $cust_main->agentnum ), #invoice_from??? well as good as any 'to' => \@invoicing_list, 'subject' => 'Payment receipt', |