X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fagent.pm;h=e40ef09dbf25d14855e6358a87810554fd7b5d8d;hb=a0732f52fdcc2bca7c399d1249ccceb191de51cd;hp=4158341e489009afe7a2c7d7035dad704550db8e;hpb=580330233cbf32c58d9f29dc391bd2ebd83e16d5;p=freeside.git diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 4158341e4..e40ef09db 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.