diff options
author | ivan <ivan> | 2006-07-16 00:55:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2006-07-16 00:55:06 +0000 |
commit | 580330233cbf32c58d9f29dc391bd2ebd83e16d5 (patch) | |
tree | 117d21cbaa15b43193432588516ad978254da167 /FS/FS/agent.pm | |
parent | 11f98403d0c7bf158ad0f71120e15c0bdf3d792c (diff) |
odds and ends
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r-- | FS/FS/agent.pm | 25 |
1 files changed, 24 insertions, 1 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 849dafa..4158341 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -221,7 +221,8 @@ sub cust_main_sql { =item num_active_cust_main -Returns the number of active customers for this agent. +Returns the number of active customers for this agent (customers with active +recurring packages). =cut @@ -239,6 +240,28 @@ sub active_cust_main { shift->cust_main_sql(FS::cust_main->active_sql); } +=item num_inactive_cust_main + +Returns the number of inactive customers for this agent (customers with no +active recurring packages, but otherwise unsuspended/uncancelled). + +=cut + +sub num_inactive_cust_main { + shift->num_sql(FS::cust_main->inactive_sql); +} + +=item inactive_cust_main + +Returns the inactive customers for this agent, as cust_main objects. + +=cut + +sub inactive_cust_main { + shift->cust_main_sql(FS::cust_main->inactive_sql); +} + + =item num_susp_cust_main Returns the number of suspended customers for this agent. |