Bug 25501: Supress warnings on installing translation
[koha.git] / Koha / Schema / Result / AqinvoiceAdjustment.pm
blob16bc45acb29431cec29376485f4fb12102e5922c
1 use utf8;
2 package Koha::Schema::Result::AqinvoiceAdjustment;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::AqinvoiceAdjustment
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqinvoice_adjustments>
20 =cut
22 __PACKAGE__->table("aqinvoice_adjustments");
24 =head1 ACCESSORS
26 =head2 adjustment_id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 invoiceid
34 data_type: 'integer'
35 is_foreign_key: 1
36 is_nullable: 0
38 =head2 adjustment
40 data_type: 'decimal'
41 is_nullable: 1
42 size: [28,6]
44 =head2 reason
46 data_type: 'varchar'
47 is_nullable: 1
48 size: 80
50 =head2 note
52 data_type: 'mediumtext'
53 is_nullable: 1
55 =head2 budget_id
57 data_type: 'integer'
58 is_foreign_key: 1
59 is_nullable: 1
61 =head2 encumber_open
63 data_type: 'smallint'
64 default_value: 1
65 is_nullable: 0
67 =head2 timestamp
69 data_type: 'timestamp'
70 datetime_undef_if_invalid: 1
71 default_value: current_timestamp
72 is_nullable: 0
74 =cut
76 __PACKAGE__->add_columns(
77 "adjustment_id",
78 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
79 "invoiceid",
80 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
81 "adjustment",
82 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
83 "reason",
84 { data_type => "varchar", is_nullable => 1, size => 80 },
85 "note",
86 { data_type => "mediumtext", is_nullable => 1 },
87 "budget_id",
88 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
89 "encumber_open",
90 { data_type => "smallint", default_value => 1, is_nullable => 0 },
91 "timestamp",
93 data_type => "timestamp",
94 datetime_undef_if_invalid => 1,
95 default_value => \"current_timestamp",
96 is_nullable => 0,
100 =head1 PRIMARY KEY
102 =over 4
104 =item * L</adjustment_id>
106 =back
108 =cut
110 __PACKAGE__->set_primary_key("adjustment_id");
112 =head1 RELATIONS
114 =head2 budget
116 Type: belongs_to
118 Related object: L<Koha::Schema::Result::Aqbudget>
120 =cut
122 __PACKAGE__->belongs_to(
123 "budget",
124 "Koha::Schema::Result::Aqbudget",
125 { budget_id => "budget_id" },
127 is_deferrable => 1,
128 join_type => "LEFT",
129 on_delete => "SET NULL",
130 on_update => "CASCADE",
134 =head2 invoiceid
136 Type: belongs_to
138 Related object: L<Koha::Schema::Result::Aqinvoice>
140 =cut
142 __PACKAGE__->belongs_to(
143 "invoiceid",
144 "Koha::Schema::Result::Aqinvoice",
145 { invoiceid => "invoiceid" },
146 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
150 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-19 17:32:57
151 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:jl0qxkZWVs2D1pi3kaRjpg
153 sub koha_object_class {
154 'Koha::Acquisition::Invoice::Adjustment';
156 sub koha_objects_class {
157 'Koha::Acquisition::Invoice::Adjustments';