From cb8228ff0a0956ebac314b001ebbd019f0b520e3 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 18 Oct 2023 11:34:07 -0300 Subject: [PATCH] Bug 31631: DBRev 23.06.00.037 Signed-off-by: Tomas Cohen Arazi --- Koha.pm | 2 +- .../230600037.pl} | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) rename installer/data/mysql/{atomicupdate/bug_31631-add_CalculateFundValuesIncludingTax_syspref.pl => db_revs/230600037.pl} (69%) diff --git a/Koha.pm b/Koha.pm index 651a3c5e93..406ea8de17 100644 --- a/Koha.pm +++ b/Koha.pm @@ -29,7 +29,7 @@ use vars qw{ $VERSION }; # - #4 : the developer version. The 4th number is the database subversion. # used by developers when the database changes. updatedatabase take care of the changes itself # and is automatically called by Auth.pm when needed. -$VERSION = "23.06.00.036"; +$VERSION = "23.06.00.037"; sub version { return $VERSION; diff --git a/installer/data/mysql/atomicupdate/bug_31631-add_CalculateFundValuesIncludingTax_syspref.pl b/installer/data/mysql/db_revs/230600037.pl similarity index 69% rename from installer/data/mysql/atomicupdate/bug_31631-add_CalculateFundValuesIncludingTax_syspref.pl rename to installer/data/mysql/db_revs/230600037.pl index 0226890cea..86cf69c15d 100755 --- a/installer/data/mysql/atomicupdate/bug_31631-add_CalculateFundValuesIncludingTax_syspref.pl +++ b/installer/data/mysql/db_revs/230600037.pl @@ -2,7 +2,7 @@ use Modern::Perl; return { bug_number => "31631", - description => "Add new system preference CalculateFundValuesIncludingTax", + description => "Allow choosing for tax-exclusive values to be used for calculating fund values (spent, ordered)", up => sub { my ($args) = @_; my ( $dbh, $out ) = @$args{qw(dbh out)}; @@ -10,5 +10,7 @@ return { $dbh->do( q{INSERT IGNORE INTO systempreferences (variable, value, options, explanation, type) VALUES ('CalculateFundValuesIncludingTax', '1', NULL, 'Include tax in the calculated fund values (spent, ordered) for all supplier configurations', 'YesNo')} ); + + say $out "Added new system preference 'CalculateFundValuesIncludingTax'"; }, }; -- 2.39.5