Problem with refunded status in billing module

Hi Ross,

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?

Kind regards,
Roman

Hi Roman,

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 (modules/Finance/invoices_manage_print.php and <code class="CodeInline">modules/Finance/moduleFunctions.php), both are backwards compatible to v13.

Thanks!

Sandra,

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.

Roman,

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.

Thanks,

Ross

Roman,

Sandra kindly fixed the PHP Notice issue, and the fix has now been merged into the v14 branch. The changes can be viewed at:

https://github.com/GibbonEdu/core/commit/0193a8701764a6f0936ab6b713f369acc42b626f

Hopefully this gives you refunds working the way you need.

Thanks,

Ross

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!

Kind regards,
Roman