2 package Koha::Schema::Result::Aqbookseller;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Aqbookseller
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<aqbooksellers>
22 __PACKAGE__->table("aqbooksellers");
143 __PACKAGE__->add_columns(
145 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
147 { data_type => "longtext", is_nullable => 0 },
149 { data_type => "longtext", is_nullable => 1 },
151 { data_type => "longtext", is_nullable => 1 },
153 { data_type => "longtext", is_nullable => 1 },
155 { data_type => "longtext", is_nullable => 1 },
157 { data_type => "varchar", is_nullable => 1, size => 30 },
159 { data_type => "longtext", is_nullable => 1 },
161 { data_type => "longtext", is_nullable => 1 },
163 { data_type => "longtext", is_nullable => 1 },
165 { data_type => "varchar", is_nullable => 1, size => 255 },
167 { data_type => "tinyint", is_nullable => 1 },
169 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
171 { data_type => "varchar", is_foreign_key => 1, is_nullable => 1, size => 10 },
173 { data_type => "tinyint", is_nullable => 1 },
175 { data_type => "tinyint", is_nullable => 1 },
177 { data_type => "tinyint", is_nullable => 1 },
179 { data_type => "decimal", is_nullable => 1, size => [6, 4] },
181 { data_type => "float", is_nullable => 1, size => [6, 4] },
183 { data_type => "varchar", is_nullable => 1, size => 50 },
185 { data_type => "integer", is_nullable => 1 },
198 __PACKAGE__->set_primary_key("id");
202 =head2 aqbasketgroups
206 Related object: L<Koha::Schema::Result::Aqbasketgroup>
210 __PACKAGE__->has_many(
212 "Koha::Schema::Result::Aqbasketgroup",
213 { "foreign.booksellerid" => "self.id" },
214 { cascade_copy => 0, cascade_delete => 0 },
221 Related object: L<Koha::Schema::Result::Aqbasket>
225 __PACKAGE__->has_many(
227 "Koha::Schema::Result::Aqbasket",
228 { "foreign.booksellerid" => "self.id" },
229 { cascade_copy => 0, cascade_delete => 0 },
236 Related object: L<Koha::Schema::Result::Aqcontact>
240 __PACKAGE__->has_many(
242 "Koha::Schema::Result::Aqcontact",
243 { "foreign.booksellerid" => "self.id" },
244 { cascade_copy => 0, cascade_delete => 0 },
251 Related object: L<Koha::Schema::Result::Aqcontract>
255 __PACKAGE__->has_many(
257 "Koha::Schema::Result::Aqcontract",
258 { "foreign.booksellerid" => "self.id" },
259 { cascade_copy => 0, cascade_delete => 0 },
266 Related object: L<Koha::Schema::Result::Aqinvoice>
270 __PACKAGE__->has_many(
272 "Koha::Schema::Result::Aqinvoice",
273 { "foreign.booksellerid" => "self.id" },
274 { cascade_copy => 0, cascade_delete => 0 },
277 =head2 edifact_messages
281 Related object: L<Koha::Schema::Result::EdifactMessage>
285 __PACKAGE__->has_many(
287 "Koha::Schema::Result::EdifactMessage",
288 { "foreign.vendor_id" => "self.id" },
289 { cascade_copy => 0, cascade_delete => 0 },
296 Related object: L<Koha::Schema::Result::Currency>
300 __PACKAGE__->belongs_to(
302 "Koha::Schema::Result::Currency",
303 { currency => "invoiceprice" },
307 on_delete => "CASCADE",
308 on_update => "CASCADE",
316 Related object: L<Koha::Schema::Result::Currency>
320 __PACKAGE__->belongs_to(
322 "Koha::Schema::Result::Currency",
323 { currency => "listprice" },
327 on_delete => "CASCADE",
328 on_update => "CASCADE",
332 =head2 vendor_edi_accounts
336 Related object: L<Koha::Schema::Result::VendorEdiAccount>
340 __PACKAGE__->has_many(
341 "vendor_edi_accounts",
342 "Koha::Schema::Result::VendorEdiAccount",
343 { "foreign.vendor_id" => "self.id" },
344 { cascade_copy => 0, cascade_delete => 0 },
348 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-17 08:54:13
349 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:1lSFcy25po9EBzkNkjL5UA
351 __PACKAGE__->add_columns(
352 '+active' => { is_boolean => 1 },
353 '+gstreg' => { is_boolean => 1 },
354 '+listincgst' => { is_boolean => 1 },
355 '+invoiceincgst' => { is_boolean => 1 },
358 sub koha_object_class {
359 'Koha::Acquisition::Bookseller';
361 sub koha_objects_class {
362 'Koha::Acquisition::Booksellers';