diff options
author | Ivan Kohler <ivan@freeside.biz> | 2012-04-15 15:38:27 -0700 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2012-04-15 15:38:27 -0700 |
commit | 2ce6ee8e5cd817a4018ad26eb1e364198c1dd931 (patch) | |
tree | f1f1d447c8dc76060a07ed594691dbacd7658425 /FS/FS/cust_class.pm | |
parent | 33013bb1ef0b5f07105fe13f5bfc06350fc4d868 (diff) |
add cust_class-tax_exempt conf setting to control the tax exemption flag per customer class rather than per indivual customer, RT#16818
Diffstat (limited to 'FS/FS/cust_class.pm')
-rw-r--r-- | FS/FS/cust_class.pm | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/FS/FS/cust_class.pm b/FS/FS/cust_class.pm index a811be7..7cbc9b8 100644 --- a/FS/FS/cust_class.pm +++ b/FS/FS/cust_class.pm @@ -44,6 +44,11 @@ Text name of this customer class Number of associated cust_category (see L<FS::cust_category>) +=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,6 +91,16 @@ 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. +=cut + +sub check { + my $self = shift; + + $self->ut_enum('tax', [ '', 'Y' ]) + || $self->SUPER::check; + +} + =item cust_category =item category |