Koha/installer/data/mysql/db_revs/231200046.pl
Katrin Fischer 18f92f110b
Bug 27753: DBRev 23.12.00.046
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-05-06 09:12:15 +02:00

24 lines
1.1 KiB
Perl
Executable file

use Modern::Perl;
return {
bug_number => "27753",
description => "Automate resolution of return claim when checking in an item",
up => sub {
my ($args) = @_;
my ( $dbh, $out ) = @$args{qw(dbh out)};
$dbh->do(
q{INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('AutoClaimReturnStatusOnCheckin','','NULL','When in use this system preference will automatically resolve the claim return and will update the lost authorized value upon check in.','Free')}
);
say $out "Added new system preference 'AutoClaimReturnStatusOnCheckin'";
$dbh->do(
q{INSERT IGNORE INTO systempreferences ( `variable`, `value`, `options`, `explanation`, `type` ) VALUES
('AutoClaimReturnStatusOnCheckout','','NULL','When in use this system preference will automatically resolve the claim return and will update the lost authorized value upon check out.','Free')}
);
say $out "Added new system preference 'AutoClaimReturnStatusOnCheckout'";
},
};