impress-org / givewp-test-data

GiveWP add-on used for generating test data
GNU General Public License v3.0
1 stars 1 forks source link

Support to set the donation start date is not implemented #16

Closed alaca closed 3 years ago

alaca commented 3 years ago

Resolves #15 Please review #14 first to avoid merge conflicts

Description

This PR adds support to set the donation start date when generating donations. Currently, the donation date is randomly generated for the current year. Instead of a random date, this PR adds an option to set the "start date" which will be the earliest donations date. The donation dates will still be randomly generated, but they won't go in the past before the selected "start date".

Affects

Generate Donations screen

Visuals

deepin-screen-recorder_Select area_20201126141827

Pre-review Checklist

Testing Instructions

  1. Go to Donations -> Tools -> TestData -> Generate Donations
  2. Check the status of the donation which you want to generate, enter donation count, and set the donation start date.
  3. click on the Generate button