From 1a340d0030da4b6bb797391fb2327fa51fcb0bc6 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Fri, 16 Jun 2023 16:59:22 +0000 Subject: [PATCH] Bug 33028: Add TT filters for Price and pattern checks to input fields With this patch, all monetary values in the table will be displayed formatted. Also, the input will be checked against our agreed pattern to make sure no false values can be entered. Missing: When editing a rule, we need to unformat the value, so that instead of the display format we have the input format available for editing. Signed-off-by: Martin Renvoize Signed-off-by: Katrin Fischer Signed-off-by: Tomas Cohen Arazi (cherry picked from commit 3c2d40bb4a05687eca67a8e06befd5d43d0a4b9d) Signed-off-by: Fridolin Somers (cherry picked from commit 32bddca28690bb05695d3e25fbd5764b7af0a06d) Signed-off-by: Pedro Amorim --- .../prog/en/modules/admin/smart-rules.tt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt index f91a10029d..9f85247e12 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt @@ -287,7 +287,7 @@ [% END %] [% decreaseloanholds | html %] - [% fine | html %] + [% fine | $Price %] [% chargeperiod | html %] [% IF chargeperiod_charge_at %]Start of interval[% ELSE %]End of interval[% END %] [% firstremind | html %] @@ -462,7 +462,7 @@
[% INCLUDE 'date-format.inc' %]
- + - + @@ -531,7 +531,7 @@ - + [% END %] @@ -1030,7 +1030,7 @@ [% IF article_request_fee.defined && article_request_fee != '' %] - [% article_request_fee | html %] + [% article_request_fee | $Price %] [% ELSE %] 0 [% END %] @@ -1050,7 +1050,7 @@ [% END %] - + -- 2.39.5