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

(-)a/Koha/Schema/Result/Aqbasket.pm (-2 / +17 lines)
Lines 263-268 __PACKAGE__->belongs_to( Link Here
263
  },
263
  },
264
);
264
);
265
265
266
=head2 edifact_messages
267
268
Type: has_many
269
270
Related object: L<Koha::Schema::Result::EdifactMessage>
271
272
=cut
273
274
__PACKAGE__->has_many(
275
  "edifact_messages",
276
  "Koha::Schema::Result::EdifactMessage",
277
  { "foreign.basketno" => "self.basketno" },
278
  { cascade_copy => 0, cascade_delete => 0 },
279
);
280
266
=head2 borrowernumbers
281
=head2 borrowernumbers
267
282
268
Type: many_to_many
283
Type: many_to_many
Lines 274-281 Composing rels: L</aqbasketusers> -> borrowernumber Link Here
274
__PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
289
__PACKAGE__->many_to_many("borrowernumbers", "aqbasketusers", "borrowernumber");
275
290
276
291
277
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
292
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:25
278
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pT+YFf9nfD/dmBuE4RNCFw
293
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:8yl7H1lTTOFTkH6YCGmWvg
279
294
280
295
281
# You can replace this text with custom content, and it will be preserved on regeneration
296
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbookseller.pm (-2 / +32 lines)
Lines 311-316 __PACKAGE__->has_many( Link Here
311
  { cascade_copy => 0, cascade_delete => 0 },
311
  { cascade_copy => 0, cascade_delete => 0 },
312
);
312
);
313
313
314
=head2 edifact_messages
315
316
Type: has_many
317
318
Related object: L<Koha::Schema::Result::EdifactMessage>
319
320
=cut
321
322
__PACKAGE__->has_many(
323
  "edifact_messages",
324
  "Koha::Schema::Result::EdifactMessage",
325
  { "foreign.vendor_id" => "self.id" },
326
  { cascade_copy => 0, cascade_delete => 0 },
327
);
328
314
=head2 invoiceprice
329
=head2 invoiceprice
315
330
316
Type: belongs_to
331
Type: belongs_to
Lines 351-359 __PACKAGE__->belongs_to( Link Here
351
  },
366
  },
352
);
367
);
353
368
369
=head2 vendor_edi_accounts
370
371
Type: has_many
372
373
Related object: L<Koha::Schema::Result::VendorEdiAccount>
374
375
=cut
376
377
__PACKAGE__->has_many(
378
  "vendor_edi_accounts",
379
  "Koha::Schema::Result::VendorEdiAccount",
380
  { "foreign.vendor_id" => "self.id" },
381
  { cascade_copy => 0, cascade_delete => 0 },
382
);
383
354
384
355
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-08-26 11:53:50
385
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:25
356
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:kz1tuPJihENyV6OyCwyX/A
386
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MPfS8xgc4x/i4cV+flpzYA
357
387
358
388
359
# You can replace this text with custom content, and it will be preserved on regeneration
389
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqbudget.pm (-2 / +17 lines)
Lines 257-262 __PACKAGE__->has_many( Link Here
257
  { cascade_copy => 0, cascade_delete => 0 },
257
  { cascade_copy => 0, cascade_delete => 0 },
258
);
258
);
259
259
260
=head2 vendor_edi_accounts
261
262
Type: has_many
263
264
Related object: L<Koha::Schema::Result::VendorEdiAccount>
265
266
=cut
267
268
__PACKAGE__->has_many(
269
  "vendor_edi_accounts",
270
  "Koha::Schema::Result::VendorEdiAccount",
271
  { "foreign.shipment_budget" => "self.budget_id" },
272
  { cascade_copy => 0, cascade_delete => 0 },
273
);
274
260
=head2 borrowernumbers
275
=head2 borrowernumbers
261
276
262
Type: many_to_many
277
Type: many_to_many
Lines 268-275 Composing rels: L</aqbudgetborrowers> -> borrowernumber Link Here
268
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
283
__PACKAGE__->many_to_many("borrowernumbers", "aqbudgetborrowers", "borrowernumber");
269
284
270
285
271
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-02-09 15:51:54
286
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:25
272
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:SZKnWPCMNFUm/TzeBxeDZA
287
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:vzcH8R0mR1KywrcyTvypIg
273
288
274
289
275
# You can replace this text with custom content, and it will be preserved on regeneration
290
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqinvoice.pm (-2 / +30 lines)
Lines 70-75 __PACKAGE__->table("aqinvoices"); Link Here
70
  is_foreign_key: 1
