@@ -, +, @@ --- Koha/Old/Checkout.pm | 2 +- Koha/Old/Checkouts.pm | 2 +- Koha/Schema/Result/OldIssue.pm | 11 +++++++++++ 3 files changed, 13 insertions(+), 2 deletions(-) --- a/Koha/Old/Checkout.pm +++ a/Koha/Old/Checkout.pm @@ -20,7 +20,7 @@ use Modern::Perl; use Koha::Database; use Koha::DateUtils qw(dt_from_string); -use base qw(Koha::Object); +use base qw(Koha::Checkout); =head1 NAME --- a/Koha/Old/Checkouts.pm +++ a/Koha/Old/Checkouts.pm @@ -20,7 +20,7 @@ use Modern::Perl; use Koha::Database; use Koha::Old::Checkout; -use base qw(Koha::Objects); +use base qw(Koha::Checkouts); sub _type { return 'OldIssue'; --- a/Koha/Schema/Result/OldIssue.pm +++ a/Koha/Schema/Result/OldIssue.pm @@ -237,6 +237,17 @@ __PACKAGE__->belongs_to( # Created by DBIx::Class::Schema::Loader v0.07046 @ 2019-04-10 19:55:44 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:E2N2paWcCHg916100ry+2A +__PACKAGE__->belongs_to( + "branch", + "Koha::Schema::Result::Branch", + { branchcode => "branchcode" }, + { + is_deferrable => 1, + join_type => "LEFT", + }, +); + + __PACKAGE__->add_columns( '+auto_renew' => { is_boolean => 1 }, '+onsite_checkout' => { is_boolean => 1 } --