[freeside-commits] freeside/fs_selfservice/FS-SelfService/cgi change_pay.html, 1.5, 1.6

Ivan,,, ivan at wavetail.420.am
Tue Oct 20 11:30:15 PDT 2009


Update of /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi
In directory wavetail.420.am:/tmp/cvs-serv2631

Modified Files:
	change_pay.html 
Log Message:
don't show duplicate 'Credit card' or 'Check' choices even when signup_server-payby has CARD & DCRD (or CHEK & DCHK)

Index: change_pay.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/fs_selfservice/FS-SelfService/cgi/change_pay.html,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- change_pay.html	31 Jul 2009 13:20:54 -0000	1.5
+++ change_pay.html	20 Oct 2009 18:30:13 -0000	1.6
@@ -46,6 +46,17 @@
   $options{$payby} = $payby_index{$payby}
     unless exists($options{$payby});
 
+  #don't want to show multiple "Credit card" or "Check" options
+  my %paybyremove = (
+    'CARD' => 'DCRD',
+    'DCRD' => 'CARD',
+    'CHEK' => 'DCHK',
+    'DCHK' => 'CHEK',
+  );
+  delete( $options{ $paybyremove{$payby} } );
+  delete $options{'DCRD'} unless $payby eq 'DCRD' || ! exists $options{'CARD'};
+  delete $options{'DCHK'} unless $payby eq 'DCHK' || ! exists $options{'CHEK'};
+
   HTML::Widgets::SelectLayers->new(
     options => \%options,
     selected_layer => $payby,



More information about the freeside-commits mailing list