summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-09-22 21:42:31 +0000
committerivan <ivan>2011-09-22 21:42:31 +0000
commit2413a3d43808ea6567bf25215d810bf102c498fd (patch)
tree5185a24654ef3c819fdadf630a47a48c6b95c455
parent62467552aeac89b995ccecdab1a6044d4f42f3e8 (diff)
random cleanups
-rw-r--r--FS/FS/cust_main_county.pm2
-rw-r--r--FS/FS/cust_pkg_reason.pm2
-rw-r--r--FS/FS/m2name_Common.pm4
-rw-r--r--FS/FS/option_Common.pm5
-rw-r--r--FS/FS/part_event.pm6
-rw-r--r--FS/FS/part_svc.pm2
-rw-r--r--FS/FS/reason_type.pm10
-rw-r--r--FS/FS/svc_www.pm18
8 files changed, 16 insertions, 33 deletions
diff --git a/FS/FS/cust_main_county.pm b/FS/FS/cust_main_county.pm
index e84fa98..effc428 100644
--- a/FS/FS/cust_main_county.pm
+++ b/FS/FS/cust_main_county.pm
@@ -328,7 +328,7 @@ sub taxline {
'taxnum' => $self->taxnum,
'year' => 1900+$year,
'month' => $mon,
- 'amount' => sprintf("%.2f", $addl ),
+ 'amount' => sprintf('%.2f', $addl ),
} );
if ($cust_bill_pkg->billpkgnum) {
$cust_tax_exempt_pkg->billpkgnum($cust_bill_pkg->billpkgnum);
diff --git a/FS/FS/cust_pkg_reason.pm b/FS/FS/cust_pkg_reason.pm
index 72a2319..719d6db 100644
--- a/FS/FS/cust_pkg_reason.pm
+++ b/FS/FS/cust_pkg_reason.pm
@@ -319,8 +319,6 @@ sub _upgrade_data { # class method
=head1 BUGS
-Here be termites. Don't use on wooden computers.
-
=head1 SEE ALSO
L<FS::Record>, schema.html from the base documentation.
diff --git a/FS/FS/m2name_Common.pm b/FS/FS/m2name_Common.pm
index e9dcee9..e08d5cb 100644
--- a/FS/FS/m2name_Common.pm
+++ b/FS/FS/m2name_Common.pm
@@ -16,9 +16,7 @@ FS::m2name_Common - Mixin class for tables with a related table listing names
=head1 SYNOPSIS
-use FS::m2name_Common;
-
-@ISA = qw( FS::m2name_Common FS::Record );
+ use base qw( FS::m2name_Common FS::Record );
=head1 DESCRIPTION
diff --git a/FS/FS/option_Common.pm b/FS/FS/option_Common.pm
index 26bb7ca..182356b 100644
--- a/FS/FS/option_Common.pm
+++ b/FS/FS/option_Common.pm
@@ -1,12 +1,11 @@
package FS::option_Common;
use strict;
-use vars qw( @ISA $DEBUG );
+use base qw( FS::Record );
+use vars qw( $DEBUG );
use Scalar::Util qw( blessed );
use FS::Record qw( qsearch qsearchs dbh );
-@ISA = qw( FS::Record );
-
$DEBUG = 0;
=head1 NAME
diff --git a/FS/FS/part_event.pm b/FS/FS/part_event.pm
index 8d1e7b0..dfbb6a5 100644
--- a/FS/FS/part_event.pm
+++ b/FS/FS/part_event.pm
@@ -1,18 +1,16 @@
package FS::part_event;
use strict;
-use vars qw( @ISA $DEBUG );
+use base qw( FS::m2name_Common FS::option_Common );
+use vars qw( $DEBUG );
use Carp qw(confess);
use FS::Record qw( dbh qsearch qsearchs );
-use FS::option_Common;
-use FS::m2name_Common;
use FS::Conf;
use FS::part_event_option;
use FS::part_event_condition;
use FS::cust_event;
use FS::agent;
-@ISA = qw( FS::m2name_Common FS::option_Common ); # FS::Record );
$DEBUG = 0;
=head1 NAME
diff --git a/FS/FS/part_svc.pm b/FS/FS/part_svc.pm
index 1306d41..4d56fee 100644
--- a/FS/FS/part_svc.pm
+++ b/FS/FS/part_svc.pm
@@ -82,7 +82,7 @@ the part_svc_column table appropriately (see L<FS::part_svc_column>).
=item I<svcdb>__I<field> - Default or fixed value for I<field> in I<svcdb>.
-=item I<svcdb>__I<field>_flag - defines I<svcdb>__I<field> action: null or empty (no default), `D' for default, `F' for fixed (unchangeable), `M' for manual selection from inventory, or `A' for automatic selection from inventory.
+=item I<svcdb>__I<field>_flag - defines I<svcdb>__I<field> action: null or empty (no default), `D' for default, `F' for fixed (unchangeable), , `S' for selectable choice, `M' for manual selection from inventory, or `A' for automatic selection from inventory. For virtual fields, can also be 'X' for excluded.
=back
diff --git a/FS/FS/reason_type.pm b/FS/FS/reason_type.pm
index 4425c64..a603809 100644
--- a/FS/FS/reason_type.pm
+++ b/FS/FS/reason_type.pm
@@ -131,12 +131,7 @@ sub enabled_reasons {
} );
}
-# _populate_initial_data
-#
# Used by FS::Setup to initialize a new database.
-#
-#
-
sub _populate_initial_data { # class method
my ($self, %opts) = @_;
@@ -169,12 +164,7 @@ sub _populate_initial_data { # class method
}
-# _upgrade_data
-#
# Used by FS::Upgrade to migrate to a new database.
-#
-#
-
sub _upgrade_data { # class method
my ($self, %opts) = @_;
diff --git a/FS/FS/svc_www.pm b/FS/FS/svc_www.pm
index 7e02d81..19f2700 100644
--- a/FS/FS/svc_www.pm
+++ b/FS/FS/svc_www.pm
@@ -163,15 +163,15 @@ returns the error, otherwise returns false.
=cut
-sub replace {
- my ( $new, $old ) = ( shift, shift );
- my $error;
-
- $error = $new->SUPER::replace($old, @_);
- return $error if $error;
-
- '';
-}
+#sub replace {
+# my ( $new, $old ) = ( shift, shift );
+# my $error;
+#
+# $error = $new->SUPER::replace($old, @_);
+# return $error if $error;
+#
+# '';
+#}
=item suspend