From d609ffbbd0491b0c609920663c09c1a889b62d24 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 Signed-off-by: Jeremy Evans Signed-off-by: Martin Renvoize --- 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 c6dc27d7e7..9d447fdb77 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -859,6 +859,10 @@ [% ELSE %] [% order.invoice.invoicenumber | html %] [% END %] + + [% IF CAN_user_acquisition_edi_manage && order.invoice.message_id %] + (EDI message) + [% END %] [% END %] -- 2.41.0