summaryrefslogtreecommitdiff
path: root/FS/FS/part_pkg.pm
diff options
context:
space:
mode:
authorivan <ivan>2005-10-07 02:25:41 +0000
committerivan <ivan>2005-10-07 02:25:41 +0000
commit7a97ed31c38e975c6548083039ff2ce31c6d8cf3 (patch)
treea18baccd2db1d7fbe297529c475fd4c39ff88126 /FS/FS/part_pkg.pm
parente65217c9d44ce759a397f3948c2f19ceb16f8931 (diff)
add require_taxclasses config flag
Diffstat (limited to 'FS/FS/part_pkg.pm')
-rw-r--r--FS/FS/part_pkg.pm4
1 files changed, 4 insertions, 0 deletions
diff --git a/FS/FS/part_pkg.pm b/FS/FS/part_pkg.pm
index db31e456f..73f3bae04 100644
--- a/FS/FS/part_pkg.pm
+++ b/FS/FS/part_pkg.pm
@@ -441,6 +441,10 @@ sub check {
return 'Unknown plan '. $self->plan
unless exists($plans{$self->plan});
+ my $conf = new FS::Conf;
+ return 'Taxclass is required'
+ if ! $self->taxclass && $conf->exists('require_taxclasses');
+
'';
}