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 1695-1701 sub AddIssue { Link Here
1695
            $item_object->itemlost(0);
1695
            $item_object->itemlost(0);
1696
            $item_object->onloan($datedue->ymd());
1696
            $item_object->onloan($datedue->ymd());
1697
            $item_object->datelastborrowed( dt_from_string()->ymd() );
1697
            $item_object->datelastborrowed( dt_from_string()->ymd() );
1698
            $item_object->datelastseen( dt_from_string()->ymd() );
1698
            $item_object->datelastseen( dt_from_string() );
1699
            $item_object->store( { log_action => 0, skip_holds_queue => 1 } );
1699
            $item_object->store( { log_action => 0, skip_holds_queue => 1 } );
1700
1700
1701
            # If the item was lost, it has now been found, charge the overdue if necessary
1701
            # 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 406-412 sub ModDateLastSeen { Link Here
406
    my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 0 });
406
    my $today = output_pref({ dt => dt_from_string, dateformat => 'iso', dateonly => 0 });
407
407
408
    my $item = Koha::Items->find($itemnumber);
408
    my $item = Koha::Items->find($itemnumber);
409
    $item->datelastseen(dt_from_string->ymd);
409
    $item->datelastseen(dt_from_string);
410
    my $log = $item->itemlost && !$leave_item_lost ? 1 : 0; # If item was lost, record the change to the item
410
    my $log = $item->itemlost && !$leave_item_lost ? 1 : 0; # If item was lost, record the change to the item
411
    $item->itemlost(0) unless $leave_item_lost;
411
    $item->itemlost(0) unless $leave_item_lost;
412
    $item->store({ log_action => $log, skip_record_index => $params->{skip_record_index}, skip_holds_queue => $params->{skip_holds_queue} });
412
    $item->store({ log_action => $log, skip_record_index => $params->{skip_record_index}, skip_holds_queue => $params->{skip_holds_queue} });
413
- 

Return to bug 31212