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

--- Comment #22 from Marcel de Rooy <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to