Bugzilla – Attachment 36836 Details for
Bug 13813
Remove deprecated module C4::Dates from system - first steps
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 13813 - Remove C4::Dates from PDF templates in acquisitions
Bug-13813---Remove-C4Dates-from-PDF-templates-in-a.patch (text/plain), 3.22 KB, created by
Marc Véron
on 2015-03-12 15:20:17 UTC
(
hide
)
Description:
Bug 13813 - Remove C4::Dates from PDF templates in acquisitions
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-03-12 15:20:17 UTC
Size:
3.22 KB
patch
obsolete
>From 197465f8b9a84b6c77f59dbe5c0b349c694876dd Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Thu, 12 Mar 2015 16:14:40 +0100 >Subject: [PATCH] Bug 13813 - Remove C4::Dates from PDF templates in > acquisitions > >To test: > >Apply patch >In Acquisitions, go to a vendor's "Basket grouping" >Find a basket and print order >Change PDF templates using syspref OrderPdfFormat and test for >- English 2-page >- English 3-page >- French 3-page >- German 2-page >--- > acqui/pdfformat/layout2pages.pm | 3 ++- > acqui/pdfformat/layout2pagesde.pm | 3 ++- > acqui/pdfformat/layout3pages.pm | 3 ++- > acqui/pdfformat/layout3pagesfr.pm | 3 ++- > 4 files changed, 8 insertions(+), 4 deletions(-) > >diff --git a/acqui/pdfformat/layout2pages.pm b/acqui/pdfformat/layout2pages.pm >index 15b9838..2e6dd3a 100644 >--- a/acqui/pdfformat/layout2pages.pm >+++ b/acqui/pdfformat/layout2pages.pm >@@ -31,6 +31,7 @@ use utf8; > use C4::Branch qw(GetBranchDetail); > > use Koha::Number::Price; >+use Koha::DateUtils; > > BEGIN { > use Exporter (); >@@ -170,7 +171,7 @@ sub printhead { > $text->text($basketgroup->{'id'}); > > # print the date >- my $today = C4::Dates->today(); >+ my $today = output_pref({ dt=>DateTime->now(), dateonly=>1 }); > $text->translate(130/mm, ($height-5-48)/mm); > $text->text($today); > >diff --git a/acqui/pdfformat/layout2pagesde.pm b/acqui/pdfformat/layout2pagesde.pm >index 6ac57b0..c1ecb4f 100644 >--- a/acqui/pdfformat/layout2pagesde.pm >+++ b/acqui/pdfformat/layout2pagesde.pm >@@ -31,6 +31,7 @@ use utf8; > use C4::Branch qw(GetBranchDetail); > > use Koha::Number::Price; >+use Koha::DateUtils; > > BEGIN { > use Exporter (); >@@ -170,7 +171,7 @@ sub printhead { > $text->text($basketgroup->{'id'}); > > # print the date >- my $today = C4::Dates->today(); >+ my $today = output_pref({ dt=>DateTime->now(), dateonly=>1 }); > $text->translate(130/mm, ($height-5-48)/mm); > $text->text($today); > >diff --git a/acqui/pdfformat/layout3pages.pm b/acqui/pdfformat/layout3pages.pm >index a38f4d3..c338972 100644 >--- a/acqui/pdfformat/layout3pages.pm >+++ b/acqui/pdfformat/layout3pages.pm >@@ -32,6 +32,7 @@ use utf8; > use C4::Branch qw(GetBranchDetail GetBranchName); > > use Koha::Number::Price; >+use Koha::DateUtils; > > BEGIN { > use Exporter (); >@@ -334,7 +335,7 @@ sub printhead { > $text->text($basketgroup->{'id'}); > > # print the date >- my $today = C4::Dates->today(); >+ my $today = output_pref({ dt=>DateTime->now(), dateonly=>1 }); > $text->translate(130/mm, ($height-5-48)/mm); > $text->text($today); > >diff --git a/acqui/pdfformat/layout3pagesfr.pm b/acqui/pdfformat/layout3pagesfr.pm >index bf5adb3..7b9dd80 100644 >--- a/acqui/pdfformat/layout3pagesfr.pm >+++ b/acqui/pdfformat/layout3pagesfr.pm >@@ -31,6 +31,7 @@ use utf8; > use C4::Branch qw(GetBranchDetail GetBranchName); > > use Koha::Number::Price; >+use Koha::DateUtils; > > BEGIN { > use Exporter (); >@@ -334,7 +335,7 @@ sub printhead { > $text->text($basketgroup->{'id'}); > > # print the date >- my $today = C4::Dates->today(); >+ my $today = output_pref({ dt=>DateTime->now(), dateonly=>1 }); > $text->translate(130/mm, ($height-5-48)/mm); > $text->text($today); > >-- >1.7.10.4
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 13813
:
36827
|
36828
|
36829
|
36830
|
36831
|
36832
|
36835
|
36836
|
36839
|
36845
|
36850
|
36851
|
36855
|
36857
|
36858
|
36859
|
36862
|
36863
|
36864
|
36865
|
36870
|
36871
|
36872
|
36878
|
36879
|
36880
|
36881
|
36882
|
36883
|
36884
|
36885
|
36886
|
36887
|
36888
|
36889
|
36890
|
36892
|
36893
|
36894
|
36895
|
36896
|
36897
|
36898
|
36899
|
36900
|
36901
|
36902
|
37227
|
37730
|
37731
|
37732
|
37736
|
37737
|
37746
|
37748
|
37749
|
37753
|
37754
|
37757
|
37762
|
37763
|
37764
|
37765
|
37766
|
37767
|
37768
|
37770
|
37810
|
37828
|
37835
|
37839
|
37840
|
37841
|
37842
|
37843
|
37853
|
37854
|
37855
|
37856
|
37857
|
37858
|
37859
|
37860
|
37861
|
37862
|
37863
|
37864
|
37865
|
37866
|
37867
|
37868
|
37869
|
37870
|
37871
|
37872
|
37873
|
37874
|
37875
|
37876
|
37877
|
37878
|
37879
|
37880
|
37881
|
37882
|
37883
|
37884
|
37885
|
37886
|
37887
|
37888
|
37889
|
37890
|
37891
|
39666
|
40894
|
42052
|
42175
|
42274
|
42286
|
42292
|
42293
|
42294