[freeside-commits] branch master updated. 81451a5988a5985a26101e2bb469679888c53e8f

Ivan ivan at 420.am
Fri Jun 21 12:58:32 PDT 2013


The branch, master has been updated
       via  81451a5988a5985a26101e2bb469679888c53e8f (commit)
      from  59ca3e541bcc1ffe75d0ad70c410f30e35bcf90b (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 81451a5988a5985a26101e2bb469679888c53e8f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Fri Jun 21 12:58:32 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