@@ -, +, @@ date - --- installer/data/mysql/updatedatabase.pl | 7 +++++++ koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt | 6 +++++- .../prog/en/modules/admin/preferences/acquisitions.pref | 7 ++++--- 3 files changed, 16 insertions(+), 4 deletions(-) --- a/installer/data/mysql/updatedatabase.pl +++ a/installer/data/mysql/updatedatabase.pl @@ -8800,6 +8800,13 @@ 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 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/acqui/lateorders.tt @@ -111,7 +111,11 @@ $(document).ready(function() { [% ELSE %] [% END %] - Order [% lateOrderSort %] date + [% IF ( lateOrderSort == "creation") %] + Order creation date + [% ELSE %] + Order closing date + [% END %] Estimated delivery date Vendor Information --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref +++ a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/acquisitions.pref @@ -61,11 +61,12 @@ Acquisitions: - "You can use the following fields: price, quantity, budget_code, discount, sort1, sort2" - "
For example:
price: 947$a|947$c
quantity: 969$h
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: - --