diff options
author | Jonathan Prykop <jonathan@freeside.biz> | 2016-09-02 22:02:03 -0500 |
---|---|---|
committer | Jonathan Prykop <jonathan@freeside.biz> | 2016-09-02 22:02:03 -0500 |
commit | b92e0eafc315618a40e5de2f7b214e7a125d29fe (patch) | |
tree | e7d13c4b8256ed1f8688d3daabdf4d211f627bbe /httemplate/edit/cust_main | |
parent | dccee148cb8194b077980343db879377f34e6b5a (diff) |
72225: OQH - Mandatory Fields on Customer Creation
Diffstat (limited to 'httemplate/edit/cust_main')
-rw-r--r-- | httemplate/edit/cust_main/basics.html | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/httemplate/edit/cust_main/basics.html b/httemplate/edit/cust_main/basics.html index a30d7f88c..3290756a8 100644 --- a/httemplate/edit/cust_main/basics.html +++ b/httemplate/edit/cust_main/basics.html @@ -169,9 +169,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, &> %# tax status |