summaryrefslogtreecommitdiff
path: root/httemplate/edit
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-09-02 22:02:03 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-09-03 01:12:14 -0500
commit798ba64e8c02a2288b2162ee7d5fdb6f476c41eb (patch)
tree01e2c988a18e7890438c97f52cb5c0cd9803570e /httemplate/edit
parent8f244f35b1451cb984f43dbdf569482e2760e703 (diff)
72225: OQH - Mandatory Fields on Customer Creation
Diffstat (limited to 'httemplate/edit')
-rw-r--r--httemplate/edit/cust_main/top_misc.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main/top_misc.html b/httemplate/edit/cust_main/top_misc.html
index c19f347c3..3a794444f 100644
--- a/httemplate/edit/cust_main/top_misc.html
+++ b/httemplate/edit/cust_main/top_misc.html
@@ -141,9 +141,12 @@
% }
%# class
+% my $rclass = $conf->exists('cust_main-require_classnum') ? $r : '';
<& /elements/tr-select-cust_class.html,
- 'curr_value' => $cust_main->classnum,
- 'label' => emt("Class"),
+ 'curr_value' => $cust_main->classnum,
+ 'label' => $rclass . emt("Class"),
+ 'empty_label' => $rclass ? 'Select class' : '(none)',
+ 'disable_empty' => ($rclass && $cust_main->classnum) ? 1 : 0,
&>
%#sales person