[freeside-commits] freeside/FS/FS cust_pkg_discount.pm,1.8,1.9
Ivan,,,
ivan at wavetail.420.am
Sun Oct 23 18:15:56 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv6443/FS/FS
Modified Files:
cust_pkg_discount.pm
Log Message:
fix discounts not appearing for one-time charge packages, RT#13654
Index: cust_pkg_discount.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg_discount.pm,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- cust_pkg_discount.pm 29 Apr 2011 12:10:16 -0000 1.8
+++ cust_pkg_discount.pm 24 Oct 2011 01:15:54 -0000 1.9
@@ -171,6 +171,9 @@
;
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;
+
$self->usernum($FS::CurrentUser::CurrentUser->usernum) unless $self->usernum;
$self->SUPER::check;
More information about the freeside-commits
mailing list