Bugzilla – Attachment 180494 Details for
Bug 38457
Add additional fields support to debit types
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 38457: DBIC Add AdditionalFields to AccountDebitType
Bug-38457-DBIC-Add-AdditionalFields-to-AccountDebi.patch (text/plain), 1.54 KB, created by
Martin Renvoize (ashimema)
on 2025-04-03 12:13:04 UTC
(
hide
)
Description:
Bug 38457: DBIC Add AdditionalFields to AccountDebitType
Filename:
MIME Type:
Creator:
Martin Renvoize (ashimema)
Created:
2025-04-03 12:13:04 UTC
Size:
1.54 KB
patch
obsolete
>From b68cb56407c36ca51ec0cb68e01f780c1d1d9b14 Mon Sep 17 00:00:00 2001 >From: Martin Renvoize <martin.renvoize@ptfs-europe.com> >Date: Tue, 17 Dec 2024 16:19:18 +0000 >Subject: [PATCH] Bug 38457: DBIC Add AdditionalFields to AccountDebitType > >Sponsored-by: PTFS Europe <https://ptfs-europe.com> >--- > Koha/Schema/Result/AccountDebitType.pm | 18 +++++++++++++++++- > 1 file changed, 17 insertions(+), 1 deletion(-) > >diff --git a/Koha/Schema/Result/AccountDebitType.pm b/Koha/Schema/Result/AccountDebitType.pm >index 7b00d5883dd..ca7a1bc42e8 100644 >--- a/Koha/Schema/Result/AccountDebitType.pm >+++ b/Koha/Schema/Result/AccountDebitType.pm >@@ -148,6 +148,22 @@ __PACKAGE__->has_many( > # Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-01-10 14:49:18 > # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9+mMPMSWcc/PwryYNQ2Jqg > >+__PACKAGE__->has_many( >+ "additional_field_values", >+ "Koha::Schema::Result::AdditionalFieldValue", >+ sub { >+ my ($args) = @_; >+ >+ return { >+ "$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.code" }, >+ >+ "$args->{foreign_alias}.field_id" => >+ { -in => \'(SELECT id FROM additional_fields WHERE tablename="account_debit_types")' }, >+ }; >+ }, >+ { cascade_copy => 0, cascade_delete => 0 }, >+); >+ > __PACKAGE__->add_columns( > '+is_system' => { is_boolean => 1 } > ); >@@ -172,4 +188,4 @@ sub koha_object_class { > } > > # You can replace this text with custom code or comments, and it will be preserved on regeneration >-1; >+1; >\ No newline at end of file >-- >2.49.0
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 38457
:
175630
|
175631
|
175633
|
176789
|
176790
|
176791
|
178394
|
178395
|
178396
|
178397
|
178398
|
180494
|
180495
|
180496
|
180497
|
180498
|
180519
|
180520
|
180521
|
180522
|
180523
|
182384
|
182385
|
182386
|
182387
|
182388
|
182575