View | Details | Raw Unified | Return to bug 35074
Collapse All | Expand All

(-)a/Koha/Account/Line.pm (-1 / +1 lines)
Lines 52-58 Return the patron linked to this account line Link Here
52
52
53
sub patron {
53
sub patron {
54
    my ( $self ) = @_;
54
    my ( $self ) = @_;
55
    my $rs = $self->_result->borrowernumber;
55
    my $rs = $self->_result->patron;
56
    return unless $rs;
56
    return unless $rs;
57
    return Koha::Patron->_new_from_dbic( $rs );
57
    return Koha::Patron->_new_from_dbic( $rs );
58
}
58
}
(-)a/Koha/Schema/Result/Accountline.pm (-1 / +20 lines)
Lines 399-404 __PACKAGE__->belongs_to( Link Here
399
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:21:02
399
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-01-28 20:21:02
400
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PjQR7oUkefiDt+eV69jZ3A
400
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:PjQR7oUkefiDt+eV69jZ3A
401
401
402
=head2 patron
403
404
Type: belongs_to
405
406
Related object: L<Koha::Schema::Result::Borrower>
407
408
=cut
409
410
__PACKAGE__->belongs_to(
411
  "patron",
412
  "Koha::Schema::Result::Borrower",
413
  { borrowernumber => "borrowernumber" },
414
  {
415
    is_deferrable => 1,
416
    join_type     => "LEFT",
417
    on_delete     => "SET NULL",
418
    on_update     => "CASCADE",
419
  },
420
);
421
402
=head2 library
422
=head2 library
403
423
404
Type: belongs_to
424
Type: belongs_to
405
- 

Return to bug 35074