[freeside-commits] freeside/httemplate/browse reason.html, 1.2, 1.2.2.1 reason_type.html, 1.2, 1.2.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/browse
In directory wavetail:/tmp/cvs-serv22683/httemplate/browse

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	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/browse/reason_type.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- reason_type.html	30 Jan 2007 20:59:13 -0000	1.2
+++ reason_type.html	4 Dec 2007 18:19:07 -0000	1.2.2.1
@@ -33,11 +33,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 $html_init = ucfirst($classname) .
   " reason types allow groups of $classname reasons for reporting purposes." .

Index: reason.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/reason.html,v
retrieving revision 1.2
retrieving revision 1.2.2.1
diff -u -d -r1.2 -r1.2.2.1
--- reason.html	30 Jan 2007 20:59:13 -0000	1.2
+++ reason.html	4 Dec 2007 18:19:07 -0000	1.2.2.1
@@ -36,14 +36,10 @@
 $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 $classpurpose = $FS::reason_type::class_purpose{$class};;
 
-my $html_init = ucfirst($classname) .
-" reasons explain why we $classname a package.<BR><BR>".
+my $html_init = ucfirst($classname).  " reasons $classpurpose.<BR><BR>".
 qq!<A HREF="${p}edit/reason.html?class=$class">!.
 "<I>Add a $classname reason</I></A><BR><BR>";
 



More information about the freeside-commits mailing list