X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fagent.pm;h=e7fb3fba258790e71d479f4721dae6d1880384d2;hb=682b3ae3a8f6a3c500ebb770c797df19d62ea305;hp=1dd6796cbd710988044abd9f55f0012ab19a109f;hpb=8de8d7f1a7c7049698cd12a13bd9f9680fbfa5ae;p=freeside.git diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm index 1dd6796cb..e7fb3fba2 100644 --- a/FS/FS/agent.pm +++ b/FS/FS/agent.pm @@ -609,6 +609,28 @@ sub num_cancel_cust_pkg { shift->num_pkg_sql(FS::cust_pkg->cancel_sql); } +=item num_on_hold_cust_pkg + +Returns the number of inactive customer packages (one-time packages otherwise +unsuspended/uncancelled) for this agent. + +=cut + +sub num_on_hold_cust_pkg { + shift->num_pkg_sql(FS::cust_pkg->on_hold_sql); +} + +=item num_not_yet_billed_cust_pkg + +Returns the number of inactive customer packages (one-time packages otherwise +unsuspended/uncancelled) for this agent. + +=cut + +sub num_not_yet_billed_cust_pkg { + shift->num_pkg_sql(FS::cust_pkg->not_yet_billed_sql); +} + =item generate_reg_codes NUM PKGPART_ARRAYREF Generates the specified number of registration codes, allowing purchase of the