Add renewal percentage per group.

This commit is contained in:
Bradley M. Kuhn 2017-01-12 10:33:50 -08:00
parent 1a6fdd8f09
commit 1900575269

View file

@ -204,8 +204,8 @@ my $headerInfo = "$subject\n" . ("=" x length($subject)) .
( ($activeCounter{Annual} / ($totalSupporters - $lapsedCount)) * 100.00)) . ".\n\n";
foreach my $type (keys %lapsedCounter) {
$headerInfo .= sprintf("%7s: Lapsed Count: %3d Active Count: %3d\n",
$type, $lapsedCounter{$type}, $activeCounter{$type});
$headerInfo .= sprintf("%7s: Lapsed Count: %3d Active Count: %3d Percent of %7ss Lapsed: %2.2f%\n",
$type, $lapsedCounter{$type}, $activeCounter{$type}, ($lapsedCounter{$type} / $activeCounter{$type}) * 100.00);
}
$headerInfo .= "\n";
my $emailText .= $headerInfo;