[freeside-commits] freeside/httemplate/edit cust_credit.cgi, 1.17, 1.17.2.1 reason.html, 1.2, 1.2.2.1 reason_type.html, 1.1, 1.1.2.1

Jeff Finucane,420,, jeff at wavetail.420.am
Tue Dec 4 10:19:09 PST 2007


Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail:/tmp/cvs-serv22683/httemplate/edit

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	cust_credit.cgi reason.html reason_type.html 
Log Message:
change credit reasons from freetext to new reason/reason type system (#2777)

Index: reason_type.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/reason_type.html,v
retrieving revision 1.1
retrieving revision 1.1.2.1
diff -u -d -r1.1 -r1.1.2.1
--- reason_type.html	19 Oct 2006 14:25:51 -0000	1.1
+++ reason_type.html	4 Dec 2007 18:19:07 -0000	1.1.2.1
@@ -2,11 +2,7 @@
 %$cgi->param('class') =~ /^(\w)$/;
 %my $class = $1;
 %
-%my %classmap = ( 'C' => 'Cancel',
-%                 'S' => 'Suspend',
-%		);
-%
-%my $classname = $classmap{$class};
+%my $classname = $FS::reason_type::class_name{$class};
 %
 <% include( 'elements/edit.html',
                  'name'   => $classname . ' Reason Type',

Index: cust_credit.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_credit.cgi,v
retrieving revision 1.17
retrieving revision 1.17.2.1
diff -u -d -r1.17 -r1.17.2.1
--- cust_credit.cgi	27 Aug 2006 19:30:38 -0000	1.17
+++ cust_credit.cgi	4 Dec 2007 18:19:07 -0000	1.17.2.1
@@ -5,7 +5,7 @@
   <BR><BR>
 % } 
 
-<FORM ACTION="<% $p1 %>process/cust_credit.cgi" METHOD=POST>
+<FORM NAME="credit_popup" ACTION="<% $p1 %>process/cust_credit.cgi" METHOD=POST>
 <INPUT TYPE="hidden" NAME="crednum" VALUE="">
 <INPUT TYPE="hidden" NAME="custnum" VALUE="<% $custnum %>">
 <INPUT TYPE="hidden" NAME="paybatch" VALUE="">
@@ -30,10 +30,7 @@
 %#print qq! <INPUT TYPE="checkbox" NAME="refund" VALUE="$refund">Also post refund!;
 %
 
-  <TR>
-    <TD ALIGN="right">Reason</TD>
-    <TD BGCOLOR="#ffffff"><INPUT TYPE="text" NAME="reason" VALUE="<% $reason %>" SIZE=32></TD>
-  </TR>
+<% include('/elements/tr-select-reason.html', 'reasonnum', 'R', '', '', '', 'document.credit_popup.submit',) %>
 
   <TR>
     <TD ALIGN="right">Auto-apply<BR>to invoices</TD>

Index: reason.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/reason.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- reason.html	23 Oct 2006 04:21:03 -0000	1.2
+++ reason.html	4 Dec 2007 18:19:07 -0000	1.2.2.1
@@ -2,10 +2,7 @@
 % $cgi->param('class') =~ /^(\w)$/ or die "illegal class";
 % my $class=$1;
 %
-% my %classmap = ('C' => 'cancel',
-%              'S' => 'suspend',
-%             );
-% my $classname = $classmap{$class};
+% my $classname = $FS::reason_type::class_name{$class};
 %
 % my (@types) = qsearch( 'reason_type', { 'class' => $class } );
 %



More information about the freeside-commits mailing list