Bugzilla – Attachment 138005 Details for
Bug 31121
Format date range on top of cashup summary page
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31121: Fix date formatting in cashup summary modal
Bug-31121-Fix-date-formatting-in-cashup-summary-mo.patch (text/plain), 2.64 KB, created by
Martin Renvoize (ashimema)
on 2022-07-22 08:49:17 UTC
(
hide
)
Description:
Bug 31121: Fix date formatting in cashup summary modal
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2022-07-22 08:49:17 UTC
Size:
2.64 KB
patch
obsolete
>From f1884252d7dbbcdd0856f90909c2319eb67e0398 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Fri, 8 Jul 2022 15:46:04 +0100 >Subject: [PATCH] Bug 31121: Fix date formatting in cashup summary modal > >Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de> >--- > koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt | 1 + > koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt | 1 + > koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js | 6 ++++-- > 3 files changed, 6 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >index e1bdb2be4c..f19fe43682 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/register.tt >@@ -333,6 +333,7 @@ > [% INCLUDE 'datatables.inc' %] > [% Asset.js("lib/jquery/plugins/rowGroup/dataTables.rowGroup.min.js") | $raw %] > [% INCLUDE 'format_price.inc' %] >+ [% INCLUDE 'js-date-format.inc' %] > [% Asset.js("js/cashup_modal.js") | $raw %] > [% INCLUDE 'calendar.inc' %] > <script> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >index a92326a84f..3aabcfee17 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/pos/registers.tt >@@ -196,6 +196,7 @@ > [% MACRO jsinclude BLOCK %] > [% INCLUDE 'datatables.inc' %] > [% INCLUDE 'format_price.inc' %] >+ [% INCLUDE 'js-date-format.inc' %] > [% Asset.js("js/cashup_modal.js") | $raw %] > <script> > $(document).ready(function () { >diff --git a/koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js b/koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js >index e207c754f3..ddc480dd95 100644 >--- a/koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js >+++ b/koha-tmpl/intranet-tmpl/prog/js/cashup_modal.js >@@ -12,8 +12,10 @@ $(document).ready(function() { > }, > async: false, > success: function(data) { >- summary_modal.find('#from_date').text(data.summary.from_date); >- summary_modal.find('#to_date').text(data.summary.to_date); >+ let from_date = $datetime(data.summary.from_date); >+ summary_modal.find('#from_date').text(from_date); >+ let to_date = $datetime(data.summary.to_date); >+ summary_modal.find('#to_date').text(to_date); > var tbody = summary_modal.find('tbody') > tbody.empty(); > for (out of data.summary.payout_grouped) { >-- >2.20.1
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 31121
:
137428
|
137429
|
137432
| 138005