Bug 30612: Rename other occurrences

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Jonathan Druart 2022-08-01 14:44:04 +02:00 committed by Tomas Cohen Arazi
parent 5b7ec36b7f
commit 6a3262de99
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
6 changed files with 12 additions and 12 deletions

View File

@ -89,8 +89,8 @@ Return the checked out account_lines
sub account_lines {
my ( $self ) = @_;
my $accountlines_rs = $self->_result->accountlines;
return Koha::Account::Lines->_new_from_dbic( $accountlines_rs );
my $account_lines_rs = $self->_result->account_lines;
return Koha::Account::Lines->_new_from_dbic( $account_lines_rs );
}
=head3 library

View File

@ -55,8 +55,8 @@ Return the checked out account_lines
sub account_lines {
my ( $self ) = @_;
my $accountlines_rs = $self->_result->accountlines;
return Koha::Account::Lines->_new_from_dbic( $accountlines_rs );
my $account_lines_rs = $self->_result->account_lines;
return Koha::Account::Lines->_new_from_dbic( $account_lines_rs );
}
=head3 library

View File

@ -404,7 +404,7 @@ __PACKAGE__->might_have(
);
__PACKAGE__->has_many(
"accountlines",
"account_lines",
"Koha::Schema::Result::Accountline",
{ "foreign.issue_id" => "self.issue_id" },
{ cascade_copy => 0, cascade_delete => 0 },

View File

@ -367,7 +367,7 @@ Related object: L<Koha::Schema::Result::ReturnClaim>
=cut
__PACKAGE__->has_many(
"accountlines",
"account_lines",
"Koha::Schema::Result::Accountline",
{ "foreign.issue_id" => "self.issue_id" },
{ cascade_copy => 0, cascade_delete => 0 },

View File

@ -347,7 +347,7 @@ subtest 'apply() tests' => sub {
)->store();
my $a = $checkout->account_lines->next;
is( $a->id, $accountline->id, "Koha::Checkout::accountlines returns the related acountline" );
is( $a->id, $accountline->id, "Koha::Checkout::account_lines returns the related acountline" );
# Enable renewing upon fine payment
t::lib::Mocks::mock_preference( 'RenewAccruingItemWhenPaid', 1 );

View File

@ -128,18 +128,18 @@ subtest 'account_lines' => sub {
}
)->store();
my $accountlines = $retrieved_checkout_1->account_lines;
is( ref($accountlines), 'Koha::Account::Lines',
'Koha::Checkout->accountlines should return a Koha::Item' );
my $account_lines = $retrieved_checkout_1->account_lines;
is( ref($account_lines), 'Koha::Account::Lines',
'Koha::Checkout->account_lines should return a Koha::Account::Lines' );
my $line = $accountlines->next;
my $line = $account_lines->next;
is( ref($line), 'Koha::Account::Line',
'next returns a Koha::Account::Line' );
is(
$accountline->id,
$line->id,
'Koha::Checkout->accountlines should return the correct accountlines'
'Koha::Checkout->account_lines should return the correct account_lines'
);
};