[freeside-commits] branch FREESIDE_3_BRANCH updated. 720fde0db717507820acb6f1367e0428c61f3598
Ivan
ivan at 420.am
Fri Jun 21 12:58:34 PDT 2013
The branch, FREESIDE_3_BRANCH has been updated
via 720fde0db717507820acb6f1367e0428c61f3598 (commit)
from 5c45c12a64be3e67f8ba82b5a69cc08d5756cef2 (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 720fde0db717507820acb6f1367e0428c61f3598
Author: Ivan Kohler <ivan at freeside.biz>
Date: Fri Jun 21 12:58:33 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