Line 0
Link Here
|
|
|
1 |
use Modern::Perl; |
2 |
use Koha::Installer::Output qw(say_warning say_failure say_success say_info); |
3 |
|
4 |
return { |
5 |
bug_number => "38222", |
6 |
description => "Add cancellation reasons to bookings", |
7 |
up => sub { |
8 |
my ($args) = @_; |
9 |
my ( $dbh, $out ) = @$args{qw(dbh out)}; |
10 |
|
11 |
$dbh->do( |
12 |
q{ |
13 |
INSERT IGNORE INTO authorised_value_categories (category_name, is_system) |
14 |
VALUES |
15 |
('BOOKING_CANCELLATION', 1) |
16 |
} |
17 |
); |
18 |
say_success( $out, "Added BOOKING_CANCELLATION AV category" ); |
19 |
}, |
20 |
}; |