From ed741d82e6ef8b2c66985f6b54d5cb26e0a70acb Mon Sep 17 00:00:00 2001 From: Mark Wells Date: Fri, 13 Mar 2015 15:24:09 -0700 Subject: restructure agent commission reporting, #23348 --- FS/FS/agent.pm | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'FS/FS/agent.pm') diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 2c06a05..a3489f0 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -731,6 +731,16 @@ sub num_sales { $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 -- cgit v1.1