I've been requested to add a feature to our installation that allows an admin to copy or duplicate an existing contribution, including all it's custom fields.
I was wondering if anyone has tackled this before, or if there is an extension out there which may help.
If not, any pointers to doing this the right way? Should/Can this be written as an extension?
I was thinking to add a button on the contribution view page (not sure which template this may be yet), and then use the API to pull the current contribution (hopefully with custom fields) and create a new one with the same fields (removing/replacing the transaction id so we don't have a duplicate key).
I'd appreciate any tips on this.