View | Details | Raw Unified | Return to bug 35612
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_35612.pl (-1 / +22 lines)
Line 0 Link Here
0
- 
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_success say_info);
3
4
return {
5
    bug_number  => "35612",
6
    description => "System preference to control which branchcode is recorded in populate accountlines",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            q{INSERT INTO systempreferences (`variable`, `value`, `options`, `explanation`, `type`) VALUES ('AccountLinesBranchSource', 'circcontrolbranch', 'Choose how the branchcode is recorded in accountlines for overdue and similar charges.', 'patronhomebranch|itemhomebranch|checkoutbranch|circcontrolbranch', 'Choice')}
14
        );
15
16
        # sysprefs
17
        say $out "Added new system preference 'AccountLinesBranchSource'";
18
19
        # Other information
20
        say_success( $out, "System preference added successfully." );
21
    },
22
};

Return to bug 35612