Bug 11502: make library filter in "Holds To Pull" more precise
[koha.git] / Koha / Schema / Result / Aqbookseller.pm
blobee2f4bd122afed4c1cf4222c2c764ee0db9c5544
1 use utf8;
2 package Koha::Schema::Result::Aqbookseller;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
7 =head1 NAME
9 Koha::Schema::Result::Aqbookseller
11 =cut
13 use strict;
14 use warnings;
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbooksellers>
20 =cut
22 __PACKAGE__->table("aqbooksellers");
24 =head1 ACCESSORS
26 =head2 id
28 data_type: 'integer'
29 is_auto_increment: 1
30 is_nullable: 0
32 =head2 name
34 data_type: 'mediumtext'
35 is_nullable: 0
37 =head2 address1
39 data_type: 'mediumtext'
40 is_nullable: 1
42 =head2 address2
44 data_type: 'mediumtext'
45 is_nullable: 1
47 =head2 address3
49 data_type: 'mediumtext'
50 is_nullable: 1
52 =head2 address4
54 data_type: 'mediumtext'
55 is_nullable: 1
57 =head2 phone
59 data_type: 'varchar'
60 is_nullable: 1
61 size: 30
63 =head2 accountnumber
65 data_type: 'mediumtext'
66 is_nullable: 1
68 =head2 othersupplier
70 data_type: 'mediumtext'
71 is_nullable: 1
73 =head2 currency
75 data_type: 'varchar'
76 default_value: (empty string)
77 is_nullable: 0
78 size: 3
80 =head2 booksellerfax
82 data_type: 'mediumtext'
83 is_nullable: 1
85 =head2 notes
87 data_type: 'mediumtext'
88 is_nullable: 1
90 =head2 bookselleremail
92 data_type: 'mediumtext'
93 is_nullable: 1
95 =head2 booksellerurl
97 data_type: 'mediumtext'
98 is_nullable: 1
100 =head2 contact
102 data_type: 'varchar'
103 is_nullable: 1
104 size: 100
106 =head2 postal
108 data_type: 'mediumtext'
109 is_nullable: 1
111 =head2 url
113 data_type: 'varchar'
114 is_nullable: 1
115 size: 255
117 =head2 contpos
119 data_type: 'varchar'
120 is_nullable: 1
121 size: 100
123 =head2 contphone
125 data_type: 'varchar'
126 is_nullable: 1
127 size: 100
129 =head2 contfax
131 data_type: 'varchar'
132 is_nullable: 1
133 size: 100
135 =head2 contaltphone
137 data_type: 'varchar'
138 is_nullable: 1
139 size: 100
141 =head2 contemail
143 data_type: 'varchar'
144 is_nullable: 1
145 size: 100
147 =head2 contnotes
149 data_type: 'mediumtext'
150 is_nullable: 1
152 =head2 active
154 data_type: 'tinyint'
155 is_nullable: 1
157 =head2 listprice
159 data_type: 'varchar'
160 is_foreign_key: 1
161 is_nullable: 1
162 size: 10
164 =head2 invoiceprice
166 data_type: 'varchar'
167 is_foreign_key: 1
168 is_nullable: 1
169 size: 10
171 =head2 gstreg
173 data_type: 'tinyint'
174 is_nullable: 1
176 =head2 listincgst
178 data_type: 'tinyint'
179 is_nullable: 1
181 =head2 invoiceincgst
183 data_type: 'tinyint'
184 is_nullable: 1
186 =head2 gstrate
188 data_type: 'decimal'
189 is_nullable: 1
190 size: [6,4]
192 =head2 discount
194 data_type: 'float'
195 is_nullable: 1
196 size: [6,4]
198 =head2 fax
200 data_type: 'varchar'
201 is_nullable: 1
202 size: 50
204 =head2 deliverytime
206 data_type: 'integer'
207 is_nullable: 1
209 =cut
211 __PACKAGE__->add_columns(
212 "id",
213 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
214 "name",
215 { data_type => "mediumtext", is_nullable => 0 },
216 "address1",
217 { data_type => "mediumtext", is_nullable => 1 },
218 "address2",
219 { data_type => "mediumtext", is_nullable => 1 },
220 "address3",
221 { data_type => "mediumtext", is_nullable => 1 },
222 "address4",
223 { data_type => "mediumtext", is_nullable => 1 },
224 "phone",
225 { data_type => "varchar", is_nullable => 1, size => 30 },
226 "accountnumber",
227 { data_type => "mediumtext", is_nullable => 1 },
228 "othersupplier",
229 { data_type => "mediumtext", is_nullable => 1 },
230 "currency",
231 { data_type => "varchar", default_value => "", is_nullable => 0, size => 3 },
232 "booksellerfax",
233 { data_type => "mediumtext", is_nullable => 1 },
234 "notes",
235 { data_type => "mediumtext", is_nullable => 1 },
236 "bookselleremail",
237 { data_type => "mediumtext", is_nullable => 1 },
238 "booksellerurl",
239 { data_type => "mediumtext", is_nullable => 1 },
240 "contact",
241 { data_type => "varchar", is_nullable => 1, size => 100 },
242 "postal",
243 { data_type => "mediumtext", is_nullable => 1 },
244 "url",
245 { data_type => "varchar", is_nullable => 1, size => 255 },
246 "contpos",
247 { data_type => "varchar", is_nullable => 1, size => 100 },
248 "contphone",
249 { data_type => "varchar", is_nullable => 1, size => 100 },
250 "contfax",
251 { data_type => "varchar", is_nullable => 1, size => 100 },
252 "contaltphone",
253 { data_type => "varchar", is_nullable => 1, size => 100 },
254 "contemail",
255 { data_type => "varchar", is_nullable => 1, size => 100 },
256 "contnotes",
257 { data_type => "mediumtext", is_nullable => 1 },
258 "active",
259 { data_type => "tinyint", is_nullable => 1 },
260 "listprice",
261 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
262 "invoiceprice",
263 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
264 "gstreg",
265 { data_type => "tinyint", is_nullable => 1 },
266 "listincgst",
267 { data_type => "tinyint", is_nullable => 1 },
268 "invoiceincgst",
269 { data_type => "tinyint", is_nullable => 1 },
270 "gstrate",
271 { data_type => "decimal", is_nullable => 1, size => [6, 4] },
272 "discount",
273 { data_type => "float", is_nullable => 1, size => [6, 4] },
274 "fax",
275 { data_type => "varchar", is_nullable => 1, size => 50 },
276 "deliverytime",
277 { data_type => "integer", is_nullable => 1 },
280 =head1 PRIMARY KEY
282 =over 4
284 =item * L</id>
286 =back
288 =cut
290 __PACKAGE__->set_primary_key("id");
292 =head1 RELATIONS
294 =head2 aqbasketgroups
296 Type: has_many
298 Related object: L<Koha::Schema::Result::Aqbasketgroup>
300 =cut
302 __PACKAGE__->has_many(
303 "aqbasketgroups",
304 "Koha::Schema::Result::Aqbasketgroup",
305 { "foreign.booksellerid" => "self.id" },
306 { cascade_copy => 0, cascade_delete => 0 },
309 =head2 aqbaskets
311 Type: has_many
313 Related object: L<Koha::Schema::Result::Aqbasket>
315 =cut
317 __PACKAGE__->has_many(
318 "aqbaskets",
319 "Koha::Schema::Result::Aqbasket",
320 { "foreign.booksellerid" => "self.id" },
321 { cascade_copy => 0, cascade_delete => 0 },
324 =head2 aqcontracts
326 Type: has_many
328 Related object: L<Koha::Schema::Result::Aqcontract>
330 =cut
332 __PACKAGE__->has_many(
333 "aqcontracts",
334 "Koha::Schema::Result::Aqcontract",
335 { "foreign.booksellerid" => "self.id" },
336 { cascade_copy => 0, cascade_delete => 0 },
339 =head2 aqinvoices
341 Type: has_many
343 Related object: L<Koha::Schema::Result::Aqinvoice>
345 =cut
347 __PACKAGE__->has_many(
348 "aqinvoices",
349 "Koha::Schema::Result::Aqinvoice",
350 { "foreign.booksellerid" => "self.id" },
351 { cascade_copy => 0, cascade_delete => 0 },
354 =head2 invoiceprice
356 Type: belongs_to
358 Related object: L<Koha::Schema::Result::Currency>
360 =cut
362 __PACKAGE__->belongs_to(
363 "invoiceprice",
364 "Koha::Schema::Result::Currency",
365 { currency => "invoiceprice" },
367 is_deferrable => 1,
368 join_type => "LEFT",
369 on_delete => "CASCADE",
370 on_update => "CASCADE",
374 =head2 listprice
376 Type: belongs_to
378 Related object: L<Koha::Schema::Result::Currency>
380 =cut
382 __PACKAGE__->belongs_to(
383 "listprice",
384 "Koha::Schema::Result::Currency",
385 { currency => "listprice" },
387 is_deferrable => 1,
388 join_type => "LEFT",
389 on_delete => "CASCADE",
390 on_update => "CASCADE",
395 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
396 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:Pqq5chHLUwm5Ss5CCQBL2g
399 # You can replace this text with custom content, and it will be preserved on regeneration