summaryrefslogtreecommitdiff
path: root/FS/FS/cust_main.pm
diff options
context:
space:
mode:
authorJonathan Prykop <jonathan@freeside.biz>2016-09-02 22:02:03 -0500
committerJonathan Prykop <jonathan@freeside.biz>2016-09-02 22:02:03 -0500
commitb92e0eafc315618a40e5de2f7b214e7a125d29fe (patch)
treee7d13c4b8256ed1f8688d3daabdf4d211f627bbe /FS/FS/cust_main.pm
parentdccee148cb8194b077980343db879377f34e6b5a (diff)
72225: OQH - Mandatory Fields on Customer Creation
Diffstat (limited to 'FS/FS/cust_main.pm')
-rw-r--r--FS/FS/cust_main.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 7bbed1bc2..2f05af69a 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -1869,6 +1869,10 @@ sub check {
&& ! $self->custnum
&& $conf->exists('cust_main-require_locale');
+ return "Please select a customer class"
+ if ! $self->classnum
+ && $conf->exists('cust_main-require_classnum');
+
foreach my $flag (qw( tax spool_cdr squelch_cdr archived email_csv_cdr )) {
$self->$flag() =~ /^(Y?)$/ or return "Illegal $flag: ". $self->$flag();
$self->$flag($1);