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

(-)a/Koha/Schema/Result/Item.pm (-6 / +9 lines)
Lines 975-985 __PACKAGE__->many_to_many( Link Here
975
__PACKAGE__->has_many(
975
__PACKAGE__->has_many(
976
  "current_branchtransfers",
976
  "current_branchtransfers",
977
  "Koha::Schema::Result::Branchtransfer",
977
  "Koha::Schema::Result::Branchtransfer",
978
  { 'foreign.itemnumber' => 'self.itemnumber' },
978
  sub {
979
  {
979
      my $args = shift;
980
      where => { datearrived => undef, datecancelled => undef },
980
981
      order_by => [ { -desc => 'datesent' }, { -asc => 'daterequested' } ]
981
      return {
982
  }
982
          "$args->{foreign_alias}.itemnumber" => { -ident => "$args->{self_alias}.itemnumber" },
983
          "$args->{foreign_alias}.datearrived" => undef,
984
          "$args->{foreign_alias}.datecancelled" => undef,
985
      }
986
  },
983
);
987
);
984
988
985
# Relationship with bundled items
989
# Relationship with bundled items
986
- 

Return to bug 34639