[freeside-commits] branch FREESIDE_3_BRANCH updated. 489b07f487fc230e723618b9d1fe981cc8a620c2
Ivan Kohler
ivan at freeside.biz
Tue May 8 15:44:11 PDT 2018
The branch, FREESIDE_3_BRANCH has been updated
via 489b07f487fc230e723618b9d1fe981cc8a620c2 (commit)
from b85fa34c25e232ef469e80718d985cc04765332d (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 489b07f487fc230e723618b9d1fe981cc8a620c2
Author: Ivan Kohler <ivan at freeside.biz>
Date: Tue May 8 15:44:08 2018 -0700
show account services in address block list too, RT#79825
diff --git a/FS/FS/addr_block.pm b/FS/FS/addr_block.pm
index 7687334d7..b8486fe98 100755
--- a/FS/FS/addr_block.pm
+++ b/FS/FS/addr_block.pm
@@ -203,6 +203,18 @@ sub svc_broadband {
return qsearch('svc_broadband', { blocknum => $self->blocknum });
}
+=item svc_acct
+
+Returns a list of FS::svc_broadband objects associated
+with this object.
+
+=cut
+
+sub svc_acct {
+ my $self = shift;
+ return qsearch('svc_acct', { blocknum => $self->blocknum });
+}
+
=item NetAddr
Returns a NetAddr::IP object for this block's address and netmask.
-----------------------------------------------------------------------
Summary of changes:
FS/FS/addr_block.pm | 12 ++++++++++++
1 file changed, 12 insertions(+)
More information about the freeside-commits
mailing list