diff options
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r-- | FS/FS/agent.pm | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 4158341..e40ef09 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -322,6 +322,17 @@ sub num_pkg_sql { $sth->fetchrow_arrayref->[0]; } +=item num_inactive_cust_pkg + +Returns the number of inactive customer packages (one-time packages otherwise +unsuspended/uncancelled) for this agent. + +=cut + +sub num_inactive_cust_pkg { + shift->num_pkg_sql(FS::cust_pkg->inactive_sql); +} + =item num_susp_cust_pkg Returns the number of suspended customer packages for this agent. |