projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
RT# 83122 Update method to merge dupe tax records
[freeside.git]
/
FS
/
FS
/
svc_broadband.pm
diff --git
a/FS/FS/svc_broadband.pm
b/FS/FS/svc_broadband.pm
index
583030e
..
d05ae72
100755
(executable)
--- a/
FS/FS/svc_broadband.pm
+++ b/
FS/FS/svc_broadband.pm
@@
-96,6
+96,8
@@
points to. You can ask the object for a copy with the I<hash> method.
=cut
sub table_info {
=cut
sub table_info {
+ my $conf = new FS::Conf;
+ my $ip_addr_required = $conf->exists('svc_broadband-allow_null_ip_addr') ? '' : '1';
{
'name' => 'Wireless broadband',
'name_plural' => 'Wireless broadband services',
{
'name' => 'Wireless broadband',
'name_plural' => 'Wireless broadband services',
@@
-117,7
+119,10
@@
sub table_info {
'type' => 'fcc_477_speed',
'def_info' => 'both upload and download speed must be set to FCC 477 information if using that modifier',
},
'type' => 'fcc_477_speed',
'def_info' => 'both upload and download speed must be set to FCC 477 information if using that modifier',
},
- 'ip_addr' => 'IP address',
+ 'ip_addr' => {
+ 'label' => 'IP address',
+ 'required' => $ip_addr_required,
+ },
'blocknum' => {
'label' => 'Address block',
'type' => 'select',
'blocknum' => {
'label' => 'Address block',
'type' => 'select',
@@
-515,6
+520,11
@@
sub _upgrade_data {
#next SVC;
}
#next SVC;
}
+ require FS::Misc::FixIPFormat;
+ FS::Misc::FixIPFormat::fix_bad_addresses_in_table(
+ 'svc_broadband', 'svcnum', 'ip_addr',
+ );
+
'';
}
'';
}