diff options
Diffstat (limited to 'FS/FS/cust_pkg_discount.pm')
-rw-r--r-- | FS/FS/cust_pkg_discount.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg_discount.pm b/FS/FS/cust_pkg_discount.pm index 015b6e3..a207940 100644 --- a/FS/FS/cust_pkg_discount.pm +++ b/FS/FS/cust_pkg_discount.pm @@ -172,7 +172,7 @@ sub check { return $error if $error; return "Discount does not apply to setup fees, and package has no recurring" - if ! $self->discount->setup && ! $self->cust_pkg->part_pkg->freq; + if ! $self->discount->setup && $self->cust_pkg->part_pkg->freq =~ /^0/; $self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum; |