[Koha-bugs] [Bug 27433] Issue refund button appears after applying a discount

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Feb 3 11:40:50 CET 2021


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=27433

--- Comment #1 from Martin Renvoize <martin.renvoize at ptfs-europe.com> ---
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

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.


More information about the Koha-bugs mailing list