Bug 32030: ERM - Koha::ERM::Agreement[s] objects

Signed-off-by: Jonathan Field <jonathan.field@ptfs-europe.com>

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-02-24 16:52:22 +01:00 committed by Tomas Cohen Arazi
parent 8f82195af2
commit 9cef83726c
Signed by: tomascohen
GPG key ID: 0A272EA1B2F3C15F
2 changed files with 97 additions and 0 deletions

44
Koha/ERM/Agreement.pm Normal file
View file

@ -0,0 +1,44 @@
package Koha::ERM::Agreement;
# 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, see <http://www.gnu.org/licenses>.
use Modern::Perl;
use Koha::Database;
use base qw(Koha::Object);
=head1 NAME
Koha::ERM::Agreement - Koha ErmAgreement Object class
=head1 API
=head2 Class Methods
=cut
=head2 Internal methods
=head3 _type
=cut
sub _type {
return 'ErmAgreement';
}
1;

53
Koha/ERM/Agreements.pm Normal file
View file

@ -0,0 +1,53 @@
package Koha::ERM::Agreements;
# 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, see <http://www.gnu.org/licenses>.
use Modern::Perl;
use Koha::Database;
use Koha::ERM::Agreement;
use base qw(Koha::Objects);
=head1 NAME
Koha::ERM::Agreements- Koha ErmAgreement Object set class
=head1 API
=head2 Class Methods
=cut
=head3 type
=cut
sub _type {
return 'ErmAgreement';
}
=head3 object_class
=cut
sub object_class {
return 'Koha::ERM::Agreement';
}
1;