Lines 1-115
Link Here
|
1 |
use utf8; |
|
|
2 |
package Koha::Schema::Result::MsgInvoice; |
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::MsgInvoice |
10 |
|
11 |
=cut |
12 |
|
13 |
use strict; |
14 |
use warnings; |
15 |
|
16 |
use base 'DBIx::Class::Core'; |
17 |
|
18 |
=head1 TABLE: C<msg_invoice> |
19 |
|
20 |
=cut |
21 |
|
22 |
__PACKAGE__->table("msg_invoice"); |
23 |
|
24 |
=head1 ACCESSORS |
25 |
|
26 |
=head2 mi_id |
27 |
|
28 |
data_type: 'integer' |
29 |
is_auto_increment: 1 |
30 |
is_nullable: 0 |
31 |
|
32 |
=head2 msg_id |
33 |
|
34 |
data_type: 'integer' |
35 |
is_foreign_key: 1 |
36 |
is_nullable: 1 |
37 |
|
38 |
=head2 invoiceid |
39 |
|
40 |
data_type: 'integer' |
41 |
is_foreign_key: 1 |
42 |
is_nullable: 1 |
43 |
|
44 |
=cut |
45 |
|
46 |
__PACKAGE__->add_columns( |
47 |
"mi_id", |
48 |
{ data_type => "integer", is_auto_increment => 1, is_nullable => 0 }, |
49 |
"msg_id", |
50 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
51 |
"invoiceid", |
52 |
{ data_type => "integer", is_foreign_key => 1, is_nullable => 1 }, |
53 |
); |
54 |
|
55 |
=head1 PRIMARY KEY |
56 |
|
57 |
=over 4 |
58 |
|
59 |
=item * L</mi_id> |
60 |
|
61 |
=back |
62 |
|
63 |
=cut |
64 |
|
65 |
__PACKAGE__->set_primary_key("mi_id"); |
66 |
|
67 |
=head1 RELATIONS |
68 |
|
69 |
=head2 invoiceid |
70 |
|
71 |
Type: belongs_to |
72 |
|
73 |
Related object: L<Koha::Schema::Result::Aqinvoice> |
74 |
|
75 |
=cut |
76 |
|
77 |
__PACKAGE__->belongs_to( |
78 |
"invoiceid", |
79 |
"Koha::Schema::Result::Aqinvoice", |
80 |
{ invoiceid => "invoiceid" }, |
81 |
{ |
82 |
is_deferrable => 1, |
83 |
join_type => "LEFT", |
84 |
on_delete => "RESTRICT", |
85 |
on_update => "RESTRICT", |
86 |
}, |
87 |
); |
88 |
|
89 |
=head2 msg |
90 |
|
91 |
Type: belongs_to |
92 |
|
93 |
Related object: L<Koha::Schema::Result::EdifactMessage> |
94 |
|
95 |
=cut |
96 |
|
97 |
__PACKAGE__->belongs_to( |
98 |
"msg", |
99 |
"Koha::Schema::Result::EdifactMessage", |
100 |
{ id => "msg_id" }, |
101 |
{ |
102 |
is_deferrable => 1, |
103 |
join_type => "LEFT", |
104 |
on_delete => "RESTRICT", |
105 |
on_update => "RESTRICT", |
106 |
}, |
107 |
); |
108 |
|
109 |
|
110 |
# Created by DBIx::Class::Schema::Loader v0.07033 @ 2014-09-02 11:37:47 |
111 |
# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:F1jqlEH57dpxn2Pvm/vPGA |
112 |
|
113 |
|
114 |
# You can replace this text with custom code or comments, and it will be preserved on regeneration |
115 |
1; |
116 |
- |