A few changes that I had yet to commit.
This commit is contained in:
parent
0333ea45fa
commit
9733aff0f3
1 changed files with 23 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue