A few changes that I had yet to commit.

This commit is contained in:
Bradley M. Kuhn 2016-12-07 17:07:43 -08:00
parent 0333ea45fa
commit 9733aff0f3

View file

@ -1497,6 +1497,29 @@ sub donorTotalGaveInPeriod($$) {
}
return $amount;
}
######################################################################
=begin getType
FIXME DOCS
=cut
sub getType ($$) {
my($self, $donorId) = @_;
confess "donorFirstGave: donorId, \"$donorId\" not found in supporter database"
unless $self->_verifyId($donorId);
return undef unless $self->isSupporter($donorId);
$self->_readLedgerData() if not defined $self->{ledgerData};
my $entityId = $self->getLedgerEntityId($donorId);
return undef unless defined $self->{ledgerData}{$entityId};
return $self->{ledgerData}{$entityId}{__TYPE__};
}
######################################################################
=begin supporterExpirationDate