option to keep an email address but not email it invoices, RT#17676
[freeside.git] / httemplate / edit / process / cust_main.cgi
index 1cf7a3e..3f5e19e 100755 (executable)
@@ -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 ) {