projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
dangling cust_credit_refund not allowed
[freeside.git]
/
FS
/
FS
/
agent.pm
diff --git
a/FS/FS/agent.pm
b/FS/FS/agent.pm
index
4158341
..
e40ef09
100644
(file)
--- a/
FS/FS/agent.pm
+++ b/
FS/FS/agent.pm
@@
-322,6
+322,17
@@
sub num_pkg_sql {
$sth->fetchrow_arrayref->[0];
}
$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.
=item num_susp_cust_pkg
Returns the number of suspended customer packages for this agent.