From ced1501eab63e958587787765427ad1fbc2d7354 Mon Sep 17 00:00:00 2001 From: "Bradley M. Kuhn" Date: Thu, 26 May 2016 13:29:00 -0700 Subject: [PATCH] On second thought, nine months. --- scripts/find-already-renewed.plx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/find-already-renewed.plx b/scripts/find-already-renewed.plx index 82fe837..087098b 100755 --- a/scripts/find-already-renewed.plx +++ b/scripts/find-already-renewed.plx @@ -35,11 +35,11 @@ foreach my $id (@supporterIds) { my $amount = $sp->donorTotalGaveInPeriod(donorId => $id); my $lastGaveDate = $sp->donorLastGave($id); my $firstGaveDate = $sp->donorFirstGave($id); - my $oneYearSinceFirstGave = UnixDate(DateCalc(ParseDate($firstGaveDate), "+ 1 year"), '%Y-%m-%d'); + my $nineMonthsSinceFirstGave = UnixDate(DateCalc(ParseDate($firstGaveDate), "+ 9 months"), '%Y-%m-%d'); if ($amount > 180.00 and $lastGaveDate ne $firstGaveDate and $firstGaveDate le $ONE_YEAR_AGO and - $lastGaveDate ge $oneYearSinceFirstGave ) { + $lastGaveDate ge $nineMonthsSinceFirstGave ) { my $ledgerEntityId = $sp->getLedgerEntityId($id); my $type = $sp->{ledgerData}{$ledgerEntityId}{__TYPE__}; my $shirt1 = $sp->getRequest({ donorId => $id, requestType => 't-shirt-1' });