X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_event%2FAction%2Fpkg_agent_credit.pm;h=65f8c27d66250d639b18fce30625ca3e4eb7e2bd;hb=ac038da87ce36f915baa38d75c028efe618d4f85;hp=494c40e3f38e02cf47055ed72417c571136c8f2c;hpb=41592b95d0f43281a84db45e2aea24c708a96f76;p=freeside.git diff --git a/FS/FS/part_event/Action/pkg_agent_credit.pm b/FS/FS/part_event/Action/pkg_agent_credit.pm index 494c40e3f..65f8c27d6 100644 --- a/FS/FS/part_event/Action/pkg_agent_credit.pm +++ b/FS/FS/part_event/Action/pkg_agent_credit.pm @@ -1,7 +1,8 @@ package FS::part_event::Action::pkg_agent_credit; use strict; -use base qw( FS::part_event::Action::pkg_referral_credit ); +use base qw( FS::part_event::Action::Mixin::credit_flat + FS::part_event::Action ); sub description { 'Credit the agent a specific amount'; } @@ -18,7 +19,7 @@ sub do_action { my $agent_cust_main = $agent->agent_cust_main; #? or return "No customer record for agent ". $agent->agent; - my $amount = $self->_calc_credit($cust_pkg); + my $amount = $self->_calc_credit($cust_pkg, $agent); return '' unless $amount > 0; my $reasonnum = $self->option('reasonnum');