You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As an Admin/Developer I want to be able to recalculate all the earnings so that I can see the correct amount in my overview if I didn't save the earnings correctly to the database.
Current Behavior
I'm currently working on a notification plugin that will send Donation information to an external party.
This resulted in a few earnings not being correctly stored under the form meta.
Trying to fix this with the recalculate option, doesn't take all the former donations into account for the form.
Expected Behavior
I expect to see all the donations being used to recalculate the earnings.
DevinWalker
changed the title
Recalculate uses pagination and thus doesn't calculate correctly.
fix: recalculate uses pagination and thus doesn't calculate correctly.
Jan 11, 2019
Thanks for reporting the issue and apologies for taking so long to get to it. Hopefully you've utilized the give_recount_form_stats_args filter in the meantime to correct the issue. It's resolved in the PR #3938 and will be released in 2.4.0.
User Story
As an Admin/Developer I want to be able to recalculate all the earnings so that I can see the correct amount in my overview if I didn't save the earnings correctly to the database.
Current Behavior
I'm currently working on a notification plugin that will send Donation information to an external party.
This resulted in a few earnings not being correctly stored under the form meta.
Trying to fix this with the recalculate option, doesn't take all the former donations into account for the form.
Expected Behavior
I expect to see all the donations being used to recalculate the earnings.
Possible Solution
https://github.com/WordImpress/Give/blob/release/2.1/includes/misc-functions.php#L1546
Change
posts_per_page
intonumber
as stated in the API documentation on the website :)Steps to Reproduce
_give_form_earnings
.Tasks
The text was updated successfully, but these errors were encountered: