From f10cd68f08a6bfbd565a83b40bacc3f55a1265b3 Mon Sep 17 00:00:00 2001 From: ivan Date: Mon, 21 Nov 2005 10:47:12 +0000 Subject: add MCRD payment type for manually processed ccards --- httemplate/edit/cust_main/billing.html | 23 ++++++++++++++++++++--- 1 file changed, 20 insertions(+), 3 deletions(-) (limited to 'httemplate/edit/cust_main') diff --git a/httemplate/edit/cust_main/billing.html b/httemplate/edit/cust_main/billing.html index caac3a956..6168fa97e 100644 --- a/httemplate/edit/cust_main/billing.html +++ b/httemplate/edit/cust_main/billing.html @@ -331,6 +331,22 @@ if ( $payby_default eq 'HIDE' ) { '', + 'MCRD' => + + ''. + + qq!!. + qq!!. + + ''. + ''. + ''. + ''. + ''. + ''. + + '
${r}Amount
 
 
 
 
 
 
', + ); @@ -341,11 +357,12 @@ if ( $payby_default eq 'HIDE' ) { 'BILL' => 'Billing', 'CASH' => 'Cash', # initial payment, then billing', 'WEST' => 'Western Union', # initial payment, then billing', + 'MCRD' => 'Manual credit card', # initial payment, then billing', 'COMP' => 'Complimentary', ); - if ( $cust_main->custnum ) { #don't offer CASH and WEST initial payment types + if ( $cust_main->custnum ) { #don't offer CASH/WEST/MCRD initial payment types # when editing customer - delete $allopt{$_} for qw(CASH WEST); + delete $allopt{$_} for qw(CASH WEST MCRD); } tie my %options, 'Tie::IxHash', @@ -365,7 +382,7 @@ if ( $payby_default eq 'HIDE' ) { #'form_action' => 'nothingyet', #chops bottom of page in IE# 'under_position' => 'absolute', 'html_between' => '', - 'selected_layer' => $payby2option{$payby} || 'CARD', + 'selected_layer' => $payby2option{$payby || $payby_default || $payby[0] }, 'layer_callback' => sub { my $layer = shift; $payby{$layer}; }, ); -- cgit v1.2.1