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

(-)a/Koha/Cash/Register.pm (-1 / +9 lines)
Lines 59-64 sub cashups { Link Here
59
59
60
    my $local_conditions = { code => 'CASHUP' };
60
    my $local_conditions = { code => 'CASHUP' };
61
    $conditions //= {};
61
    $conditions //= {};
62
63
    # Voided payments (status VOID) and the VOID debit adjustment should not be bankable
64
    my $exclude_void = {
65
        status          => [ { '!=' => 'VOID' }, undef ],
66
        debit_type_code => [ { '!=' => 'VOID' }, undef ],
67
    };
68
69
    $local_conditions = { %{$local_conditions}, %{$exclude_void} };
70
62
    my $merged_conditions = { %{$conditions}, %{$local_conditions} };
71
    my $merged_conditions = { %{$conditions}, %{$local_conditions} };
63
72
64
    my $rs = $self->_result->search_related(
73
    my $rs = $self->_result->search_related(
65
- 

Return to bug 40871