CRM-20513 Fix recur status update & et next recur date based on payment date not...
authoreileen <emcnaughton@wikimedia.org>
Tue, 27 Sep 2016 02:37:36 +0000 (15:37 +1300)
committereileen <emcnaughton@wikimedia.org>
Wed, 3 May 2017 07:57:28 +0000 (19:57 +1200)
commit050e11d5aa17aa4fb9e5395389fa0de55155adbd
treeb92aea942b345b33844233cbf63d1d48faaaeb01
parent6ec0cd794c1264a26bbb50e981cfd08fca95fb7c
CRM-20513 Fix recur status update & et next recur date based on payment date not current date.

The code to set a recurring sequence to Completed when all contributions received turned out
to be flawed. This fixes that.

This commit extends the test on how dates are being extended. I didn't replicate the problem
I was expecting to see but it makes sense that recurring transactions could be imported on
a different day to the current one and that date is the important one
CRM/Contribute/BAO/Contribution.php
CRM/Contribute/BAO/ContributionRecur.php
tests/phpunit/api/v3/ContributionTest.php