[Koha-bugs] [Bug 28656] Cancellations should be allowed on paid/partially paid debts

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue Jul 6 16:11:54 CEST 2021


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

--- Comment #22 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
can_be_cancelled:     return $self->debit_offsets->filter_by_reversable->count
? 1 : 0;
What is the exact reasoning behind this?
Dumb question: but if there is no reversible offset yet, this does not
necessarily mean that the line cant be cancelled??


And that combined with the following template code:

[% IF account.is_debit && account.status != 'CANCELLED' &&
!(account.debit_type_code == 'PAYOUT') && !(account.debit_type_code == 'VOID')
&& !account.can_be_cancelled %]
          <form method="post" action="/cgi-bin/koha/members/cancel-charge.pl">

I am reading: If this account line can NOT be cancelled, then present a cancel
form ?

Slightly confusing :)

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


More information about the Koha-bugs mailing list