summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2001-08-23 06:17:03 +0000
committerivan <ivan>2001-08-23 06:17:03 +0000
commit5a45d24c6015145d0592a947ae1b1e51de81e1d0 (patch)
treea1bb9d7634f9c728c555162197342670a8a6bbae
parent06d6c58f29564e0cbf92c6df01c7c0409a5c3097 (diff)
no need to be y1.9k complient
-rw-r--r--FS/FS/cust_main.pm25
1 files changed, 21 insertions, 4 deletions
diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm
index 3084b9058..23cae96ac 100644
--- a/FS/FS/cust_main.pm
+++ b/FS/FS/cust_main.pm
@@ -17,7 +17,7 @@ use Mail::Internet;
use Mail::Header;
use Business::CreditCard;
use FS::UID qw( getotaker dbh );
-use FS::Record qw( qsearchs qsearch );
+use FS::Record qw( qsearchs qsearch dbdef );
use FS::cust_pkg;
use FS::cust_bill;
use FS::cust_bill_pkg;
@@ -645,8 +645,6 @@ sub check {
or return "Illegal expiration date: ". $self->paydate;
if ( length($2) == 4 ) {
$self->paydate("$2-$1-01");
- } elsif ( $2 > 97 ) { #should pry change to check for "this year"
- $self->paydate("19$2-$1-01");
} else {
$self->paydate("20$2-$1-01");
}
@@ -1346,9 +1344,28 @@ sub check_invoicing_list {
=back
+=head1 SUBROUTINES
+
+=over 4
+
+=item rebuild_fuzzyfile
+
+=cut
+
+sub rebuild_fuzzyfiles {
+ my @all_last = map $_->getfield('last'), qsearch('cust_main', {});
+ push @all_last,
+ grep $_, map $_->getfield('ship_last'), qsearch('cust_main',{})
+ if defined dbdef->table('cust_main')->column('ship_last');
+# open(
+
+}
+
+=back
+
=head1 VERSION
-$Id: cust_main.pm,v 1.19 2001-08-19 00:48:49 ivan Exp $
+$Id: cust_main.pm,v 1.20 2001-08-23 06:17:03 ivan Exp $
=head1 BUGS