From 2fb758d39585c35042e42fb3a1fcfa4850df2a3b 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 Signed-off-by: Tomas Cohen Arazi --- 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 ffe3127816..1674a2e657 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.39.5