Bug 31631: DBRev 23.06.00.037

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Tomás Cohen Arazi 2023-10-18 11:34:07 -03:00
parent ef16271ed5
commit cb8228ff0a
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -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'";
},
};