diff options
author | Mark Wells <mark@freeside.biz> | 2015-03-13 15:24:09 -0700 |
---|---|---|
committer | Mark Wells <mark@freeside.biz> | 2015-03-13 15:24:09 -0700 |
commit | ed741d82e6ef8b2c66985f6b54d5cb26e0a70acb (patch) | |
tree | c22fd88a977c369da77cfccb78172d747c49a56d /FS/FS/agent.pm | |
parent | 8e50b6f6fbaa9d732a371114c0dfc95c326cb890 (diff) |
restructure agent commission reporting, #23348
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r-- | FS/FS/agent.pm | 10 |
1 files changed, 10 insertions, 0 deletions
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 |