X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_class.pm;h=fdc92baf47818f5c657fa2ab1b581777f1edc50f;hb=09af85fc0e7a48392c930c9672a99448cf9630d4;hp=a811be7a70797989a2080d606504d80adb4dbd01;hpb=624b2d44625f69d71175c3348cae635d580c890b;p=freeside.git diff --git a/FS/FS/cust_class.pm b/FS/FS/cust_class.pm index a811be7a7..fdc92baf4 100644 --- a/FS/FS/cust_class.pm +++ b/FS/FS/cust_class.pm @@ -1,8 +1,7 @@ package FS::cust_class; +use base qw( FS::class_Common ); use strict; -use base qw( FS::class_Common ); -use FS::cust_main; use FS::cust_category; =head1 NAME @@ -44,6 +43,11 @@ Text name of this customer class Number of associated cust_category (see L) +=item tax + +Tax exempt flag, empty or 'Y'. Used when the cust_class-tax_exempt +configuration setting is turned on. + =item disabled Disabled flag, empty or 'Y' @@ -86,9 +90,17 @@ Checks all fields to make sure this is a valid customer class. If there is an error, returns the error, otherwise returns false. Called by the insert and replace methods. -=item cust_category +=cut -=item category +sub check { + my $self = shift; + + $self->ut_enum('tax', [ '', 'Y' ]) + || $self->SUPER::check; + +} + +=item cust_category Returns the cust_category record associated with this class, or false if there is none.