70
  is_foreign_key: 1
71
  is_nullable: 1
71
  is_nullable: 1
72
72
73
=head2 message_id
74
75
  data_type: 'integer'
76
  is_foreign_key: 1
77
  is_nullable: 1
78
73
=cut
79
=cut
74
80
75
__PACKAGE__->add_columns(
81
__PACKAGE__->add_columns(
Lines 89-94 __PACKAGE__->add_columns( Link Here
89
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
95
  { data_type => "decimal", is_nullable => 1, size => [28, 6] },
90
  "shipmentcost_budgetid",
96
  "shipmentcost_budgetid",
91
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
97
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
98
  "message_id",
99
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
92
);
100
);
93
101
94
=head1 PRIMARY KEY
102
=head1 PRIMARY KEY
Lines 135-140 __PACKAGE__->belongs_to( Link Here
135
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
143
  { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
136
);
144
);
137
145
146
=head2 message
147
148
Type: belongs_to
149
150
Related object: L<Koha::Schema::Result::EdifactMessage>
151
152
=cut
153
154
__PACKAGE__->belongs_to(
155
  "message",
156
  "Koha::Schema::Result::EdifactMessage",
157
  { id => "message_id" },
158
  {
159
    is_deferrable => 1,
160
    join_type     => "LEFT",
161
    on_delete     => "SET NULL",
162
    on_update     => "RESTRICT",
163
  },
164
);
165
138
=head2 shipmentcost_budgetid
166
=head2 shipmentcost_budgetid
139
167
140
Type: belongs_to
168
Type: belongs_to
Lines 156-163 __PACKAGE__->belongs_to( Link Here
156
);
184
);
157
185
158
186
159
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
187
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:25
160
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3se4f767VfvBKaZ8tlXwHQ
188
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:I+ll6Sn7RG4rimkI7hoMgw
161
189
162
190
163
# You can replace this text with custom content, and it will be preserved on regeneration
191
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Aqorder.pm (-2 / +26 lines)
Lines 227-232 __PACKAGE__->table("aqorders"); Link Here
227
  is_nullable: 1
227
  is_nullable: 1
228
  size: 16
228
  size: 16
229
229
230
=head2 line_item_id
231
232
  data_type: 'varchar'
233
  is_nullable: 1
234
  size: 35
235
236
=head2 suppliers_reference_number
237
238
  data_type: 'varchar'
239
  is_nullable: 1
240
  size: 35
241
242
=head2 suppliers_reference_qualifier
243
244
  data_type: 'varchar'
245
  is_nullable: 1
246
  size: 3
