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 =~ /^0/;
$self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum;