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

(-)a/Koha/Schema/Result/Accountline.pm (-5 / +47 lines)
Lines 32-37 __PACKAGE__->table("accountlines"); Link Here
32
=head2 issue_id
32
=head2 issue_id
33
33
34
  data_type: 'integer'
34
  data_type: 'integer'
35
  is_foreign_key: 1
35
  is_nullable: 1
36
  is_nullable: 1
36
37
37
=head2 borrowernumber
38
=head2 borrowernumber
Lines 108-113 __PACKAGE__->table("accountlines"); Link Here
108
=head2 manager_id
109
=head2 manager_id
109
110
110
  data_type: 'integer'
111
  data_type: 'integer'
112
  is_foreign_key: 1
111
  is_nullable: 1
113
  is_nullable: 1
112
114
113
=cut
115
=cut
Lines 116-122 __PACKAGE__->add_columns( Link Here
116
  "accountlines_id",
118
  "accountlines_id",
117
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
119
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
118
  "issue_id",
120
  "issue_id",
119
  { data_type => "integer", is_nullable => 1 },
121
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
120
  "borrowernumber",
122
  "borrowernumber",
121
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
123
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
122
  "accountno",
124
  "accountno",
Lines 147-153 __PACKAGE__->add_columns( Link Here
147
  "note",
149
  "note",
148
  { data_type => "mediumtext", is_nullable => 1 },
150
  { data_type => "mediumtext", is_nullable => 1 },
149
  "manager_id",
151
  "manager_id",
150
  { data_type => "integer", is_nullable => 1 },
152
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
151
);
153
);
152
154
153
=head1 PRIMARY KEY
155
=head1 PRIMARY KEY
Lines 214-219 __PACKAGE__->belongs_to( Link Here
214
  },
216
  },
215
);
217
);
216
218
219
=head2 issue
220
221
Type: belongs_to
222
223
Related object: L<Koha::Schema::Result::Issue>
224
225
=cut
226
227
__PACKAGE__->belongs_to(
228
  "issue",
229
  "Koha::Schema::Result::Issue",
230
  { issue_id => "issue_id" },
231
  {
232
    is_deferrable => 1,
233
    join_type     => "LEFT",
234
    on_delete     => "SET NULL",
235
    on_update     => "CASCADE",
236
  },
237
);
238
217
=head2 itemnumber
239
=head2 itemnumber
218
240
219
Type: belongs_to
241
Type: belongs_to
Lines 230-242 __PACKAGE__->belongs_to( Link Here
230
    is_deferrable => 1,
252
    is_deferrable => 1,
231
    join_type     => "LEFT",
253
    join_type     => "LEFT",
232
    on_delete     => "SET NULL",
254
    on_delete     => "SET NULL",
233
    on_update     => "SET NULL",
255
    on_update     => "CASCADE",
256
  },
257
);
258
259
=head2 manager
260
261
Type: belongs_to
262
263
Related object: L<Koha::Schema::Result::Borrower>
264
265
=cut
266
267
__PACKAGE__->belongs_to(
268
  "manager",
269
  "Koha::Schema::Result::Borrower",
270
  { borrowernumber => "manager_id" },
271
  {
272
    is_deferrable => 1,
273
    join_type     => "LEFT",
274
    on_delete     => "SET NULL",
275
    on_update     => "CASCADE",
234
  },
276
  },
235
);
277
);
236
278
237
279
238
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-12-19 16:19:16
280
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-12-21 12:01:41
239
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kvBIJshNRsm/HYJBbhm0IA
281
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:oAlRy53c2P0qVSV27fJ+1Q
240
282
241
sub koha_objects_class {
283
sub koha_objects_class {
242
    'Koha::Account::Lines';
284
    'Koha::Account::Lines';
(-)a/Koha/Schema/Result/Borrower.pm (-2 / +17 lines)
Lines 710-715 __PACKAGE__->has_many( Link Here
710
  { cascade_copy => 0, cascade_delete => 0 },
710
  { cascade_copy => 0, cascade_delete => 0 },
711
);
711
);
712
712
713
=head2 accountlines_managers
714
715
Type: has_many
716
717
Related object: L<Koha::Schema::Result::Accountline>
718
719
=cut
720
721
__PACKAGE__->has_many(
722
  "accountlines_managers",
723
  "Koha::Schema::Result::Accountline",
724
  { "foreign.manager_id" => "self.borrowernumber" },
725
  { cascade_copy => 0, cascade_delete => 0 },
726
);
727
713
=head2 api_keys
728
=head2 api_keys
714
729
715
Type: has_many
730
Type: has_many
Lines 1431-1438 Composing rels: L</aqorder_users> -> ordernumber Link Here
1431
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1446
__PACKAGE__->many_to_many("ordernumbers", "aqorder_users", "ordernumber");
1432
1447
1433
1448
1434
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-10-27 13:16:48
1449
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-12-21 12:01:41
1435
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:c3Tb59Kku0Hh+tsVV5eCDg
1450
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:cdZJs0uL23mwlAoicWvncQ
1436
1451
1437
__PACKAGE__->belongs_to(
1452
__PACKAGE__->belongs_to(
1438
    "guarantor",
1453
    "guarantor",
(-)a/Koha/Schema/Result/Issue.pm (-3 / +17 lines)
Lines 207-212 __PACKAGE__->add_unique_constraint("itemnumber", ["itemnumber"]); Link Here
207
207
208
=head1 RELATIONS
208
=head1 RELATIONS
209
209
210
=head2 accountlines
211
212
Type: has_many
213
214
Related object: L<Koha::Schema::Result::Accountline>
215
216
=cut
217
218
__PACKAGE__->has_many(
219
  "accountlines",
220
  "Koha::Schema::Result::Accountline",
221
  { "foreign.issue_id" => "self.issue_id" },
222
  { cascade_copy => 0, cascade_delete => 0 },
223
);
224
210
=head2 borrowernumber
225
=head2 borrowernumber
211
226
212
Type: belongs_to
227
Type: belongs_to
Lines 248-255 __PACKAGE__->belongs_to( Link Here
248
);
263
);
249
264
250
265
251
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-23 13:51:40
266
# Created by DBIx::Class::Schema::Loader v0.07046 @ 2018-12-21 12:01:42
252
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:+mlcId4odhAFp3HHgV/+tg
267
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:OsRHKP1Qe5KuToNDALVW4Q
253
268
254
__PACKAGE__->belongs_to(
269
__PACKAGE__->belongs_to(
255
    "borrower",
270
    "borrower",
256
- 

Return to bug 22008