Bug 14928: Remove C4::Dates from files acqui/pdfformat/layout*.pm
This patch removes C4::Dates from: - acqui/pdfformat/layout2pages.pm - acqui/pdfformat/layout2pagesde.pm - acqui/pdfformat/layout3pages.pm - acqui/pdfformat/layout3pagesfr.pm To test: - Apply patch - Go to Home > Acquisitions > [Vendor] > Basket groups - Print a basket (order) - Verify that the current date is formatted respects syspref 'dateformat' - Do the same with syspref 'OrderPdfFormat' set to the four different choices Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> Works as advertised. Date printed in PDF Ok Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
parent
56ede58a86
commit
11d413a075
|
|
@ -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 => dt_from_string, dateonly => 1 });
|
||||
$text->translate(130/mm, ($height-5-48)/mm);
|
||||
$text->text($today);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 => dt_from_string, dateonly => 1 });
|
||||
$text->translate(130/mm, ($height-5-48)/mm);
|
||||
$text->text($today);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 => dt_from_string, dateonly => 1 });
|
||||
$text->translate(130/mm, ($height-5-48)/mm);
|
||||
$text->text($today);
|
||||
|
||||
|
|
|
|||
|
|
@ -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 => dt_from_string, dateonly => 1 });
|
||||
$text->translate(130/mm, ($height-5-48)/mm);
|
||||
$text->text($today);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue