diff options
author | ivan <ivan> | 2005-10-07 02:25:41 +0000 |
---|---|---|
committer | ivan <ivan> | 2005-10-07 02:25:41 +0000 |
commit | 7a97ed31c38e975c6548083039ff2ce31c6d8cf3 (patch) | |
tree | a18baccd2db1d7fbe297529c475fd4c39ff88126 /FS/FS/part_pkg.pm | |
parent | e65217c9d44ce759a397f3948c2f19ceb16f8931 (diff) |
add require_taxclasses config flag
Diffstat (limited to 'FS/FS/part_pkg.pm')
-rw-r--r-- | FS/FS/part_pkg.pm | 4 |
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'); + ''; } |