Bugzilla – Attachment 142342 Details for
Bug 31713
Allow easy printing of patron's fines
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31713: (QA follow-up) Add current date to slip
Bug-31713-QA-follow-up-Add-current-date-to-slip.patch (text/plain), 2.84 KB, created by
Kyle M Hall (khall)
on 2022-10-21 12:24:06 UTC
(
hide
)
Description:
Bug 31713: (QA follow-up) Add current date to slip
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2022-10-21 12:24:06 UTC
Size:
2.84 KB
patch
obsolete
>From 7f6a3ae60039efa4d029d3f6673d466d776bd4bb Mon Sep 17 00:00:00 2001 >From: Kyle Hall <kyle@bywatersolutions.com> >Date: Fri, 21 Oct 2022 08:20:33 -0400 >Subject: [PATCH] Bug 31713: (QA follow-up) Add current date to slip > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > Koha/Template/Plugin/KohaDates.pm | 4 ++++ > installer/data/mysql/atomicupdate/bug_31713.pl | 5 +++-- > installer/data/mysql/en/mandatory/sample_notices.yml | 5 +++-- > 3 files changed, 10 insertions(+), 4 deletions(-) > >diff --git a/Koha/Template/Plugin/KohaDates.pm b/Koha/Template/Plugin/KohaDates.pm >index 783833f7df..446e9bb7d1 100644 >--- a/Koha/Template/Plugin/KohaDates.pm >+++ b/Koha/Template/Plugin/KohaDates.pm >@@ -47,4 +47,8 @@ sub tz { > return C4::Context->tz->name; > } > >+sub now { >+ return dt_from_string; >+} >+ > 1; >diff --git a/installer/data/mysql/atomicupdate/bug_31713.pl b/installer/data/mysql/atomicupdate/bug_31713.pl >index 9ab4132d89..31bc185f7e 100644 >--- a/installer/data/mysql/atomicupdate/bug_31713.pl >+++ b/installer/data/mysql/atomicupdate/bug_31713.pl >@@ -8,8 +8,9 @@ return { > my ($dbh, $out) = @$args{qw(dbh out)}; > > my $slip_content = <<~'END_CONTENT'; >-[% USE Koha %] > [% USE Branches %] >+[% USE Koha %] >+[% USE KohaDates %] > [% USE Price %] > [% PROCESS 'accounts.inc' %] > <table> >@@ -85,7 +86,7 @@ return { > > <tfoot> > <tr> >- <td colspan='3'>Total outstanding dues as on date: </td> >+ <td colspan='3'>Total outstanding dues as of [% KohaDates.output_preference( KohaDates.now ) %]: </td> > [% IF ( borrower.account.balance <= 0 ) %]<td class='credit'>[% ELSE %]<td class='debit'>[% END %][% borrower.account.balance | $Price %]</td> > </tr> > </tfoot> >diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml >index 367da957ba..af980245dc 100644 >--- a/installer/data/mysql/en/mandatory/sample_notices.yml >+++ b/installer/data/mysql/en/mandatory/sample_notices.yml >@@ -1216,8 +1216,9 @@ tables: > message_transport_type: print > lang: default > content: >- - "[% USE Koha %]" > - "[% USE Branches %]" >+ - "[% USE Koha %]" >+ - "[% USE KohaDates %]" > - "[% USE Price %]" > - "[% PROCESS 'accounts.inc' %]" > - "<table>" >@@ -1293,7 +1294,7 @@ tables: > - "" > - " <tfoot>" > - " <tr>" >- - " <td colspan='3'>Total outstanding dues as on date: </td>" >+ - " <td colspan='3'>Total outstanding dues as of [% KohaDates.output_preference( KohaDates.now ) %]: </td>" > - " [% IF ( borrower.account.balance <= 0 ) %]<td class='credit'>[% ELSE %]<td class='debit'>[% END %][% borrower.account.balance | $Price %]</td>" > - " </tr>" > - " </tfoot>" >-- >2.30.2
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 31713
:
141517
|
141572
|
141573
|
141574
|
141575
|
142340
|
142341
|
142342
|
142360
|
142760
|
142871
|
142872
|
142873
|
142874
|
142875
|
142876
|
142926
|
142927
|
142928
|
142929
|
142930
|
142931