Created attachment 115163 [details] issue refund Hi, In the 20.05 version, after using the "Apply discount" button, the "Issue refund" button appears. If there was a discount given on a fine, it shoudn't be possible to refund that amount. Only the fully or partially paid fines should. Is this the right way to use the "Issue refund" button? Regards, Marjorie
Hmm, I see what you mean. I'm not sure how to resolve this one.. we don't really have easy access to how the outstanding amount was offset at this level. The current code looks for any debit lines that have been at least partially 'paid'.. but 'paid' in this case means 'offset' and a discount is an offset the same way a payment or credit it. [% IF CAN_user_updatecharges_refund && account.is_debit && ( account.amountoutstanding != account.amount ) && !(account.status == 'REFUNDED') && !(account.debit_type_code == 'PAYOUT') %] I'll have a think
I think perhaps we need to impliment some of the idea's in https://wiki.koha-community.org/wiki/Account_view_RFC prior to being able to fix this.. that way we add context to the display lines.