Bug 24157: (follow-up) New permission - delete_invoices
Hide the "Delete" invoice link if necessary on /cgi-bin/koha/acqui/invoice.pl?invoiceid=X Signed-off-by: Alex Arnaud <alex.arnaud@biblibre.com> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
parent
4b6d8bb0b6
commit
110e0acb5c
|
|
@ -122,7 +122,7 @@
|
|||
<input type="hidden" name="invoiceid" value="[% invoiceid | html %]" />
|
||||
<fieldset class="action">
|
||||
<input type="submit" value="Save" />
|
||||
[% UNLESS orders_loop.size %]
|
||||
[% IF CAN_user_acquisition_delete_invoices AND NOT orders_loop.size %]
|
||||
<a href="invoice.pl?op=delete&invoiceid=[% invoiceid | uri %]" id="delete">Delete</a>
|
||||
[% END %]
|
||||
</fieldset>
|
||||
|
|
|
|||
Loading…
Reference in New Issue