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

(-)a/C4/Overdues.pm (-1 / +1 lines)
Lines 563-569 sub UpdateFine { Link Here
563
    # - accumulate fines for other items
563
    # - accumulate fines for other items
564
    # so we can update $itemnum fine taking in account fine caps
564
    # so we can update $itemnum fine taking in account fine caps
565
    while (my $overdue = $overdues->next) {
565
    while (my $overdue = $overdues->next) {
566
        if ( defined $overdue->issue_id && $overdue->issue_id == $issue_id && $overdue->status eq 'UNRETURNED' ) {
566
        if ( defined $overdue->checkout && $overdue->checkout->issue_id == $issue_id && $overdue->status eq 'UNRETURNED' ) {
567
            if ($accountline) {
567
            if ($accountline) {
568
                Koha::Logger->get->debug("Not a unique accountlines record for issue_id $issue_id"); # FIXME Do we really need to log that?
568
                Koha::Logger->get->debug("Not a unique accountlines record for issue_id $issue_id"); # FIXME Do we really need to log that?
569
                #FIXME Should we still count this one in total_amount ??
569
                #FIXME Should we still count this one in total_amount ??
(-)a/Koha/Item.pm (-3 / +2 lines)
Lines 1591-1597 sub _set_found_trigger { Link Here
1591
                            interface   => C4::Context->interface,
1591
                            interface   => C4::Context->interface,
1592
                            library_id  => $branchcode,
1592
                            library_id  => $branchcode,
1593
                            item_id     => $self->itemnumber,
1593
                            item_id     => $self->itemnumber,
1594
                            issue_id    => $lost_charge->issue_id
1594
                            issue_id    => $lost_charge->checkout ? $lost_charge->checkout->issue_id : undef,
1595
                        }
1595
                        }
1596
                    );
1596
                    );
1597
1597
Lines 1747-1753 sub _set_found_trigger { Link Here
1747
                            interface   => C4::Context->interface,
1747
                            interface   => C4::Context->interface,
1748
                            library_id  => $branchcode,
1748
                            library_id  => $branchcode,
1749
                            item_id     => $self->itemnumber,
1749
                            item_id     => $self->itemnumber,
1750
                            issue_id    => $processing_charge->issue_id
1750
                            issue_id    => $processing_charge->checkout ? $processing_charge->checkout->issue_id : undef,
1751
                        }
1751
                        }
1752
                    );
1752
                    );
1753
1753
1754
- 

Return to bug 22421