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

(-)a/C4/Circulation.pm (+6 lines)
Lines 3679-3684 sub LostItem{ Link Here
3679
3679
3680
        MarkIssueReturned($borrowernumber,$itemnumber,undef,undef,$patron->privacy) if $mark_returned;
3680
        MarkIssueReturned($borrowernumber,$itemnumber,undef,undef,$patron->privacy) if $mark_returned;
3681
    }
3681
    }
3682
3683
    my $transfers = GetTransfers($itemnumber);
3684
    if ( C4::Context->preference('LostItemCancelOutstandingTransfers') && $transfers ) {
3685
         my $deletedtransfer = DeleteTransfer($itemnumber);
3686
    }
3687
3682
}
3688
}
3683
3689
3684
sub GetOfflineOperations {
3690
sub GetOfflineOperations {
(-)a/installer/data/mysql/atomicupdate/bug_21732-cancel_outstanding_branch_transfers_when_marked_as_lost_syspref.sql (+1 lines)
Line 0 Link Here
1
INSERT INTO systempreferences (variable, value, options, explanation, type) VALUES ('LostItemCancelOutstandingTransfers', 0, 'Enable|Disable', 'When an item marked as lost has a outstanding branch transfer, cancel the outstanding transfer', 'YesNo');
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/circulation.pref (-1 / +6 lines)
Lines 595-600 Circulation: Link Here
595
            - pref: ReservesMaxPickUpDelay
595
            - pref: ReservesMaxPickUpDelay
596
              class: integer
596
              class: integer
597
            - days.
597
            - days.
598
        -
599
            - pref: LostItemCancelOutstandingTransfers
600
              choices:
601
                  yes: "Enable"
602
                  no: "Disable"
603
            - When an item marked as lost has a outstanding branch transfer, cancel the outstanding transfer
598
        -
604
        -
599
            - pref: ExpireReservesMaxPickUpDelay
605
            - pref: ExpireReservesMaxPickUpDelay
600
              choices:
606
              choices:
601
- 

Return to bug 21732