Bugzilla – Attachment 34990 Details for
Bug 4402
Date filter in parcels.tt requires db format dates
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[Signed-off] Bug 4402: Date filter on parcels.tt required db date format
Signed-off-Bug-4402-Date-filter-on-parcelstt-requi.patch (text/plain), 2.87 KB, created by
Marc Véron
on 2015-01-06 16:33:11 UTC
(
hide
)
Description:
[Signed-off] Bug 4402: Date filter on parcels.tt required db date format
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2015-01-06 16:33:11 UTC
Size:
2.87 KB
patch
obsolete
>From 1827677a9ca35fc8acc94d99138f6b986433dea3 Mon Sep 17 00:00:00 2001 >From: Katrin Fischer <Katrin.Fischer.83@web.de> >Date: Tue, 6 Jan 2015 16:35:48 +0100 >Subject: [PATCH] [Signed-off] Bug 4402: Date filter on parcels.tt required db > date format >MIME-Version: 1.0 >Content-Type: text/plain; charset=UTF-8 >Content-Transfer-Encoding: 8bit > >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 > >Followed test plan. Works as expected. >Signed-off-by: Marc Véron <veron@veron.ch> >--- > 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 @@ > <ol> > <li> <input type="hidden" name="booksellerid" value="[% booksellerid %]" /></li> > <li><label for="filter">Invoice number:</label><input type="text" size="20" name="filter" value="[% filter %]" id="filter" /></li> >- <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" /><br /> >- <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" /></li> >+ <li><label for="datefrom">From:</label><input type="text" size="9" id="datefrom" name="datefrom" value="[% datefrom %]" class="datepicker" /><br /> >+ <label for="dateto">To:</label><input type="text" size="9" id="dateto" name="dateto" value="[% dateto %]" class="datepicker" /></li> > <li><label for="orderby">Sort by :</label><select name="orderby" id="orderby"> > <option value="invoicenumber">Invoice number</option> > <option value="shipmentdate">Shipment date</option> >-- >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 4402
:
34989
|
34990
|
34993
|
35100
|
35101
|
35151
|
36402
|
36549