projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
1837a60
)
fix incorrect error message: Discount does not apply to setup fees, and package has...
author
ivan
<ivan>
Tue, 22 Nov 2011 04:31:58 +0000
(
04:31
+0000)
committer
ivan
<ivan>
Tue, 22 Nov 2011 04:31:58 +0000
(
04:31
+0000)
FS/FS/cust_pkg_discount.pm
patch
|
blob
|
history
diff --git
a/FS/FS/cust_pkg_discount.pm
b/FS/FS/cust_pkg_discount.pm
index
72a1e9c
..
015b6e3
100644
(file)
--- 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;