sub replace {
my( $new, $old ) = ( shift, shift );
- return "Can't change custnum!" unless $old->custnum eq $new->custnum;
- return "Can't change _date!" unless $old->_date eq $new->_date;
- return "Can't change charged!" unless $old->charged eq $new->charged;
+ return "Can't change custnum!" unless $old->custnum == $new->custnum;
+ #return "Can't change _date!" unless $old->_date eq $new->_date;
+ return "Can't change _date!" unless $old->_date == $new->_date;
+ return "Can't change charged!" unless $old->charged == $new->charged;
return "(New) owed can't be > (new) charged!" if $new->owed > $new->charged;
$new->SUPER::replace($old);
=head1 VERSION
-$Id: cust_bill.pm,v 1.4 1998-12-29 11:59:36 ivan Exp $
+$Id: cust_bill.pm,v 1.5 1999-01-18 21:58:03 ivan Exp $
=head1 BUGS
pod, ingegrate with FS::Invoice ivan@sisd.com 98-sep-20
$Log: cust_bill.pm,v $
-Revision 1.4 1998-12-29 11:59:36 ivan
+Revision 1.5 1999-01-18 21:58:03 ivan
+esthetic: eq and ne were used in a few places instead of == and !=
+
+Revision 1.4 1998/12/29 11:59:36 ivan
mostly properly OO, some work still to be done with svc_ stuff
Revision 1.3 1998/11/13 09:56:53 ivan
sub replace {
my ( $new, $old ) = ( shift, shift );
- return "Can't change custnum!" unless $old->custnum eq $new->custnum;
- return "Can't change date!" unless $old->_date eq $new->_date;
- return "Can't change amount!" unless $old->amount eq $new->amount;
+ return "Can't change custnum!" unless $old->custnum == $new->custnum;
+ #return "Can't change date!" unless $old->_date eq $new->_date;
+ return "Can't change date!" unless $old->_date == $new->_date;
+ return "Can't change amount!" unless $old->amount == $new->amount;
return "(New) credited can't be > (new) amount!"
if $new->credited > $new->amount;
=head1 VERSION
-$Id: cust_credit.pm,v 1.2 1998-12-29 11:59:38 ivan Exp $
+$Id: cust_credit.pm,v 1.3 1999-01-18 21:58:04 ivan Exp $
=head1 BUGS
pod, otaker from FS::UID ivan@sisd.com 98-sep-21
$Log: cust_credit.pm,v $
-Revision 1.2 1998-12-29 11:59:38 ivan
+Revision 1.3 1999-01-18 21:58:04 ivan
+esthetic: eq and ne were used in a few places instead of == and !=
+
+Revision 1.2 1998/12/29 11:59:38 ivan
mostly properly OO, some work still to be done with svc_ stuff
sub replace {
my ( $new, $old ) = ( shift, shift );
- return "Can't change custnum!" unless $old->custnum eq $new->custnum;
+ return "Can't change custnum!" unless $old->custnum == $new->custnum;
$new->SUPER::replace;
}
=head1 VERSION
-$Id: cust_main_invoice.pm,v 1.4 1999-01-18 09:22:42 ivan Exp $
+$Id: cust_main_invoice.pm,v 1.5 1999-01-18 21:58:05 ivan Exp $
=head1 BUGS
ivan@sisd.com 97-nov-13
$Log: cust_main_invoice.pm,v $
-Revision 1.4 1999-01-18 09:22:42 ivan
+Revision 1.5 1999-01-18 21:58:05 ivan
+esthetic: eq and ne were used in a few places instead of == and !=
+
+Revision 1.4 1999/01/18 09:22:42 ivan
changes to track email addresses for email invoicing
Revision 1.3 1998/12/29 11:59:42 ivan
sub replace {
my( $new, $old ) = ( shift, shift );
- #return "Can't (yet?) change pkgpart!" if $old->pkgpart ne $new->pkgpart;
+ #return "Can't (yet?) change pkgpart!" if $old->pkgpart != $new->pkgpart;
return "Can't change otaker!" if $old->otaker ne $new->otaker;
return "Can't change setup once it exists!"
if $old->getfield('setup') &&
=head1 VERSION
-$Id: cust_pkg.pm,v 1.4 1998-12-29 11:59:45 ivan Exp $
+$Id: cust_pkg.pm,v 1.5 1999-01-18 21:58:07 ivan Exp $
=head1 BUGS
pod ivan@sisd.com 98-sep-21
$Log: cust_pkg.pm,v $
-Revision 1.4 1998-12-29 11:59:45 ivan
+Revision 1.5 1999-01-18 21:58:07 ivan
+esthetic: eq and ne were used in a few places instead of == and !=
+
+Revision 1.4 1998/12/29 11:59:45 ivan
mostly properly OO, some work still to be done with svc_ stuff
Revision 1.3 1998/11/15 13:01:35 ivan
sub replace {
my ( $new, $old ) = ( shift, shift );
- return "Can't change pkgpart!" if $old->pkgpart ne $new->pkgpart;
- return "Can't change svcpart!" if $old->svcpart ne $new->svcpart;
+ return "Can't change pkgpart!" if $old->pkgpart != $new->pkgpart;
+ return "Can't change svcpart!" if $old->svcpart != $new->svcpart;
$new->SUPER::replace($old);
}
=head1 VERSION
-$Id: pkg_svc.pm,v 1.2 1998-12-29 11:59:51 ivan Exp $
+$Id: pkg_svc.pm,v 1.3 1999-01-18 21:58:08 ivan Exp $
=head1 BUGS
pod ivan@sisd.com 98-sep-22
$Log: pkg_svc.pm,v $
-Revision 1.2 1998-12-29 11:59:51 ivan
+Revision 1.3 1999-01-18 21:58:08 ivan
+esthetic: eq and ne were used in a few places instead of == and !=
+
+Revision 1.2 1998/12/29 11:59:51 ivan
mostly properly OO, some work still to be done with svc_ stuff
if $old->username ne $new->username &&
qsearchs( 'svc_acct', { 'username' => $new->username } );
- return "Can't change uid!" if $old->uid ne $new->uid;
+ return "Can't change uid!" if $old->uid != $new->uid;
#change homdir when we change username
$new->setfield('dir', '') if $old->username ne $new->username;
=head1 VERSION
-$Id: svc_acct.pm,v 1.4 1998-12-30 00:30:45 ivan Exp $
+$Id: svc_acct.pm,v 1.5 1999-01-18 21:58:09 ivan Exp $
=head1 BUGS
pod and FS::conf ivan@sisd.com 98-sep-22
$Log: svc_acct.pm,v $
-Revision 1.4 1998-12-30 00:30:45 ivan
+Revision 1.5 1999-01-18 21:58:09 ivan
+esthetic: eq and ne were used in a few places instead of == and !=
+
+Revision 1.4 1998/12/30 00:30:45 ivan
svc_ stuff is more properly OO - has a common superclass FS::svc_Common
Revision 1.2 1998/11/13 09:56:55 ivan
return "Domain username (domuser) in use for this domain (domsvc)"
if ( $old->domuser ne $new->domuser
- || $old->domsvc ne $new->domsvc
+ || $old->domsvc != $new->domsvc
) && qsearchs('svc_acct_sm',{
'domuser'=> $new->domuser,
'domsvc' => $new->domsvc,
=head1 VERSION
-$Id: svc_acct_sm.pm,v 1.4 1998-12-30 00:30:46 ivan Exp $
+$Id: svc_acct_sm.pm,v 1.5 1999-01-18 21:58:10 ivan Exp $
=head1 BUGS