X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg_discount.pm;h=a20794027c9dd0e516bc14ed02a7528b075a784c;hb=573139dbd6c37808697bfa72a3a468bb0980d4dd;hp=015b6e38806a8193b9cc46716f89683000fa1f55;hpb=a0460d90ee5bdbb6a4df992c6480a238edd68bd6;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;