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

(-)a/installer/data/mysql/account_offset_types.sql (-1 / +2 lines)
Lines 11-14 INSERT INTO account_offset_types ( type ) VALUES Link Here
11
('Rental Fee'),
11
('Rental Fee'),
12
('Fine Update'),
12
('Fine Update'),
13
('Fine'),
13
('Fine'),
14
('Void Payment');
14
('Void Payment'),
15
('credit_applied');
(-)a/installer/data/mysql/atomicupdate/bug_20997.perl (+11 lines)
Line 0 Link Here
1
$DBversion = 'XXX';
2
if( CheckVersion( $DBversion ) ) {
3
4
    # Add 'credit_applied' offset type
5
    $dbh->do(q{
6
        INSERT IGNORE INTO `account_offset_types` (`type`) VALUES ('credit_applied');
7
    });
8
9
    SetVersion( $DBversion );
10
    print "Upgrade to $DBversion done (Bug 20997 - Add Koha::Account::Line::apply)\n";
11
}
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/account_offset_type.inc (-1 / +1 lines)
Lines 1-4 Link Here
1
[% SWITCH account_offset.type %]
1
[% SWITCH account_offset.type %]
2
    [% CASE 'credit_applied' %]Credit applied
2
    [% CASE 'Payment' %]Payment
3
    [% CASE 'Payment' %]Payment
3
    [% CASE 'Manual Credit' %]Manual credit
4
    [% CASE 'Manual Credit' %]Manual credit
4
    [% CASE 'Manual Debit' %]Manual invoice
5
    [% CASE 'Manual Debit' %]Manual invoice
5
- 

Return to bug 20997