status labels
authorIvan Kohler <ivan@freeside.biz>
Thu, 13 Nov 2014 22:36:11 +0000 (14:36 -0800)
committerIvan Kohler <ivan@freeside.biz>
Thu, 13 Nov 2014 22:36:11 +0000 (14:36 -0800)
FS/FS/cust_main.pm
httemplate/elements/select-cust_main-status.html

index b2949a5..f446b88 100644 (file)
@@ -4294,10 +4294,14 @@ sub ucfirst_cust_status {
 
 =item cust_status_label
 
+=item status_label
+
 Returns the display label for this status.
 
 =cut
 
+sub status_label { shift->cust_status_label(@_); }
+
 sub cust_status_label {
   my $self = shift;
   __PACKAGE__->statuslabels->{$self->cust_status};
index bdbaac7..4885a0e 100644 (file)
@@ -11,7 +11,7 @@
             <% ref($value) && $value->{$option} || $option eq $value
                ? 'SELECTED' : ''
             %>
-    ><% $option %>
+    ><% FS::cust_main->statuslabels->{$option} %>
 
 % }