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

(-)a/C4/Overdues.pm (-1 / +1 lines)
Lines 561-567 sub UpdateFine { Link Here
561
    # - accumulate fines for other items
561
    # - accumulate fines for other items
562
    # so we can update $itemnum fine taking in account fine caps
562
    # so we can update $itemnum fine taking in account fine caps
563
    while (my $overdue = $overdues->next) {
563
    while (my $overdue = $overdues->next) {
564
        if ( defined $overdue->issue_id && $overdue->issue_id == $issue_id && $overdue->status eq 'UNRETURNED' ) {
564
        if ( defined $overdue->checkout && $overdue->checkout->issue_id == $issue_id && $overdue->status eq 'UNRETURNED' ) {
565
            if ($accountline) {
565
            if ($accountline) {
566
                Koha::Logger->get->debug("Not a unique accountlines record for issue_id $issue_id"); # FIXME Do we really need to log that?
566
                Koha::Logger->get->debug("Not a unique accountlines record for issue_id $issue_id"); # FIXME Do we really need to log that?
567
                #FIXME Should we still count this one in total_amount ??
567
                #FIXME Should we still count this one in total_amount ??
(-)a/Koha/Item.pm (-3 / +2 lines)
Lines 1573-1579 sub _set_found_trigger { Link Here
1573
                            interface   => C4::Context->interface,
1573
                            interface   => C4::Context->interface,
1574
                            library_id  => $branchcode,
1574
                            library_id  => $branchcode,
1575
                            item_id     => $self->itemnumber,
1575
                            item_id     => $self->itemnumber,
1576
                            issue_id    => $lost_charge->issue_id
1576
                            issue_id    => $lost_charge->checkout ? $lost_charge->checkout->issue_id : undef,
1577
                        }
1577
                        }
1578
                    );
1578
                    );
1579
1579
Lines 1729-1735 sub _set_found_trigger { Link Here
1729
                            interface   => C4::Context->interface,
1729
                            interface   => C4::Context->interface,
1730
                            library_id  => $branchcode,
1730
                            library_id  => $branchcode,
1731
                            item_id     => $self->itemnumber,
1731
                            item_id     => $self->itemnumber,
1732
                            issue_id    => $processing_charge->issue_id
1732
                            issue_id    => $processing_charge->checkout ? $processing_charge->checkout->issue_id : undef,
1733
                        }
1733
                        }
1734
                    );
1734
                    );
1735
1735
1736
- 

Return to bug 22421