247
230
=cut
248
=cut
231
249
232
__PACKAGE__->add_columns(
250
__PACKAGE__->add_columns(
Lines 310-315 __PACKAGE__->add_columns( Link Here
310
    is_nullable => 1,
328
    is_nullable => 1,
311
    size => 16,
329
    size => 16,
312
  },
330
  },
331
  "line_item_id",
332
  { data_type => "varchar", is_nullable => 1, size => 35 },
333
  "suppliers_reference_number",
334
  { data_type => "varchar", is_nullable => 1, size => 35 },
335
  "suppliers_reference_qualifier",
336
  { data_type => "varchar", is_nullable => 1, size => 3 },
313
);
337
);
314
338
315
=head1 PRIMARY KEY
339
=head1 PRIMARY KEY
Lines 492-499 Composing rels: L</aqorder_users> -> borrowernumber Link Here
492
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
516
__PACKAGE__->many_to_many("borrowernumbers", "aqorder_users", "borrowernumber");
493
517
494
518
495
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2015-05-14 11:27:15
519
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:25
496
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BCa/SxerJ+zEh8Pg9Jdkaw
520
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Ta2J2GOaclzd/SwqqCyu6A
497
521
498
522
499
# You can replace this text with custom content, and it will be preserved on regeneration
523
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/Branch.pm (-2 / +17 lines)
Lines 397-402 __PACKAGE__->might_have( Link Here
397
  { cascade_copy => 0, cascade_delete => 0 },
397
  { cascade_copy => 0, cascade_delete => 0 },
398
);
398
);
399
399
400
=head2 edifact_eans
401
402
Type: has_many
403
404
Related object: L<Koha::Schema::Result::EdifactEan>
405
406
=cut
407
408
__PACKAGE__->has_many(
409
  "edifact_eans",
410
  "Koha::Schema::Result::EdifactEan",
411
  { "foreign.branchcode" => "self.branchcode" },
412
  { cascade_copy => 0, cascade_delete => 0 },
413
);
414
400
=head2 hold_fill_targets
415
=head2 hold_fill_targets
401
416
402
Type: has_many
417
Type: has_many
Lines 513-520 Composing rels: L</branchrelations> -> categorycode Link Here
513
__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
528
__PACKAGE__->many_to_many("categorycodes", "branchrelations", "categorycode");
514
529
515
530
516
# Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-11-06 15:26:36
531
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:26
517
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:CGNPB/MkGLOihDThj43/4A
532
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:edt9FhMdC3zUwsqz4BEWHQ
518
533
519
534
520
# You can replace this text with custom content, and it will be preserved on regeneration
535
# You can replace this text with custom content, and it will be preserved on regeneration
(-)a/Koha/Schema/Result/EdifactEan.pm (+80 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::EdifactEan;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::EdifactEan
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<edifact_ean>
19
20
=cut
21
22
__PACKAGE__->table("edifact_ean");
23
24
=head1 ACCESSORS
25
26
=head2 branchcode
27
28
  data_type: 'varchar'
29
  is_foreign_key: 1
30
  is_nullable: 0
31
  size: 10
32
33
=head2 ean
34
35
  data_type: 'varchar'
36
  is_nullable: 0
37
  size: 15
38
39
=head2 id_code_qualifier
40
41
  data_type: 'varchar'
42
  default_value: 14
43
  is_nullable: 0
44
  size: 3
45
46
=cut
47
48
__PACKAGE__->add_columns(
49
  "branchcode",
50
  { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
51
  "ean",
52
  { data_type => "varchar", is_nullable => 0, size => 15 },
53
  "id_code_qualifier",
54
  { data_type => "varchar", default_value => 14, is_nullable => 0, size => 3 },
55
);
56
57
=head1 RELATIONS
58
59
=head2 branchcode
60
61
Type: belongs_to
62
63
Related object: L<Koha::Schema::Result::Branch>
64
65
=cut
66
67
__PACKAGE__->belongs_to(
68
  "branchcode",
69
  "Koha::Schema::Result::Branch",
70
  { branchcode => "branchcode" },
71
  { is_deferrable => 1, on_delete => "RESTRICT", on_update => "RESTRICT" },
72
);
73
74
75
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:26
76
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:LrJt6g6ji7tXaCiX4thIxA
77
78
79
# You can replace this text with custom code or comments, and it will be preserved on regeneration
80
1;
(-)a/Koha/Schema/Result/EdifactMessage.pm (+203 lines)
Line 0 Link Here
1
use utf8;
2
package Koha::Schema::Result::EdifactMessage;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::EdifactMessage
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<edifact_messages>
19
20
=cut
21
22
__PACKAGE__->table("edifact_messages");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 message_type
33
34
  data_type: 'varchar'
35
  is_nullable: 0
36
  size: 10
37
38
=head2 transfer_date
39
40
  data_type: 'date'
41
  datetime_undef_if_invalid: 1
42
  is_nullable: 1
43
44
=head2 vendor_id
45
46
  data_type: 'integer'
47
  is_foreign_key: 1
48
  is_nullable: 1
49
50
=head2 edi_acct
51
52
  data_type: 'integer'
53
  is_foreign_key: 1
54
  is_nullable: 1
55
56
=head2 status
57
58
  data_type: 'text'
59
  is_nullable: 1
60
61
=head2 basketno
62
63
  data_type: 'integer'
64
  is_foreign_key: 1
65
  is_nullable: 1
66
67
=head2 raw_msg
68
69
  data_type: 'mediumtext'
70
  is_nullable: 1
71
72
=head2 filename
73
74
  data_type: 'text'
75
  is_nullable: 1
76
77
=head2 deleted
78
79
  data_type: 'tinyint'
80
  default_value: 0
81
  is_nullable: 0
82
83
=cut
84
85
__PACKAGE__->add_columns(
86
  "id",
87
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
88
  "message_type",
89
  { data_type => "varchar", is_nullable => 0, size => 10 },
90
  "transfer_date",
91
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
92
  "vendor_id",
93
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
94
  "edi_acct",
95
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
96
  "status",
97
  { data_type => "text", is_nullable => 1 },
98
  "basketno",
99
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
100
  "raw_msg",
101
  { data_type => "mediumtext", is_nullable => 1 },
102
  "filename",
103
  { data_type => "text", is_nullable => 1 },
104
  "deleted",
105
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
106
);
107
108
=head1 PRIMARY KEY
109
110
=over 4
111
112
=item * L</id>
113
114
=back
115
116
=cut
117
118
__PACKAGE__->set_primary_key("id");
119
120
=head1 RELATIONS
121
122
=head2 aqinvoices
123
124
Type: has_many
125
126
Related object: L<Koha::Schema::Result::Aqinvoice>
127
128
=cut
129
130
__PACKAGE__->has_many(
131
  "aqinvoices",
132
  "Koha::Schema::Result::Aqinvoice",
133
  { "foreign.message_id" => "self.id" },
134
  { cascade_copy => 0, cascade_delete => 0 },
135
);
136
137
=head2 basketno
138
139
Type: belongs_to
140
141
Related object: L<Koha::Schema::Result::Aqbasket>
142
143
=cut
144
145
__PACKAGE__->belongs_to(
146
  "basketno",
147
  "Koha::Schema::Result::Aqbasket",
148
  { basketno => "basketno" },
149
  {
150
    is_deferrable => 1,
151
    join_type     => "LEFT",
152
    on_delete     => "RESTRICT",
153
    on_update     => "RESTRICT",
154
  },
155
);
156
157
=head2 edi_acct
158
159
Type: belongs_to
160
161
Related object: L<Koha::Schema::Result::VendorEdiAccount>
162
163
=cut
164
165
__PACKAGE__->belongs_to(
166
  "edi_acct",
167
  "Koha::Schema::Result::VendorEdiAccount",
168
  { id => "edi_acct" },
169
  {
170
    is_deferrable => 1,
171
    join_type     => "LEFT",
172
    on_delete     => "RESTRICT",
173
    on_update     => "RESTRICT",
174
  },
175
);
176
177
=head2 vendor
178
179
Type: belongs_to
180
181
Related object: L<Koha::Schema::Result::Aqbookseller>
182
183
=cut
184
185
__PACKAGE__->belongs_to(
186
  "vendor",
187
  "Koha::Schema::Result::Aqbookseller",
188
  { id => "vendor_id" },
189
  {
190
    is_deferrable => 1,
191
    join_type     => "LEFT",
192
    on_delete     => "RESTRICT",
193
    on_update     => "RESTRICT",
194
  },
195
);
196
197
198
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:26
199
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:eL2BDBYpDcQzn9e1CzCfIA
200
201
202
# You can replace this text with custom code or comments, and it will be preserved on regeneration
203
1;
(-)a/Koha/Schema/Result/VendorEdiAccount.pm (-1 / +233 lines)
Line 0 Link Here
0
- 
1
use utf8;
2
package Koha::Schema::Result::VendorEdiAccount;
3
4
# Created by DBIx::Class::Schema::Loader
5
# DO NOT MODIFY THE FIRST PART OF THIS FILE
6
7
=head1 NAME
8
9
Koha::Schema::Result::VendorEdiAccount
10
11
=cut
12
13
use strict;
14
use warnings;
15
16
use base 'DBIx::Class::Core';
17
18
=head1 TABLE: C<vendor_edi_accounts>
19
20
=cut
21
22
__PACKAGE__->table("vendor_edi_accounts");
23
24
=head1 ACCESSORS
25
26
=head2 id
27
28
  data_type: 'integer'
29
  is_auto_increment: 1
30
  is_nullable: 0
31
32
=head2 description
33
34
  data_type: 'text'
35
  is_nullable: 0
36
37
=head2 host
38
39
  data_type: 'varchar'
40
  is_nullable: 1
41
  size: 40
42
43
=head2 username
44
45
  data_type: 'varchar'
46
  is_nullable: 1
47
  size: 40
48
49
=head2 password
50
51
  data_type: 'varchar'
52
  is_nullable: 1
53
  size: 40
54
55
=head2 last_activity
56
57
  data_type: 'date'
58
  datetime_undef_if_invalid: 1
59
  is_nullable: 1
60
61
=head2 vendor_id
62
63
  data_type: 'integer'
64
  is_foreign_key: 1
65
  is_nullable: 1
66
67
=head2 download_directory
68
69
  data_type: 'text'
70
  is_nullable: 1
71
72
=head2 upload_directory
73
74
  data_type: 'text'
75
  is_nullable: 1
76
77
=head2 san
78
79
  data_type: 'varchar'
80
  is_nullable: 1
81
  size: 20
82
83
=head2 id_code_qualifier
84
85
  data_type: 'varchar'
86
  default_value: 14
87
  is_nullable: 1
88
  size: 3
89
90
=head2 transport
91
92
  data_type: 'varchar'
93
  default_value: 'FTP'
94
  is_nullable: 1
95
  size: 6
96
97
=head2 quotes_enabled
98
99
  data_type: 'tinyint'
100
  default_value: 0
101
  is_nullable: 0
102
103
=head2 invoices_enabled
104
105
  data_type: 'tinyint'
106
  default_value: 0
107
  is_nullable: 0
108
109
=head2 orders_enabled
110
111
  data_type: 'tinyint'
112
  default_value: 0
113
  is_nullable: 0
114
115
=head2 shipment_budget
116
117
  data_type: 'integer'
118
  is_foreign_key: 1
119
  is_nullable: 1
120
121
=cut
122
123
__PACKAGE__->add_columns(
124
  "id",
125
  { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
126
  "description",
127
  { data_type => "text", is_nullable => 0 },
128
  "host",
129
  { data_type => "varchar", is_nullable => 1, size => 40 },
130
  "username",
131
  { data_type => "varchar", is_nullable => 1, size => 40 },
132
  "password",
133
  { data_type => "varchar", is_nullable => 1, size => 40 },
134
  "last_activity",
135
  { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
136
  "vendor_id",
137
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
138
  "download_directory",
139
  { data_type => "text", is_nullable => 1 },
140
  "upload_directory",
141
  { data_type => "text", is_nullable => 1 },
142
  "san",
143
  { data_type => "varchar", is_nullable => 1, size => 20 },
144
  "id_code_qualifier",
145
  { data_type => "varchar", default_value => 14, is_nullable => 1, size => 3 },
146
  "transport",
147
  { data_type => "varchar", default_value => "FTP", is_nullable => 1, size => 6 },
148
  "quotes_enabled",
149
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
150
  "invoices_enabled",
151
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
152
  "orders_enabled",
153
  { data_type => "tinyint", default_value => 0, is_nullable => 0 },
154
  "shipment_budget",
155
  { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
156
);
157
158
=head1 PRIMARY KEY
159
160
=over 4
161
162
=item * L</id>
163
164
=back
165
166
=cut
167
168
__PACKAGE__->set_primary_key("id");
169
170
=head1 RELATIONS
171
172
=head2 edifact_messages
173
174
Type: has_many
175
176
Related object: L<Koha::Schema::Result::EdifactMessage>
177
178
=cut
179
180
__PACKAGE__->has_many(
181
  "edifact_messages",
182
  "Koha::Schema::Result::EdifactMessage",
183
  { "foreign.edi_acct" => "self.id" },
184
  { cascade_copy => 0, cascade_delete => 0 },
185
);
186
187
=head2 shipment_budget
188
189
Type: belongs_to
190
191
Related object: L<Koha::Schema::Result::Aqbudget>
192
193
=cut
194
195
__PACKAGE__->belongs_to(
196
  "shipment_budget",
197
  "Koha::Schema::Result::Aqbudget",
198
  { budget_id => "shipment_budget" },
199
  {
200
    is_deferrable => 1,
201
    join_type     => "LEFT",
202
    on_delete     => "RESTRICT",
203
    on_update     => "RESTRICT",
204
  },
205
);
206
207
=head2 vendor
208
209
Type: belongs_to
210
211
Related object: L<Koha::Schema::Result::Aqbookseller>
212
213
=cut
214
215
__PACKAGE__->belongs_to(
216
  "vendor",
217
  "Koha::Schema::Result::Aqbookseller",
218
  { id => "vendor_id" },
219
  {
220
    is_deferrable => 1,
221
    join_type     => "LEFT",
222
    on_delete     => "RESTRICT",
223
    on_update     => "RESTRICT",
224
  },
225
);
226
227
228
# Created by DBIx::Class::Schema::Loader v0.07042 @ 2015-10-23 15:58:26
229
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Xvt8c/scmKm1uRt3PbqIfQ
230
231
232
# You can replace this text with custom code or comments, and it will be preserved on regeneration
233
1;

Return to bug 7736