From 2626d8a07ff4a39c2e47b88b1ab853c68d114f10 Mon Sep 17 00:00:00 2001 From: Philip Orr Date: Thu, 30 Mar 2023 10:09:32 +0000 Subject: [PATCH] Bug 31722: Fixed EDIFACT message to only display if EDIFACT is turned on This patch makes a small change to the display of the note "No EDIFACT configuration for..." on the basket group page to only display if the system preference EDIFACT is set to "Enable". To Test: 1. apply patch 2. navigate to a vendor over Acquisitions -> Vendor e.g. My Vendor 3. create a basket group (doesn't have to have any baskets, an empty one will do) 4. close the basket group 5. set system preference "EDIFACT" to "Enable" 6. navigate to Administration -> EDI Accounts and make sure the vendor doesn't have an EDI account configured 7. navigate to your vendor's closed basket groups over Acquisitions -> Vendor -> Basket groups (left panel) -> Tab "Closed" 8. you should see a message "No EDIFACT configuration for (name of vendor)" in the Action column 9. set system preference "EDIFACT" to "Disable" 10. go back to your vendor's closed basket groups 11. you shouldn't see the message "No EDIFACT configuration for (name of vendor)" Signed-off-by: Laura Escamilla Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi --- .../prog/en/modules/acqui/basketgroup.tt | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt index 5bfb734285..ec285960f9 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/basketgroup.tt @@ -2,6 +2,7 @@ [% USE Asset %] [% USE Branches %] [% USE Price %] +[% USE Koha %] [% INCLUDE 'doc-head-open.inc' %] Basket grouping for [% booksellername | html %] › Koha [% INCLUDE 'doc-head-close.inc' %] @@ -323,7 +324,7 @@

Basket grouping for [% booksellername | html %]

- [% IF (NoEDIMessage) %]
No EDIFACT configuration for [% booksellername | html %]
[% END %] + [% IF (NoEDIMessage && Koha.Preference('EDIFACT')) %]
No EDIFACT configuration for [% booksellername | html %]
[% END %] [% WRAPPER tabs id= "basket_groups" %] [% WRAPPER tabs_nav %] @@ -403,11 +404,13 @@
- [% IF (ediaccount) %] -
- [% ELSE %] -
No EDIFACT configuration for [% booksellername | html %]
- [% END %] + [% IF Koha.Preference('EDIFACT') %] + [% IF (ediaccount) %] +
+ [% ELSE %] +
No EDIFACT configuration for [% booksellername | html %]
+ [% END %] + [% END %] [% END %] -- 2.39.5