Bug 32984: Add link to EDI invoice to "Invoice" column if there is one
Test Plan: 1) Find or create an item invoiced via an EDI INVOICE message 2) Ensure you have the edi_manage subpermission 3) View catalogue/detail.pl, not the invoice link in the invoice column 4) Apply this patch 5) Restart all the things! 6) Reload catalogue/detail.pl 7) Note the new "(EDI invoice)" link in the column for the item 8) Verify the link does not show if you do not have the edi_manage subpermission Signed-off-by: Jeremy Evans <Jeremy.Evans@ukhsa.gov.uk> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
bf515ec6d4
commit
2fb758d395
|
|
@ -859,6 +859,10 @@
|
|||
[% ELSE %]
|
||||
[% order.invoice.invoicenumber | html %]
|
||||
[% END %]
|
||||
|
||||
[% IF CAN_user_acquisition_edi_manage && order.invoice.message_id %]
|
||||
(<a href="/cgi-bin/koha/acqui/edimsg.pl?id=[% order.invoice.message_id | uri %]" title="EDI INVOICE message">EDI message</a>)
|
||||
[% END %]
|
||||
[% END %]
|
||||
</td>
|
||||
<td>
|
||||
|
|
|
|||
Loading…
Reference in New Issue