From 8e12f04804a01f1913581ad3d353ee7b6bb94e7d Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Thu, 6 Aug 2020 14:33:32 +0100 Subject: [PATCH] Bug 26160: Make POS items table configurable Signed-off-by: Sally --- admin/columns_settings.yml | 15 +++++++++++++++ .../prog/en/modules/admin/columns_settings.tt | 6 ++++++ koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt | 11 +++++++---- 3 files changed, 28 insertions(+), 4 deletions(-) diff --git a/admin/columns_settings.yml b/admin/columns_settings.yml index 1a24b3084b..aa39fc1d08 100644 --- a/admin/columns_settings.yml +++ b/admin/columns_settings.yml @@ -1432,3 +1432,18 @@ modules: columnname: actions cannot_be_toggled: 1 cannot_be_modified: 1 + + pos: + pay: + invoices: + columns: + - + columnname: code + - + columnname: description + - + columnname: cost + - + columnname: actions + cannot_be_toggled: 1 + cannot_be_modified: 1 diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt index 3d7a59e686..e2a5448706 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt @@ -242,6 +242,12 @@ [% PROCESS pagelist module=modules.members modulename="members" %] + +
+

Point of sale tables

+ [% PROCESS pagelist module=modules.pos modulename="pos" %] +
+

Tools tables

diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt index 021e4ea611..bcdbbe86c6 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/pay.tt @@ -2,6 +2,7 @@ [% USE Asset %] [% USE Koha %] [% USE Price %] +[% USE TablesSettings %] [% SET footerjs = 1 %] [% PROCESS 'payments.inc' %] [% INCLUDE 'doc-head-open.inc' %] @@ -175,6 +176,7 @@ [% MACRO jsinclude BLOCK %] [% INCLUDE 'format_price.inc' %] [% INCLUDE 'datatables.inc' %] + [% INCLUDE 'columns_settings.inc' %] [% Asset.js("lib/jquery/plugins/jquery.jeditable.mini.js") | $raw %]