diff options
author | ivan <ivan> | 2007-11-09 18:59:12 +0000 |
---|---|---|
committer | ivan <ivan> | 2007-11-09 18:59:12 +0000 |
commit | 50d078d125c7267d17d02d3ea28a34d1a446c99d (patch) | |
tree | 68380146522a9edad1b4d177ee2d623dc01f8813 /FS | |
parent | 55bbd04b9381b45618f89ca2ed73361765343e49 (diff) |
add business-onlinepayment-email_customer flag
Diffstat (limited to 'FS')
-rw-r--r-- | FS/FS/Conf.pm | 7 | ||||
-rw-r--r-- | FS/FS/cust_main.pm | 4 |
2 files changed, 11 insertions, 0 deletions
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 @@ -441,6 +441,13 @@ worry that config_items is freeside-specific and icky. }, { + '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', 'description' => 'Default two-letter country code (if not supplied, the default is `US\')', 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' ) { |