Support amounts.
This commit is contained in:
parent
51d0db3fab
commit
84a73aa0f6
1 changed files with 6 additions and 1 deletions
|
@ -37,9 +37,14 @@ close EMAIL;
|
||||||
|
|
||||||
my(@supporterIds) = $sp->findDonor({});
|
my(@supporterIds) = $sp->findDonor({});
|
||||||
foreach my $id (@supporterIds) {
|
foreach my $id (@supporterIds) {
|
||||||
|
my $donorType = $self->getType($id);
|
||||||
my $expiresOn = $sp->supporterExpirationDate($id);
|
my $expiresOn = $sp->supporterExpirationDate($id);
|
||||||
my $isLapsed = ( (not defined $expiresOn) or $expiresOn lt $TODAY);
|
my $isLapsed = ( (not defined $expiresOn) or $expiresOn lt $TODAY);
|
||||||
# next unless $expiresOn lt "2017-02-01";
|
|
||||||
|
my $amount = $sp->donorTotalGaveInPeriod(donorId => $id);
|
||||||
|
my $lastGaveDate = $sp->donorLastGave($id);
|
||||||
|
my $firstGaveDate = $sp->donorFirstGave($id);
|
||||||
|
my $nineMonthsSinceFirstGave = UnixDate(DateCalc(ParseDate($firstGaveDate), "+ 9 months"), '%Y-%m-%d');
|
||||||
|
|
||||||
|
|
||||||
# invalid email address
|
# invalid email address
|
||||||
|
|
Loading…
Reference in a new issue