Bug 18072: Add Koha objects for Branch Transfer Limit

This patch also fixes documentation in Koha/Item/Transfer.pm and
Koha/Item/Transfers.pm.

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Lari Taskula 2017-02-07 13:16:30 +02:00 committed by Nick Clemens
parent d6b1b653e0
commit 97ce836093
4 changed files with 96 additions and 2 deletions

View file

@ -25,7 +25,7 @@ use base qw(Koha::Object);
=head1 NAME
Koha::Item::Transfer - Koha Transfer Object class
Koha::Item::Transfer - Koha Item Transfer Object class
=head1 API

View file

@ -0,0 +1,45 @@
package Koha::Item::Transfer::Limit;
# Copyright Koha-Suomi Oy 2017
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
use Carp;
use Koha::Database;
use base qw(Koha::Object);
=head1 NAME
Koha::Item::Transfer::Limit - Koha Item Transfer Limit Object class
=head1 API
=head2 Class Methods
=cut
=head3 type
=cut
sub _type {
return 'BranchTransferLimit';
}
1;

View file

@ -0,0 +1,49 @@
package Koha::Item::Transfer::Limits;
# Copyright Koha-Suomi Oy 2017
# This file is part of Koha.
#
# Koha is free software; you can redistribute it and/or modify it under the
# terms of the GNU General Public License as published by the Free Software
# Foundation; either version 3 of the License, or (at your option) any later
# version.
#
# Koha is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
# A PARTICULAR PURPOSE. See the GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License along
# with Koha; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
use Modern::Perl;
use Koha::Database;
use Koha::Item::Transfer::Limit;
use base qw(Koha::Objects);
=head1 NAME
Koha::Item::Transfer::Limits - Koha Item Transfer Limits Object set class
=head1 API
=head2 Class Methods
=cut
=head3 type
=cut
sub _type {
return 'BranchTransferLimit';
}
sub object_class {
return 'Koha::Item::Transfer::Limit';
}
1;

View file

@ -27,7 +27,7 @@ use base qw(Koha::Objects);
=head1 NAME
Koha::Transfers - Koha Transfer Object set class
Koha::Item::Transfers - Koha Item Transfer Object set class
=head1 API