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

(-)a/Koha/Schema/Result/Accountline.pm (-2 / +17 lines)
Lines 240-245 __PACKAGE__->has_many( Link Here
240
  { cascade_copy => 0, cascade_delete => 0 },
240
  { cascade_copy => 0, cascade_delete => 0 },
241
);
241
);
242
242
243
=head2 article_requests
244
245
Type: has_many
246
247
Related object: L<Koha::Schema::Result::ArticleRequest>
248
249
=cut
250
251
__PACKAGE__->has_many(
252
  "article_requests",
253
  "Koha::Schema::Result::ArticleRequest",
254
  { "foreign.debit_line_id" => "self.accountlines_id" },
255
  { cascade_copy => 0, cascade_delete => 0 },
256
);
257
243
=head2 borrowernumber
258
=head2 borrowernumber
244
259
245
Type: belongs_to
260
Type: belongs_to
Lines 381-388 __PACKAGE__->belongs_to( Link Here
381
);
396
);
382
397
383
398
384
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
399
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-23 21:05:05
385
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MBdnk+5gD5TMX/ZOqEf3kA
400
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:210iHqtM3+0JQ3PG+FY1Kw
386
401
387
=head2 library
402
=head2 library
388
403
(-)a/Koha/Schema/Result/ArticleRequest.pm (+30 lines)
Lines 118-123 __PACKAGE__->table("article_requests"); Link Here
118
  data_type: 'mediumtext'
118
  data_type: 'mediumtext'
119
  is_nullable: 1
119
  is_nullable: 1
120
120
121
=head2 debit_line_id
122
123
  data_type: 'integer'
124
  is_foreign_key: 1
125
  is_nullable: 1
126
127
Debit line with cost for article scan request
128
121
=head2 created_on
129
=head2 created_on
122
130
123
  data_type: 'timestamp'
131
  data_type: 'timestamp'
Lines 180-185 __PACKAGE__->add_columns( Link Here
180
  },
188
  },
181
  "urls",
189
  "urls",
182
  { data_type => "mediumtext", is_nullable => 1 },
190
  { data_type => "mediumtext", is_nullable => 1 },
191
  "debit_line_id",
192
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
183
  "created_on",
193
  "created_on",
184
  {
194
  {
185
    data_type => "timestamp",
195
    data_type => "timestamp",
Lines 259-264 __PACKAGE__->belongs_to( Link Here
259
  },
269
  },
260
);
270
);
261
271
272
=head2 debit_line
273
274
Type: belongs_to
275
276
Related object: L<Koha::Schema::Result::Accountline>
277
278
=cut
279
280
__PACKAGE__->belongs_to(
281
  "debit_line",
282
  "Koha::Schema::Result::Accountline",
283
  { accountlines_id => "debit_line_id" },
284
  {
285
    is_deferrable => 1,
286
    join_type     => "LEFT",
287
    on_delete     => "SET NULL",
288
    on_update     => "CASCADE",
289
  },
290
);
291
262
=head2 itemnumber
292
=head2 itemnumber
263
293
264
Type: belongs_to
294
Type: belongs_to
(-)a/Koha/Schema/Result/Category.pm (-3 / +12 lines)
Lines 190-195 set required password strength for patrons in this category Link Here
190
190
191
Exclude patrons of this category from local holds priority
191
Exclude patrons of this category from local holds priority
192
192
193
=head2 article_request_fee
194
195
  data_type: 'decimal'
196
  is_nullable: 1
197
  size: [28,6]
198
199
Cost for article scan request
200
193
=cut
201
=cut
194
202
195
__PACKAGE__->add_columns(
203
__PACKAGE__->add_columns(
Lines 252-257 __PACKAGE__->add_columns( Link Here
252
  { data_type => "tinyint", is_nullable => 1 },
260
  { data_type => "tinyint", is_nullable => 1 },
253
  "exclude_from_local_holds_priority",
261
  "exclude_from_local_holds_priority",
254
  { data_type => "tinyint", is_nullable => 1 },
262
  { data_type => "tinyint", is_nullable => 1 },
263
  "article_request_fee",
264
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
255
);
265
);
256
266
257
=head1 PRIMARY KEY
267
=head1 PRIMARY KEY
Lines 344-351 __PACKAGE__->has_many( Link Here
344
);
354
);
345
355
346
356
347
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
357
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2021-04-22 20:47:52
348
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:O4duiIu9dHKr31ToxFGubA
358
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:S8G1yCMi9bYJXgM2KhffgQ
349
359
350
__PACKAGE__->add_columns(
360
__PACKAGE__->add_columns(
351
    '+exclude_from_local_holds_priority' => { is_boolean => 1 },
361
    '+exclude_from_local_holds_priority' => { is_boolean => 1 },
352
- 

Return to bug 27946