Bugzilla – Attachment 58233 Details for
Bug 12732
Allow sorting by basket creation date to the late orders table
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 12732 - Sort late orders by basket creation or closing date -
Bug-12732---Sort-late-orders-by-basket-creation-or.patch (text/plain), 3.55 KB, created by
Charles Farmer
on 2016-12-15 21:52:24 UTC
(
hide
)
Description:
Bug 12732 - Sort late orders by basket creation or closing date -
Filename:
MIME Type:
Creator:
Charles Farmer
Created:
2016-12-15 21:52:24 UTC
Size:
3.55 KB
patch
obsolete
>From b007303b797612b0db268168694a5564311e5ada Mon Sep 17 00:00:00 2001 >From: simith <simith@inlibro.com> >Date: Thu, 21 Aug 2014 13:29:28 -0400 >Subject: [PATCH] Bug 12732 - Sort late orders by basket creation or closing > date - > >This patch fixs the numbers 0, 3 and 4 in comment 4 > >Add: > >installer/data/mysql/updatedatabase.pl > >Modified: > >koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref - AcqLateOrderUseCreationDate preference modified. >koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt - translation problem fixed. >--- > ...Z12732_SORT_LATE_ORDERS_BY_BASKET_CREATION_OR_CLOSING_DATE.perl | 6 ++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt | 6 +++++- > .../prog/en/modules/admin/preferences/acquisitions.pref | 7 ++++--- > 3 files changed, 15 insertions(+), 4 deletions(-) > create mode 100644 installer/data/mysql/atomicupdate/BZ12732_SORT_LATE_ORDERS_BY_BASKET_CREATION_OR_CLOSING_DATE.perl > >diff --git a/installer/data/mysql/atomicupdate/BZ12732_SORT_LATE_ORDERS_BY_BASKET_CREATION_OR_CLOSING_DATE.perl b/installer/data/mysql/atomicupdate/BZ12732_SORT_LATE_ORDERS_BY_BASKET_CREATION_OR_CLOSING_DATE.perl >new file mode 100644 >index 0000000..15a8af8 >--- /dev/null >+++ b/installer/data/mysql/atomicupdate/BZ12732_SORT_LATE_ORDERS_BY_BASKET_CREATION_OR_CLOSING_DATE.perl >@@ -0,0 +1,6 @@ >+$DBversion = 'XXX'; # will be replaced by the RM >+if( CheckVersion( $DBversion ) ) { >+ $dbh->do("INSERT INTO systempreferences (variable,value,explanation,type) VALUES ('AcqLateOrderUseCreationDate', 'closing', 'creation|closing', 'Change late order default sort.', 'Choice')"); >+ SetVersion( $DBversion ); >+ print "Upgrade to $DBversion done (Bug 12732 - Sort late orders by basket creation or closing date)\n"; >+} >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >index b53058c..293374d 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >@@ -116,7 +116,11 @@ $(document).ready(function() { > [% ELSE %] > <th></th> > [% END %] >- <th class="title-string">Order [% lateOrderSort %] date</th> >+ [% IF ( lateOrderSort == "creation") %] >+ <th class="title-string">Order creation date</th> >+ [% ELSE %] >+ <th class="title-string">Order closing date</th> >+ [% END %] > <th class="title-string">Estimated delivery date</th> > <th>Vendor</th> > <th class="anti-the">Information</th> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >index 33a3a6d..771d9fb 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref >@@ -20,11 +20,12 @@ Acquisitions: > 1: always ask for confirmation. > 2: do not ask for confirmation. > - >+ - Use > - pref: AcqLateOrderUseCreationDate > choices: >- creation: Do >- closing: Don't >- - Use the creation date of the basket to sort late order. >+ creation: creation date >+ closing: closing date >+ - of the basket to sort late order. > - > - Show baskets > - pref: AcqViewBaskets >-- >1.9.1
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 12732
:
30592
|
30794
|
31064
|
32298
|
32301
|
32303
|
58232
|
58233
|
153617
|
153618
|
154633
|
156280
|
156291
|
156292