-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CiviAccountSync Cancel Contributions is now too enthusiastic #38
Comments
You might consider this overkill but here's a bonus suggestion Use a job parameter to select the Contributions on which to act
|
@eileenmcnaughton it is after (note I have the WHERE keyword in my proposed change.) |
@kenwest I think excluding cancelled statuses makes sense & I think an optional job param of contribution_status_id makes sense too- it should use the api formats which can be handled with
(e.g then IN, NOT IN etc are supported & if the spec function declares the contribution_status_id field with the 'pseudoconstant' field then it will support words like 'Cancelled' |
…Contributions' job. See [1] for the corresponding PR in nz.co.fuzion.accountsync. See [2] and []3 for descriptions of the issue [1] kenwest/nz.co.fuzion.accountsync@d3ba735 [2] eileenmcnaughton/nz.co.fuzion.accountsync#38 [3] eileenmcnaughton#43
…Contributions' job. See [1] for the corresponding PR in nz.co.fuzion.accountsync. See [2] and []3 for descriptions of the issue [1] kenwest/nz.co.fuzion.accountsync@d3ba735 [2] eileenmcnaughton/nz.co.fuzion.accountsync#38 [3] eileenmcnaughton#43
Since the PR for CIVIXERO-15 the CiviAccountSync Cancel Contributions job is too enthusiastic
Cancelling already-cancelled contributions
The job should not do this. It's harmless while the data set is small but will kill the job on larger sets
Deleted contributions
The job uses the CiviCRM API for contribution/create which assumes that if you pass in the contribution Id then it will exist. But if the contribution was deleted in CiviCRM the job fails.
Proposal
Update the query as follows ...
The text was updated successfully, but these errors were encountered: