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_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.07049 @ 2021-10-27 16:31:24
385
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MBdnk+5gD5TMX/ZOqEf3kA
400
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cdyoy7MLvk3m3mepmt0z0A
386
401
387
=head2 library
402
=head2 library
388
403
(-)a/Koha/Schema/Result/ArticleRequest.pm (-3 / +32 lines)
Lines 126-131 __PACKAGE__->table("article_requests"); Link Here
126
126
127
optional authorised value AR_CANCELLATION
127
optional authorised value AR_CANCELLATION
128
128
129
=head2 debit_id
130
131
  data_type: 'integer'
132
  is_foreign_key: 1
133
  is_nullable: 1
134
135
Debit line with cost for article scan request
136
129
=head2 created_on
137
=head2 created_on
130
138
131
  data_type: 'timestamp'
139
  data_type: 'timestamp'
Lines 200-205 __PACKAGE__->add_columns( Link Here
200
  { data_type => "mediumtext", is_nullable => 1 },
208
  { data_type => "mediumtext", is_nullable => 1 },
201
  "cancellation_reason",
209
  "cancellation_reason",
202
  { data_type => "varchar", is_nullable => 1, size => 80 },
210
  { data_type => "varchar", is_nullable => 1, size => 80 },
211
  "debit_id",
212
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
203
  "created_on",
213
  "created_on",
204
  {
214
  {
205
    data_type => "timestamp",
215
    data_type => "timestamp",
Lines 281-286 __PACKAGE__->belongs_to( Link Here
281
  },
291
  },
282
);
292
);
283
293
294
=head2 debit
295
296
Type: belongs_to
297
298
Related object: L<Koha::Schema::Result::Accountline>
299
300
=cut
301
302
__PACKAGE__->belongs_to(
303
  "debit",
304
  "Koha::Schema::Result::Accountline",
305
  { accountlines_id => "debit_id" },
306
  {
307
    is_deferrable => 1,
308
    join_type     => "LEFT",
309
    on_delete     => "SET NULL",
310
    on_update     => "CASCADE",
311
  },
312
);
313
284
=head2 itemnumber
314
=head2 itemnumber
285
315
286
Type: belongs_to
316
Type: belongs_to
Lines 302-309 __PACKAGE__->belongs_to( Link Here
302
);
332
);
303
333
304
334
305
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-15 09:05:08
335
# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-10-27 16:31:24
306
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:U4C1bwfCj048twrT3yRD6Q
336
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BXZSJpfb/iXZFpNK0JgUsg
307
337
308
338
309
# You can replace this text with custom code or comments, and it will be preserved on regeneration
339
# You can replace this text with custom code or comments, and it will be preserved on regeneration
310
- 

Return to bug 27946