diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-19 15:07:15 -0600 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-01-19 15:07:15 -0600 |
commit | 74cf17d7e822d75cbf51098c7e337ba4174b18aa (patch) | |
tree | 337c0e16ab26c58acad5797aead6dcd7587ffe65 /httemplate/edit/cust_main.cgi | |
parent | 816f74ae7cec86971d6fd2abfd45a166532f720c (diff) |
RT#38363: use cust_payby when saving cards during payments [editing from cust_main]
Diffstat (limited to 'httemplate/edit/cust_main.cgi')
-rwxr-xr-x | httemplate/edit/cust_main.cgi | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/httemplate/edit/cust_main.cgi b/httemplate/edit/cust_main.cgi index bdf3431d7..39cddc021 100755 --- a/httemplate/edit/cust_main.cgi +++ b/httemplate/edit/cust_main.cgi @@ -115,7 +115,6 @@ function samechanged(what) { %# billing info <& cust_main/billing.html, $cust_main, - 'payinfo' => $payinfo, 'invoicing_list' => \@invoicing_list, &> @@ -186,7 +185,7 @@ my $conf = new FS::Conf; #get record -my($custnum, $cust_main, $ss, $stateid, $payinfo, @invoicing_list); +my($custnum, $cust_main, $ss, $stateid, @invoicing_list); my $pkgpart_svcpart = ''; #first_pkg my($username, $password, $popnum, $saved_domsvc) = ( '', '', 0, 0 ); #svc_acct my %svc_phone = (); @@ -234,7 +233,6 @@ if ( $cgi->param('error') ) { $cust_main->setfield('paid' => $cgi->param('paid')) if $cgi->param('paid'); $ss = $cust_main->ss; # don't mask an entered value on errors $stateid = $cust_main->stateid; # don't mask an entered value on errors - $payinfo = $cust_main->payinfo; # don't mask an entered value on errors $cust_main->national_id( $cgi->param('national_id1') || $cgi->param('national_id2') ); @@ -282,7 +280,6 @@ if ( $cgi->param('error') ) { @invoicing_list = $cust_main->invoicing_list; $ss = $conf->exists('unmask_ss') ? $cust_main->ss : $cust_main->masked('ss'); $stateid = $cust_main->masked('stateid'); - $payinfo = $cust_main->paymask; } else { #new customer @@ -298,7 +295,6 @@ if ( $cgi->param('error') ) { unless $conf->exists('disablepostalinvoicedefault'); $ss = ''; $stateid = ''; - $payinfo = ''; $cgi->param('tagnum', FS::part_tag->default_tags); |