summaryrefslogtreecommitdiff
path: root/FS/FS/agent.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-02-11 22:44:26 -0800
committerIvan Kohler <ivan@freeside.biz>2014-02-11 22:44:26 -0800
commit86c592adf680559e167f0aed340038fa57df5922 (patch)
treed960b864d486406117eb263ecb66d19b3e1b032e /FS/FS/agent.pm
parent7607fb401f8b1ea93b7542da24c9dfce52c97466 (diff)
fix redefinition warning and add ordered_cust_main sub for completeness, RT#27442
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r--FS/FS/agent.pm9
1 files changed, 5 insertions, 4 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm
index 0fdc5f5..796a160 100644
--- a/FS/FS/agent.pm
+++ b/FS/FS/agent.pm
@@ -430,14 +430,15 @@ sub num_ordered_cust_main {
shift->num_sql(FS::cust_main->ordered_sql);
}
-=item active_cust_main
+=item ordered_cust_main
-Returns the active customers for this agent, as cust_main objects.
+Returns the ordered customers for this agent (customers with packages ordered,
+but not yet billed), as cust_main objects.
=cut
-sub active_cust_main {
- shift->cust_main_sql(FS::cust_main->active_sql);
+sub ordered_cust_main {
+ shift->cust_main_sql(FS::cust_main->ordered_sql);
}