diff options
author | Ivan Kohler <ivan@freeside.biz> | 2014-11-13 14:36:11 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2014-11-13 14:36:11 -0800 |
commit | 4900c030d29982ae70dc69c05bb177e96b7c7c57 (patch) | |
tree | e9709bb987cc83283431918cf2f4fbd38a223b2d | |
parent | 52a824f9b11ca266be10c76894eaf6607344c8d0 (diff) |
status labels
-rw-r--r-- | FS/FS/cust_main.pm | 4 | ||||
-rw-r--r-- | httemplate/elements/select-cust_main-status.html | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index b2949a5d8..f446b88f8 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -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}; diff --git a/httemplate/elements/select-cust_main-status.html b/httemplate/elements/select-cust_main-status.html index bdbaac7f4..4885a0e67 100644 --- a/httemplate/elements/select-cust_main-status.html +++ b/httemplate/elements/select-cust_main-status.html @@ -11,7 +11,7 @@ <% ref($value) && $value->{$option} || $option eq $value ? 'SELECTED' : '' %> - ><% $option %> + ><% FS::cust_main->statuslabels->{$option} %> % } |