Bug 24603: (follow-up) Update to double entry accounting
[koha.git] / installer / data / mysql / atomicupdate / bug_24603.perl
1 $DBversion = 'XXX';    # will be replaced by the RM
2 if ( CheckVersion($DBversion) ) {
3
4     $dbh->do(
5         qq{
6             INSERT IGNORE INTO account_credit_types (code, description, can_be_added_manually, is_system)
7             VALUES
8               ('CANCELLATION', 'A cancellation applied to a patron charge', 0, 1)
9         }
10     );
11
12     $dbh->do(
13         qq{
14         INSERT IGNORE INTO account_offset_types ( type ) VALUES ('CANCELLATION');
15     }
16     );
17
18     # Always end with this (adjust the bug info)
19     NewVersion( $DBversion, 24603, "Add CANCELLATION credit_type_code" );
20 }