Bug 32984: (QA follow-up) Update to respect EDIFACT preference

Since the first submission of this patch we have introduced a system
preference to enable/disable edifact in it's entirety. This patch adds
the check for this preference.

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2023-09-08 20:00:40 +01:00 committed by Tomas Cohen Arazi
parent 2fb758d395
commit befb7f9f42
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F

View file

@ -860,7 +860,7 @@
[% order.invoice.invoicenumber | html %]
[% END %]
[% IF CAN_user_acquisition_edi_manage && order.invoice.message_id %]
[% IF ( Koha.Preference('EDIFACT') && 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 %]