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

(-)a/Koha/Account.pm (-2 / +6 lines)
Lines 113-119 sub pay { Link Here
113
    }
113
    }
114
114
115
    my $patron = Koha::Patrons->find( $self->{patron_id} );
115
    my $patron = Koha::Patrons->find( $self->{patron_id} );
116
    my @account_offsets = $payment->credit_offsets->as_list;
116
    my @account_offsets = $payment->credit_offsets(
117
        {
118
            type => $Koha::Account::offset_type->{$type},
119
            -not => { debit_id => undef }
120
        }
121
    )->as_list;
117
    if ( C4::Context->preference('UseEmailReceipts') ) {
122
    if ( C4::Context->preference('UseEmailReceipts') ) {
118
        if (
123
        if (
119
            my $letter = C4::Letters::GetPreparedLetter(
124
            my $letter = C4::Letters::GetPreparedLetter(
120
- 

Return to bug 29139