@@ -, +, @@ - 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 | 6 +++--- koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) --- a/acqui/parcels.pl +++ a/acqui/parcels.pl @@ -72,11 +72,11 @@ use CGI; use C4::Auth; use C4::Output; -use C4::Dates qw/format_date/; use C4::Acquisition; use C4::Budgets; use Koha::Acquisition::Bookseller; +use Koha::DateUtils qw( dt_from_string ); my $input = CGI->new; my $booksellerid = $input->param('booksellerid'); @@ -145,8 +145,8 @@ my $bookseller = Koha::Acquisition::Bookseller->fetch({ id => $booksellerid }); my @parcels = GetInvoices( supplierid => $booksellerid, invoicenumber => $code, - shipmentdatefrom => $datefrom, - shipmentdateto => $dateto, + ( $datefrom ? ( shipmentdatefrom => dt_from_string($datefrom, 'iso') ) : () ), + ( $dateto ? ( shipmentdateto => dt_from_string($dateto, 'iso')) : () ), order_by => $order ); my $count_parcels = @parcels; --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/parcels.tt @@ -209,8 +209,8 @@
  1. -

  2. -
  3. +

  4. +