From 63643b168f3ca85c72d81572ba04155e0e1bda10 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Thu, 16 Feb 2023 10:32:07 -0500 Subject: [PATCH] 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 --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 58ca8e1a703..9c9ef29302c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -868,6 +868,10 @@ Note that permanent location is a code, and location may be an authval. [% ELSE %] [% order.invoice.invoicenumber | html %] [% END %] + + [% IF CAN_user_acquisition_edi_manage && order.invoice.message_id %] + (EDI message) + [% END %] [% END %] -- 2.39.1