use strict;
use base qw( FS::otaker_Mixin FS::payinfo_Mixin FS::Record );
-use vars qw( @encrypted_fields );
+use vars qw( @encrypted_fields $otaker_upgrade_kludge );
use Business::CreditCard;
use FS::UID qw(getotaker);
use FS::Record qw(qsearchs dbh fields); # qsearch );
use FS::cust_pkg;
@encrypted_fields = ('payinfo');
+$otaker_upgrade_kludge = 0;
=head1 NAME
=cut
sub replace {
- return "Can't modify voided payments!";
+ return "Can't modify voided payments!" unless $otaker_upgrade_kludge;
+ shift->SUPER::replace(@_);
}
=item check
# Used by FS::Upgrade to migrate to a new database.
sub _upgrade_data { # class method
my ($class, %opts) = @_;
+ local($otaker_upgrade_kludge) = 1;
$class->_upgrade_otaker(%opts);
}