Bugzilla – Attachment 31064 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.43 KB, created by
simith.doliveira
on 2014-08-21 17:31:02 UTC
(
hide
)
Description:
Bug 12732 - Sort late orders by basket creation or closing date -
Filename:
MIME Type:
Creator:
simith.doliveira
Created:
2014-08-21 17:31:02 UTC
Size:
3.43 KB
patch
obsolete
>From baf95b9428d05113353745aaedfa974780aa1a76 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. >--- > installer/data/mysql/updatedatabase.pl | 8 ++++++++ > koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt | 6 +++++- > .../prog/en/modules/admin/preferences/acquisitions.pref | 7 ++++--- > 3 files changed, 17 insertions(+), 4 deletions(-) > >diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl >index de77bf3..e68ea9e 100755 >--- a/installer/data/mysql/updatedatabase.pl >+++ b/installer/data/mysql/updatedatabase.pl >@@ -8613,6 +8613,14 @@ if ( CheckVersion($DBversion) ) { > SetVersion($DBversion); > } > >+$DBversion = 'XXX'; >+if ( CheckVersion($DBversion) ) { >+ $dbh->do(" >+ INSERT INTO systempreferences (variable,value,explanation,type) VALUES ('AcqLateOrderUseCreationDate', 'closing', 'creation|closing', 'Change late order default sort.', 'Choice')"); >+ print "Upgrade to $DBversion done (Bug 12732 - Sort late orders by basket creation or closing date)\n"; >+ SetVersion($DBversion); >+} >+ > =head1 FUNCTIONS > > =head2 TableExists($table) >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 a1a3947..03ef411 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt >@@ -111,7 +111,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 a6e9d11..618c235 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 >@@ -58,11 +58,12 @@ Acquisitions: > - "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2" > - "<br/>For example:<br/>price: 947$a|947$c<br/>quantity: 969$h<br/>budget_code: 922$a" > - >+ - 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. > > Printing: > - >-- >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