summaryrefslogtreecommitdiff
path: root/FS/FS/cust_pkg_discount.pm
diff options
context:
space:
mode:
authorivan <ivan>2011-11-22 04:31:58 +0000
committerivan <ivan>2011-11-22 04:31:58 +0000
commitbc217aee44661770c9c1c743ede8e7b7a906fafb (patch)
treecb9b907913d4e002ccfbbf7f574c1efb49f5a672 /FS/FS/cust_pkg_discount.pm
parent1837a607852ba3375b02d5f676f24279be655ead (diff)
fix incorrect error message: Discount does not apply to setup fees, and package has no recurring, RT#15257
Diffstat (limited to 'FS/FS/cust_pkg_discount.pm')
-rw-r--r--FS/FS/cust_pkg_discount.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/FS/FS/cust_pkg_discount.pm b/FS/FS/cust_pkg_discount.pm
index 72a1e9c..015b6e3 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;