From 3382e23bc9276a819765312bd25ca8abe236fd2a Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Tue, 2 Mar 2021 14:56:41 +0000 Subject: [PATCH] Bug 24491: Add optional filtering to debit types This patch adds a pair of additional checkbox filtering options to the debit types page so that you can filter down to just those type that are available for sale or available for invoicing, or available for both. --- .../prog/en/modules/admin/debit_types.tt | 25 ++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt index 5de8f1766f..74dfd7d86f 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/debit_types.tt @@ -222,7 +222,7 @@ "iDisplayLength": 20, "sPaginationType": "full_numbers" })); - $("#filter_s").html('

'+txtActivefilter+''); + $("#filter_s").html('

'+txtActivefilter+' Show items for sale Show items for invoicing

'); $('#filter_system').click(function(e) { e.preventDefault(); if ($(this).hasClass('filtered')) { @@ -238,6 +238,29 @@ //Start filtered $('#filter_system').click(); + + $('#show_pos').click(function(e){ + var filterValue; + if($(this).prop("checked") == true){ + filterValue = 'Sale' + } + else if($(this).prop("checked") == false){ + filterValue = '^((? [% END %] -- 2.20.1