diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-05-14 15:13:12 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-05-14 15:13:12 -0700 |
commit | 5214a5560240667a3a914c45df046b420926a5ec (patch) | |
tree | fd215bd257102cd3df74bd46b0b4e712bd2c8c58 /httemplate/edit/process/cust_main.cgi | |
parent | 8d159e2eda65f2e7b327872580502f37d006c7f8 (diff) |
option to keep an email address but not email it invoices, RT#17676
Diffstat (limited to 'httemplate/edit/process/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/process/cust_main.cgi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/httemplate/edit/process/cust_main.cgi b/httemplate/edit/process/cust_main.cgi index 1cf7a3eb4..3f5e19ef3 100755 --- a/httemplate/edit/process/cust_main.cgi +++ b/httemplate/edit/process/cust_main.cgi @@ -66,6 +66,8 @@ my $new = new FS::cust_main ( { } fields('cust_main') } ); +$new->invoice_noemail( ($cgi->param('invoice_email') eq 'Y') ? '' : 'Y' ); + $cgi->param('duplicate_of_custnum') =~ /^(\d+)$/; my $duplicate_of = $1; if ( $duplicate_of ) { |