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:
parent
5b7ec36b7f
commit
6a3262de99
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -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 },
|
||||
|
|
|
|||
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
);
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue