summaryrefslogtreecommitdiff
path: root/FS/FS/agent.pm
diff options
context:
space:
mode:
authorIvan Kohler <ivan@freeside.biz>2014-06-23 15:39:34 -0700
committerIvan Kohler <ivan@freeside.biz>2014-06-23 15:39:34 -0700
commit7e2ab49f83c119aeeaf7142e369b93bef9fdafd0 (patch)
tree9d9690642b6e9ab2d2d4a2d9af4bce8e1bd0d965 /FS/FS/agent.pm
parent3cd31aafeee3516bbea80e4b426dd1f3282bacf6 (diff)
option to disable customer/package counts on agent browser, RT#29748
Diffstat (limited to 'FS/FS/agent.pm')
-rw-r--r--FS/FS/agent.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/FS/FS/agent.pm b/FS/FS/agent.pm
index 7217499..2c06a05 100644
--- a/FS/FS/agent.pm
+++ b/FS/FS/agent.pm
@@ -618,6 +618,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