X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg_discount.pm;h=a20794027c9dd0e516bc14ed02a7528b075a784c;hb=ee48f55cdc11b2573f66234b6077d4c2c6ceb4d0;hp=015b6e38806a8193b9cc46716f89683000fa1f55;hpb=bc217aee44661770c9c1c743ede8e7b7a906fafb;p=freeside.git diff --git a/FS/FS/cust_pkg_discount.pm b/FS/FS/cust_pkg_discount.pm index 015b6e388..a20794027 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;