]> git.koha-community.org Git - koha.git/commit
Bug 36076: paycollect.tt add permission checks for manual credit and invoice
authorFridolin Somers <fridolin.somers@biblibre.com>
Tue, 13 Feb 2024 09:49:17 +0000 (10:49 +0100)
committerKatrin Fischer <katrin.fischer@bsz-bw.de>
Thu, 7 Mar 2024 14:02:53 +0000 (15:02 +0100)
commit52e7c8acf450e1b010c384619eca77a0f8846bfa
tree3e498fa04c631d01bd3550bd4c67f6449fcc29cb
parent9b8cbf5c83a8f76f3b5eba5065aa5cb7aa26e1d2
Bug 36076: paycollect.tt add permission checks for manual credit and invoice

In members/pay.tt one can see permission checks for manual credit and invoice :
CAN_user_updatecharges_manual_invoice
CAN_user_updatecharges_manual_credit

This is missing from members/paycollect.tt.
HTML is also missing classes manualcredit and manualinvoice.

Test plan :
1) Create a user with permissions to manage accounting
   (remaining_permissions under updatecharges) but without
   manual_invoice and manual_credit
2) Go to a patron account with an invoice
3) Click on "Make a payment", you dont see tabs manual credit/invoice
4) Click on "Pay" in "Actions" column
=> Without patch you see tabs manual credit/invoice
=> With patch you do not see them

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
koha-tmpl/intranet-tmpl/prog/en/modules/members/paycollect.tt