Join GitHub today
fix(exports): remove the restriction of when the form is created from the PDF receipt export in Core #3395
The current implementation is confusing. If a form was created in 2016, and has donations on it yesterday, I would expect those donations to be included in the PDF.
Currently the only forms included in the query are ones created this year: https://github.com/WordImpress/Give/blob/master/includes/admin/tools/export/pdf-reports.php#L119
I expect the form creation date to not factor in, instead to only count donations that can in this year for that PDF.
Remove the check for the year created on the form, or clarify the language on the export page.
Steps to Reproduce
I would expect, from the wording there, for the donations made to the old form within this year to be exported, but the older ones to be excluded.