|
Lines 148-153
__PACKAGE__->has_many(
Link Here
|
| 148 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-01-10 14:49:18 |
148 |
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2023-01-10 14:49:18 |
| 149 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9+mMPMSWcc/PwryYNQ2Jqg |
149 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:9+mMPMSWcc/PwryYNQ2Jqg |
| 150 |
|
150 |
|
|
|
151 |
__PACKAGE__->has_many( |
| 152 |
"additional_field_values", |
| 153 |
"Koha::Schema::Result::AdditionalFieldValue", |
| 154 |
sub { |
| 155 |
my ($args) = @_; |
| 156 |
|
| 157 |
return { |
| 158 |
"$args->{foreign_alias}.record_id" => { -ident => "$args->{self_alias}.code" }, |
| 159 |
|
| 160 |
"$args->{foreign_alias}.field_id" => |
| 161 |
{ -in => \'(SELECT id FROM additional_fields WHERE tablename="account_debit_types")' }, |
| 162 |
}; |
| 163 |
}, |
| 164 |
{ cascade_copy => 0, cascade_delete => 0 }, |
| 165 |
); |
| 166 |
|
| 151 |
__PACKAGE__->add_columns( |
167 |
__PACKAGE__->add_columns( |
| 152 |
'+is_system' => { is_boolean => 1 } |
168 |
'+is_system' => { is_boolean => 1 } |
| 153 |
); |
169 |
); |
|
Lines 172-175
sub koha_object_class {
Link Here
|
| 172 |
} |
188 |
} |
| 173 |
|
189 |
|
| 174 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
190 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
| 175 |
1; |
191 |
1; |
| 176 |
- |
|
|