Koha/installer/data/mysql/db_revs/230600058.pl
Tomas Cohen Arazi 29bf7500f9
Bug 33664: DBRev 23.06.00.058
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
2023-11-01 17:23:14 -03:00

22 lines
669 B
Perl
Executable file

use Modern::Perl;
return {
bug_number => "33664",
description => "Allow cancelling of orders from closed baskets",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
# Do you stuffs here
$dbh->do(
q{
INSERT IGNORE INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type` )
VALUES
('CancelOrdersInClosedBaskets', '0', NULL, 'Allow/Do not allow cancelling order lines in closed baskets.', 'YesNo')
}
);
# sysprefs
say $out "Added new system preference 'CancelOrdersInClosedBaskets'";
},
};