I’m facing a problem when setting the status of an invoice to refunded. When doing so, I can’t print the history of past payments anymore. They don’t show up under prints. The only printout remaining is the original invoice. Instead I wish to have the original invoice, all receipts and maybe a final print for documentation of the refund as well.
Can you reproduce this?
I’ve added the ability to view and print receipts for refunded invoices to the following Pull Request: https://github.com/GibbonEdu/core/pull/210
Once refunded, the receipts reflect the updated status and include a line with the refunded total (complete or partial total depending on the amount paid). Are you able to review & test the changes to see if they resolve your issue? There are two files changed (
and <code class="CodeInline">modules/Finance/moduleFunctions.php), both are backwards compatible to v13.
Thanks for this. I have merged and tested, and it is causing some PHP Notice errors on save (these might have been there before you tested). I sent you a message on Slack so we can follow up on this.
Please do test Sandra’s code, I think it should solve your issue. We will deal with the PHP notice issue and update the thread once here once we have it sorted.
Sandra kindly fixed the PHP Notice issue, and the fix has now been merged into the v14 branch. The changes can be viewed at:
Hopefully this gives you refunds working the way you need.
Hi Ross & Sandra
I had a look at the changes and included them in my v12.
The changes work perfectly. All receipts are listed now and the refund printout looks good to me. Thanks a lot!