From: ivan Date: Fri, 9 Nov 2007 18:59:12 +0000 (+0000) Subject: add business-onlinepayment-email_customer flag X-Git-Tag: freeside_1_7_3rc1~267 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=50d078d125c7267d17d02d3ea28a34d1a446c99d;p=freeside.git add business-onlinepayment-email_customer flag --- diff --git a/FS/FS/Conf.pm b/FS/FS/Conf.pm index 56f60d59e..504c1b985 100644 --- a/FS/FS/Conf.pm +++ b/FS/FS/Conf.pm @@ -440,6 +440,13 @@ worry that config_items is freeside-specific and icky. 'type' => 'textarea', }, + { + 'key' => 'business-onlinepayment-email_customer', + 'section' => 'billing', + 'description' => 'Controls the "email_customer" flag used by some Business::OnlinePayment processors to enable customer receipts.', + 'type' => 'checkbox', + }, + { 'key' => 'countrydefault', 'section' => 'UI', diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index c95ebf79a..dced11f53 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -2588,6 +2588,10 @@ sub realtime_bop { $content{invoice_number} = $options{'invnum'} if exists($options{'invnum'}) && length($options{'invnum'}); + $content{email_customer} = + ( $conf->exists('business-onlinepayment-email_customer') + || $conf->exists('business-onlinepayment-email-override') ); + my $paydate = ''; if ( $method eq 'CC' ) {