From a0460d90ee5bdbb6a4df992c6480a238edd68bd6 Mon Sep 17 00:00:00 2001 From: ivan Date: Tue, 22 Nov 2011 04:31:59 +0000 Subject: [PATCH] fix incorrect error message: Discount does not apply to setup fees, and package has no recurring, RT#15257 --- FS/FS/cust_pkg_discount.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.11.0