[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 8bb40a34c7da1664e451521bea975192b29d497c
Ivan
ivan at 420.am
Fri Jun 21 12:58:36 PDT 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 8bb40a34c7da1664e451521bea975192b29d497c (commit)
from 28de2695cb889d0dc3d1b3425582f069643edcd9 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 8bb40a34c7da1664e451521bea975192b29d497c
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Jun 21 12:58:35 2013 -0700
fix per-package class agent commission percentages, RT#23066
diff --git a/FS/FS/part_event/Action/Mixin/credit_agent_pkg_class.pm b/FS/FS/part_event/Action/Mixin/credit_agent_pkg_class.pm
index 33aeadd..cb61f1b 100644
--- a/FS/FS/part_event/Action/Mixin/credit_agent_pkg_class.pm
+++ b/FS/FS/part_event/Action/Mixin/credit_agent_pkg_class.pm
@@ -16,7 +16,7 @@ sub _calc_credit_percent {
my $agent_pkg_class = qsearchs( 'agent_pkg_class', {
'agentnum' => $self->cust_main($cust_pkg)->agentnum,
- 'classnum' => $cust_pkg->classnum,
+ 'classnum' => $cust_pkg->part_pkg->classnum,
});
$agent_pkg_class ? $agent_pkg_class->commission_percent : 0;
-----------------------------------------------------------------------
Summary of changes:
.../Action/Mixin/credit_agent_pkg_class.pm | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
More information about the freeside-commits
mailing list