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

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/checkouts-table.inc (-1 / +1 lines)
Lines 149-155 Link Here
149
            <label for="new_lost_status">New item lost value:</label>
149
            <label for="new_lost_status">New item lost value:</label>
150
            [% SET itemlost = AuthorisedValues.GetAuthValueDropbox('LOST') %]
150
            [% SET itemlost = AuthorisedValues.GetAuthValueDropbox('LOST') %]
151
            <select class="form-control" id="new_lost_status">
151
            <select class="form-control" id="new_lost_status">
152
              <option value="0"></option>
152
              <option value="0">(Not lost)</option>
153
              [% FOREACH lost IN itemlost %]
153
              [% FOREACH lost IN itemlost %]
154
                  <option value="[% lost.authorised_value | html %]">[% lost.lib | html %]</option>
154
                  <option value="[% lost.authorised_value | html %]">[% lost.lib | html %]</option>
155
              [% END %]
155
              [% END %]
(-)a/koha-tmpl/intranet-tmpl/prog/js/checkouts.js (-1 / +3 lines)
Lines 1011-1017 $(document).ready(function() { Link Here
1011
                                ? '<li><a href="#" class="return-claim-tools-delete" data-return-claim-id="' + oObj.id + '"><i class="fa fa-trash"></i> ' + __("Delete") + '</a></li>'
1011
                                ? '<li><a href="#" class="return-claim-tools-delete" data-return-claim-id="' + oObj.id + '"><i class="fa fa-trash"></i> ' + __("Delete") + '</a></li>'
1012
                                : "";
1012
                                : "";
1013
                            let resolve_html = ! oObj.resolution
1013
                            let resolve_html = ! oObj.resolution
1014
                                ? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '"><i class="fa fa-check-square"></i> ' + __("Resolve") + '</a></li>'
1014
                                ? '<li><a href="#" class="return-claim-tools-resolve" data-return-claim-id="' + oObj.id + '" data-current-lost-status="' + escape_str(oObj.itemlost) + '"><i class="fa fa-check-square"></i> ' + __("Resolve") + '</a></li>'
1015
                                : "";
1015
                                : "";
1016
1016
1017
                            return  '<div class="btn-group">'
1017
                            return  '<div class="btn-group">'
Lines 1135-1142 $(document).ready(function() { Link Here
1135
    // Handle return claim resolution
1135
    // Handle return claim resolution
1136
    $('body').on('click', '.return-claim-tools-resolve', function() {
1136
    $('body').on('click', '.return-claim-tools-resolve', function() {
1137
        let id = $(this).data('return-claim-id');
1137
        let id = $(this).data('return-claim-id');
1138
        let current_lost_status = $(this).data('current-lost-status');
1138
1139
1139
        $('#claims-returned-resolved-modal-id').val(id);
1140
        $('#claims-returned-resolved-modal-id').val(id);
1141
        $("#new_lost_status").val(current_lost_status);
1140
        $('#claims-returned-resolved-modal').modal()
1142
        $('#claims-returned-resolved-modal').modal()
1141
    });
1143
    });
1142
1144
(-)a/svc/return_claims (-2 / +2 lines)
Lines 77-83 my $sql = qq{ Link Here
77
        biblio.author,
77
        biblio.author,
78
78
79
        items.enumchron,
79
        items.enumchron,
80
        items.barcode
80
        items.barcode,
81
        items.itemlost
81
    FROM return_claims
82
    FROM return_claims
82
        LEFT JOIN items USING ( itemnumber )
83
        LEFT JOIN items USING ( itemnumber )
83
        LEFT JOIN biblio USING ( biblionumber )
84
        LEFT JOIN biblio USING ( biblionumber )
84
- 

Return to bug 28271