diff options
| author | ivan <ivan> | 2011-08-06 00:50:59 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2011-08-06 00:50:59 +0000 | 
| commit | 3d62ec9362d0b22c17a17da6197f8b2fc219a54e (patch) | |
| tree | 9684516ddfc7bb4d3270983a4e58d86aa478e1a3 /httemplate/view/cust_main | |
| parent | 17e269dff1e784069ab2161a3feb4676b781845f (diff) | |
echeck options to hide routing number and add account owner name, RT#13885
Diffstat (limited to 'httemplate/view/cust_main')
| -rw-r--r-- | httemplate/view/cust_main/billing.html | 11 | ||||
| -rw-r--r-- | httemplate/view/cust_main/payment_history.html | 6 | 
2 files changed, 12 insertions, 5 deletions
diff --git a/httemplate/view/cust_main/billing.html b/httemplate/view/cust_main/billing.html index ba63833f4..cf22ff701 100644 --- a/httemplate/view/cust_main/billing.html +++ b/httemplate/view/cust_main/billing.html @@ -92,10 +92,13 @@      <% mt("Electronic check ([_1])",$autodemand) |h %>    </TD>  </TR> -<TR> -  <TD ALIGN="right"><% mt('ABA/Routing code') |h %></TD> -  <TD BGCOLOR="#ffffff"><% $aba %></TD> -</TR> + +% unless ( $conf->exists('echeck-no_routing') ) { +  <TR> +    <TD ALIGN="right"><% mt('ABA/Routing code') |h %></TD> +    <TD BGCOLOR="#ffffff"><% $aba %></TD> +  </TR> +% }  % if ( $conf->exists('cust_main-require-bank-branch') ) {  <TR> diff --git a/httemplate/view/cust_main/payment_history.html b/httemplate/view/cust_main/payment_history.html index fa9c16697..580a30751 100644 --- a/httemplate/view/cust_main/payment_history.html +++ b/httemplate/view/cust_main/payment_history.html @@ -511,7 +511,11 @@ sub translate_payinfo {          $payinfo = $object->paymask;      } elsif ( $payby eq 'CHEK' ) {          my( $account, $aba ) = split('@', $object->paymask ); -        $payinfo = emt("ABA [_1], Acct #[_2]",$aba,$account); +        if ( $conf->exists('echeck-no_routing') ) { +          $payinfo = emt("Acct #[_1]", $account); +        } else { +          $payinfo = emt("ABA [_1], Acct #[_2]",$aba,$account); +        }      }      ($payby,$payinfo);  | 
