X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_bill.pm;h=6ded57facfa8078d10bdeda12dedb5874b60a732;hb=764f8f4bb0185d7aa03676c795f84094b378b286;hp=bcfbbc73fb318c40f7933941f3c65d5d104083e5;hpb=3ece1c396f23e04cd659f1085f6eeee8bdfd846f;p=freeside.git diff --git a/FS/FS/cust_bill.pm b/FS/FS/cust_bill.pm index bcfbbc73f..6ded57fac 100644 --- a/FS/FS/cust_bill.pm +++ b/FS/FS/cust_bill.pm @@ -1085,6 +1085,9 @@ sub email { # this is where we set the From: address $from ||= $self->_agent_invoice_from || #XXX should go away + $conf->config('invoice_from_name', $self->cust_main->agentnum ) ? + $conf->config('invoice_from_name', $self->cust_main->agentnum ) . ' <' . + $conf->config('invoice_from', $self->cust_main->agentnum ) . '>' : $conf->config('invoice_from', $self->cust_main->agentnum ); my @invoicing_list = $self->cust_main->invoicing_list_emailonly;