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

(-)a/Koha/Account.pm (-2 / +3 lines)
Lines 488-493 sub add_debit { Link Here
488
488
489
    my $schema = Koha::Database->new->schema;
489
    my $schema = Koha::Database->new->schema;
490
490
491
    my $offset_type = $Koha::Account::offset_type->{$debit_type} // 'Manual Debit';
492
491
    my $line;
493
    my $line;
492
    $schema->txn_do(
494
    $schema->txn_do(
493
        sub {
495
        sub {
Lines 516-522 sub add_debit { Link Here
516
            my $account_offset = Koha::Account::Offset->new(
518
            my $account_offset = Koha::Account::Offset->new(
517
                {
519
                {
518
                    debit_id => $line->id,
520
                    debit_id => $line->id,
519
                    type     => $Koha::Account::offset_type->{$debit_type},
521
                    type     => $offset_type,
520
                    amount   => $amount
522
                    amount   => $amount
521
                }
523
                }
522
            )->store();
524
            )->store();
523
- 

Return to bug 23049