summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Robinson <miker@freeside.biz>2012-04-25 16:59:55 -0500
committerMike Robinson <miker@freeside.biz>2012-04-26 15:53:14 -0500
commit6eac2876e787aa44191f9af04ac3124aa92634c5 (patch)
treec310e02b02547e65489bcfb27a689b8d0ff60b75
parentfbccbd7eee2aec970e9637af543826c1e4303475 (diff)
Don't default 'payname' to first/last name if paying by check. (#15819)
In this case, 'payname' is the name of the financial institution and there is no default.
-rw-r--r--FS/FS/ClientAPI/MyAccount.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/ClientAPI/MyAccount.pm b/FS/FS/ClientAPI/MyAccount.pm
index 7bc3011d2..e9394e4df 100644
--- a/FS/FS/ClientAPI/MyAccount.pm
+++ b/FS/FS/ClientAPI/MyAccount.pm
@@ -729,7 +729,7 @@ sub payment_info {
$return{payinfo2} = $payinfo2;
$return{paytype} = $cust_main->paytype;
$return{paystate} = $cust_main->paystate;
-
+ $return{payname} = $cust_main->payname; # override 'first/last name' default from above, if any. Is instution-name here. (#15819)
}
if ( $conf->config('prepayment_discounts-credit_type') ) {