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

(-)a/C4/Circulation.pm (-2 / +2 lines)
Lines 42-48 use Koha::Account; Link Here
42
use Koha::AuthorisedValues;
42
use Koha::AuthorisedValues;
43
use Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue;
43
use Koha::BackgroundJob::BatchUpdateBiblioHoldsQueue;
44
use Koha::Biblioitems;
44
use Koha::Biblioitems;
45
use Koha::DateUtils qw( dt_from_string );
45
use Koha::DateUtils qw( dt_from_string output_pref );
46
use Koha::Calendar;
46
use Koha::Calendar;
47
use Koha::Checkouts;
47
use Koha::Checkouts;
48
use Koha::Illrequests;
48
use Koha::Illrequests;
Lines 1685-1691 sub AddIssue { Link Here
1685
            $item_object->itemlost(0);
1685
            $item_object->itemlost(0);
1686
            $item_object->onloan($datedue->ymd());
1686
            $item_object->onloan($datedue->ymd());
1687
            $item_object->datelastborrowed( dt_from_string()->ymd() );
1687
            $item_object->datelastborrowed( dt_from_string()->ymd() );
1688
            $item_object->datelastseen( dt_from_string()->ymd() );
1688
            $item_object->datelastseen( dt_from_string() );
1689
            $item_object->store( { log_action => 0, skip_holds_queue => 1 } );
1689
            $item_object->store( { log_action => 0, skip_holds_queue => 1 } );
1690
1690
1691
            # If the item was lost, it has now been found, charge the overdue if necessary
1691
            # If the item was lost, it has now been found, charge the overdue if necessary
(-)a/C4/Items.pm (-3 / +2 lines)
Lines 56-62 use DateTime::Format::MySQL; Link Here
56
                  # debugging; so please don't remove this
56
                  # debugging; so please don't remove this
57
57
58
use Koha::AuthorisedValues;
58
use Koha::AuthorisedValues;
59
use Koha::DateUtils qw( dt_from_string );
59
use Koha::DateUtils qw( dt_from_string output_pref );
60
use Koha::Database;
60
use Koha::Database;
61
61
62
use Koha::Biblios;
62
use Koha::Biblios;
Lines 402-408 sub ModDateLastSeen { Link Here
402
    my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 0 });
402
    my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 0 });
403
403
404
    my $item = Koha::Items->find($itemnumber);
404
    my $item = Koha::Items->find($itemnumber);
405
    $item->datelastseen(dt_from_string->ymd);
405
    $item->datelastseen(dt_from_string);
406
    my $log = $item->itemlost && !$leave_item_lost ? 1 : 0; # If item was lost, record the change to the item
406
    my $log = $item->itemlost && !$leave_item_lost ? 1 : 0; # If item was lost, record the change to the item
407
    $item->itemlost(0) unless $leave_item_lost;
407
    $item->itemlost(0) unless $leave_item_lost;
408
    $item->store({ log_action => $log, skip_record_index => $params->{skip_record_index}, skip_holds_queue => $params->{skip_holds_queue} });
408
    $item->store({ log_action => $log, skip_record_index => $params->{skip_record_index}, skip_holds_queue => $params->{skip_holds_queue} });
409
- 

Return to bug 31212