X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=FS%2FFS%2Fcust_pkg_discount.pm;h=015b6e38806a8193b9cc46716f89683000fa1f55;hp=72a1e9c92eae068a0d3e3658730d0e1335df4cde;hb=a0460d90ee5bdbb6a4df992c6480a238edd68bd6;hpb=5af515ac6bdc6ff88860c618207660eac48c276a diff --git a/FS/FS/cust_pkg_discount.pm b/FS/FS/cust_pkg_discount.pm index 72a1e9c92..015b6e388 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->freq; + if ! $self->discount->setup && ! $self->cust_pkg->part_pkg->freq; $self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum;