Bugzilla – Attachment 138463 Details for
Bug 30612
Add account_lines method to Koha::[Old::]Checkout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 30612: Update schema files
Bug-30612-Update-schema-files.patch (text/plain), 1.47 KB, created by
Jonathan Druart
on 2022-08-01 12:45:43 UTC
(
hide
)
Description:
Bug 30612: Update schema files
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2022-08-01 12:45:43 UTC
Size:
1.47 KB
patch
obsolete
>From a5b03de86fd32b0a51b34fef8e16f6c7fcb2cfa3 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Wed, 8 Jun 2022 13:43:01 -0400 >Subject: [PATCH] Bug 30612: Update schema files > >Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >--- > Koha/Schema/Result/Issue.pm | 7 +++++++ > Koha/Schema/Result/OldIssue.pm | 7 +++++++ > 2 files changed, 14 insertions(+) > >diff --git a/Koha/Schema/Result/Issue.pm b/Koha/Schema/Result/Issue.pm >index cd024b9de59..7ad235ddf33 100644 >--- a/Koha/Schema/Result/Issue.pm >+++ b/Koha/Schema/Result/Issue.pm >@@ -403,6 +403,13 @@ __PACKAGE__->might_have( > { cascade_copy => 0, cascade_delete => 0 }, > ); > >+__PACKAGE__->has_many( >+ "accountlines", >+ "Koha::Schema::Result::Accountline", >+ { "foreign.issue_id" => "self.issue_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > sub koha_object_class { > 'Koha::Checkout'; > } >diff --git a/Koha/Schema/Result/OldIssue.pm b/Koha/Schema/Result/OldIssue.pm >index 759f7185e19..1ae3e2f87a7 100644 >--- a/Koha/Schema/Result/OldIssue.pm >+++ b/Koha/Schema/Result/OldIssue.pm >@@ -366,6 +366,13 @@ Related object: L<Koha::Schema::Result::ReturnClaim> > > =cut > >+__PACKAGE__->has_many( >+ "accountlines", >+ "Koha::Schema::Result::Accountline", >+ { "foreign.issue_id" => "self.issue_id" }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > __PACKAGE__->might_have( > "return_claim", > "Koha::Schema::Result::ReturnClaim", >-- >2.25.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 30612
:
133841
|
134567
|
135827
|
135828
|
135829
|
138461
|
138462
| 138463 |
138464
|
138465