From f9f7f3c22ab83d33271ceb61c4ddacd2191018ea Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Tue, 6 Jan 2015 16:35:48 +0100 Subject: [PATCH] Bug 4402: Date filter on parcels.tt required db date format The date filters on the parcel page would only work with dates formatted YYYY-MM-DD. To test: - Select a vendor, that already has a few invoices - "Receive shipment" - you are on the parcels page - Use the From and To filters on the left, notice there is now a date picker on those fields - Verify the search works correctly for different date formats --- acqui/parcels.pl | 4 ++-- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/acqui/parcels.pl b/acqui/parcels.pl index e3b8f5f..1dc79ee 100755 --- a/acqui/parcels.pl +++ b/acqui/parcels.pl @@ -145,8 +145,8 @@ my $bookseller = Koha::Acquisition::Bookseller->fetch({ id => $booksellerid }); my @parcels = GetInvoices( supplierid => $booksellerid, invoicenumber => $code, - shipmentdatefrom => $datefrom, - shipmentdateto => $dateto, + shipmentdatefrom => C4::Dates->new($datefrom)->output('iso'), + shipmentdateto => C4::Dates->new($dateto)->output('iso'), order_by => $order ); my $count_parcels = @parcels; diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt index 147a26f..c077543 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt @@ -209,8 +209,8 @@
  1. -

  2. -
  3. +

  4. +