delete fees, RT#81713
[freeside.git] / FS / FS / svc_circuit.pm
index e90bce5..7f2ef80 100644 (file)
@@ -75,7 +75,7 @@ space or checked for uniqueness.
 
 =item endpoint_mac_addr - the MAC address of the endpoint.
 
-=item internal_circuit_id - internal circuit ID string defined by the provider
+=item internal_circuit_id - internal circuit ID string
 
 =back
 
@@ -201,6 +201,7 @@ sub check {
     || $self->ut_textn('vendor_order_status')
     || $self->ut_ipn('endpoint_ip_addr')
     || $self->ut_textn('endpoint_mac_addr')
+    || $self->ut_textn('internal_circuit_id')
   ;
 
   # no canonical values yet for vendor_order_status or _type
@@ -235,6 +236,17 @@ sub search_sql_addl_from {
   'LEFT JOIN circuit_type USING ( typenum )';
 }
 
+sub _upgrade_data {
+
+  require FS::Misc::FixIPFormat;
+  FS::Misc::FixIPFormat::fix_bad_addresses_in_table(
+      'svc_circuit', 'svcnum', 'endpoint_ip_addr',
+  );
+
+  '';
+
+}
+
 =back
 
 =head1 SEE ALSO
@@ -244,4 +256,3 @@ L<FS::Record>
 =cut
 
 1;
-