@@ -, +, @@ --- Koha/Schema/Result/Accountline.pm | 34 ++++++++++++++++++++++++++++++++-- Koha/Schema/Result/Borrower.pm | 19 ++----------------- 2 files changed, 34 insertions(+), 19 deletions(-) --- a/Koha/Schema/Result/Accountline.pm +++ a/Koha/Schema/Result/Accountline.pm @@ -185,6 +185,36 @@ __PACKAGE__->set_primary_key("accountlines_id"); =head1 RELATIONS +=head2 account_offsets_credits + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "account_offsets_credits", + "Koha::Schema::Result::AccountOffset", + { "foreign.credit_id" => "self.accountlines_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + +=head2 account_offsets_debits + +Type: has_many + +Related object: L + +=cut + +__PACKAGE__->has_many( + "account_offsets_debits", + "Koha::Schema::Result::AccountOffset", + { "foreign.debit_id" => "self.accountlines_id" }, + { cascade_copy => 0, cascade_delete => 0 }, +); + =head2 borrowernumber Type: belongs_to @@ -221,8 +251,8 @@ __PACKAGE__->belongs_to( ); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-01-26 17:18:34 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:RCQohhphtg+0+RszpB4wLg +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-02-15 16:13:26 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OuH2XMR7vE5PQB5ih0VQaw # You can replace this text with custom content, and it will be preserved on regeneration --- a/Koha/Schema/Result/Borrower.pm +++ a/Koha/Schema/Result/Borrower.pm @@ -673,21 +673,6 @@ __PACKAGE__->has_many( { cascade_copy => 0, cascade_delete => 0 }, ); -=head2 accountoffsets - -Type: has_many - -Related object: L - -=cut - -__PACKAGE__->has_many( - "accountoffsets", - "Koha::Schema::Result::Accountoffset", - { "foreign.borrowernumber" => "self.borrowernumber" }, - { cascade_copy => 0, cascade_delete => 0 }, -); - =head2 aqbasketusers Type: has_many @@ -1334,8 +1319,8 @@ Composing rels: L -> ordernumber __PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber"); -# Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-31 10:39:35 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Lc6GQ2E7d+tyzTk3v2sWjQ +# Created by DBIx::Class::Schema::Loader v0.07042 @ 2017-02-15 16:13:26 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:KAlC6MkJSFEqmlzXatkmaA __PACKAGE__->belongs_to( "guarantor", --