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>
This commit is contained in:
parent
9b8cbf5c83
commit
52e7c8acf4
|
|
@ -105,12 +105,16 @@
|
|||
<li role="presentation" class="makepayment active">
|
||||
<a href="/cgi-bin/koha/members/pay.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Make a payment</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Create manual invoice</a>
|
||||
</li>
|
||||
<li role="presentation">
|
||||
<a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Create manual credit</a>
|
||||
</li>
|
||||
[% IF CAN_user_updatecharges_manual_invoice %]
|
||||
<li role="presentation" class="manualinvoice">
|
||||
<a href="/cgi-bin/koha/members/maninvoice.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Create manual invoice</a>
|
||||
</li>
|
||||
[% END %]
|
||||
[% IF CAN_user_updatecharges_manual_credit %]
|
||||
<li role="presentation" class="manualcredit">
|
||||
<a href="/cgi-bin/koha/members/mancredit.pl?borrowernumber=[% patron.borrowernumber | uri %]" role="tab">Create manual credit</a>
|
||||
</li>
|
||||
[% END %]
|
||||
</ul> <!-- /.nav.nav-tabs -->
|
||||
<div class="tab-content">
|
||||
<div role="tabpanel" class="tab-pane active">
|
||||
|
|
|
|||
Loading…
Reference in New Issue