projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sales commission events on invoices, #25847
[freeside.git]
/
FS
/
FS
/
part_event
/
Action
/
pkg_agent_credit.pm
diff --git
a/FS/FS/part_event/Action/pkg_agent_credit.pm
b/FS/FS/part_event/Action/pkg_agent_credit.pm
index
494c40e
..
65f8c27
100644
(file)
--- 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;
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'; }
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 $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');
return '' unless $amount > 0;
my $reasonnum = $self->option('reasonnum');