Bugzilla – Attachment 152805 Details for
Bug 33028
Wrongly formatted monetary amounts in circulation rules break scripts and calculations
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 33028: (follow-up) Apply unformat_price to decimal fields
Bug-33028-follow-up-Apply-unformatprice-to-decimal.patch (text/plain), 1.66 KB, created by
Martin Renvoize (ashimema)
on 2023-06-28 13:50:44 UTC
(
hide
)
Description:
Bug 33028: (follow-up) Apply unformat_price to decimal fields
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2023-06-28 13:50:44 UTC
Size:
1.66 KB
patch
obsolete
>From da95a4cef7d638e3d495d7f2990c718aff900c4b Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 27 Jun 2023 16:54:02 +0100 >Subject: [PATCH] Bug 33028: (follow-up) Apply unformat_price to decimal fields > >Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt | 5 +++++ > 1 file changed, 5 insertions(+) > >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 68f9cb5a65..e8dcf9abde 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 >@@ -1392,6 +1392,7 @@ > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'calendar.inc' %] > [% INCLUDE 'columns_settings.inc' %] >+ [% INCLUDE 'format_price.inc' %] > <script> > $(document).ready(function() { > KohaTable("default-circulation-rules", { >@@ -1486,6 +1487,10 @@ > $('#overduefinescap').prop('disabled', cap_fine_to_replacement_price.is(':checked') ); > } else { > $(current_column).find("input[type='text']").val(itm); >+ // unformat prices >+ $(current_column).find("input[inputmode='decimal']").each(function() { >+ $(this).val(itm.unformat_price()); >+ }); > // select the corresponding option > $(current_column).find("select option").each(function(){ > opt = $(this).text().toLowerCase(); >-- >2.41.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 33028
:
147058
|
147686
|
147687
|
147688
|
152441
|
152442
|
152443
|
152444
|
152445
|
152446
|
152509
|
152510
|
152511
|
152512
|
152513
|
152514
|
152515
|
152752
|
152753
|
152754
|
152755
|
152756
|
152757
|
152758
|
152759
|
152760
|
152761
|
152762
|
152763
|
152764
|
152803
|
152804
|
152805
|
152829
|
152928
|
152929
|
152930
|
152931
|
152932
|
152933
|
152934
|
152935
|
152936
|
153313
|
153314
|
153315
|
153316
|
153317
|
153318
|
153319
|
153320
|
153321
|
153322
|
153323
|
153619
|
153620
|
153632
|
153633
|
153634
|
153635
|
153636
|
153677