From 4900c030d29982ae70dc69c05bb177e96b7c7c57 Mon Sep 17 00:00:00 2001 From: Ivan Kohler Date: Thu, 13 Nov 2014 14:36:11 -0800 Subject: [PATCH] status labels --- FS/FS/cust_main.pm | 4 ++++ httemplate/elements/select-cust_main-status.html | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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} %> % } -- 2.11.0