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.
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 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.