agent-virtualize credit card surcharge percentage, RT#72961
[freeside.git] / FS / FS / router.pm
index 4011bb0..c0c93dd 100755 (executable)
@@ -200,6 +200,13 @@ sub delete {
 Returns a list of FS::addr_block objects (address blocks) associated
 with this object.
 
+=cut
+
+sub addr_block {
+  my $self = shift;
+  qsearch('addr_block', { routernum => $self->routernum });
+}
+
 =item auto_addr_block
 
 Returns a list of address blocks on which auto-assignment of IP addresses