projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow sending email to specific contact classes, #33316
[freeside.git]
/
FS
/
FS
/
agent.pm
diff --git
a/FS/FS/agent.pm
b/FS/FS/agent.pm
index
2c06a05
..
4ad878d
100644
(file)
--- a/
FS/FS/agent.pm
+++ b/
FS/FS/agent.pm
@@
-1,5
+1,5
@@
package FS::agent;
package FS::agent;
-use base qw( FS::m2m_Common FS::m2name_Common FS::Record );
+use base qw( FS::
Commission_Mixin FS::
m2m_Common FS::m2name_Common FS::Record );
use strict;
use vars qw( @ISA );
use strict;
use vars qw( @ISA );
@@
-731,6
+731,16
@@
sub num_sales {
$sth->fetchrow_arrayref->[0];
}
$sth->fetchrow_arrayref->[0];
}
+sub commission_where {
+ my $self = shift;
+ 'cust_credit.commission_agentnum = ' . $self->agentnum;
+}
+
+sub sales_where {
+ my $self = shift;
+ 'cust_main.agentnum = ' . $self->agentnum;
+}
+
=back
=head1 BUGS
=back
=head1 BUGS