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

(-)a/Koha/Account/Line.pm (-1 / +1 lines)
Lines 93-99 Returns a Koha::Library object representing where the accountline was recorded Link Here
93
93
94
sub library {
94
sub library {
95
    my ( $self ) = @_;
95
    my ( $self ) = @_;
96
    my $rs = $self->_result->branchcode;
96
    my $rs = $self->_result->library;
97
    return unless $rs;
97
    return unless $rs;
98
    return Koha::Library->_new_from_dbic($rs);
98
    return Koha::Library->_new_from_dbic($rs);
99
}
99
}
(-)a/Koha/Schema/Result/Accountline.pm (-1 / +20 lines)
Lines 370-375 __PACKAGE__->belongs_to( Link Here
370
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-19 09:20:20
370
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-19 09:20:20
371
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BuE4CYsSH4BwXZoQKE2MWw
371
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BuE4CYsSH4BwXZoQKE2MWw
372
372
373
=head2 library
374
375
Type: belongs_to
376
377
Related object: L<Koha::Schema::Result::Branch>
378
379
=cut
380
381
__PACKAGE__->belongs_to(
382
  "library",
383
  "Koha::Schema::Result::Branch",
384
  { branchcode => "branchcode" },
385
  {
386
    is_deferrable => 1,
387
    join_type     => "LEFT",
388
    on_delete     => "SET NULL",
389
    on_update     => "CASCADE",
390
  },
391
);
392
373
sub koha_objects_class {
393
sub koha_objects_class {
374
    'Koha::Account::Lines';
394
    'Koha::Account::Lines';
375
}
395
}
376
- 

Return to bug 25998