2 package Koha
::Schema
::Result
::Aqorder
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Aqorder
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<aqorders>
22 __PACKAGE__
->table("aqorders");
41 datetime_undef_if_invalid: 1
65 datetime_undef_if_invalid: 1
86 =head2 unitprice_tax_excluded
92 =head2 unitprice_tax_included
98 =head2 quantityreceived
100 data_type: 'smallint'
104 =head2 datecancellationprinted
107 datetime_undef_if_invalid: 1
110 =head2 cancellationreason
115 =head2 order_internalnote
117 data_type: 'mediumtext'
120 =head2 order_vendornote
122 data_type: 'mediumtext'
125 =head2 purchaseordernumber
127 data_type: 'mediumtext'
138 data_type: 'timestamp'
139 datetime_undef_if_invalid: 1
140 default_value: current_timestamp
149 =head2 rrp_tax_excluded
155 =head2 rrp_tax_included
167 =head2 ecost_tax_excluded
173 =head2 ecost_tax_included
185 =head2 tax_rate_on_ordering
191 =head2 tax_rate_on_receiving
203 =head2 tax_value_on_ordering
209 =head2 tax_value_on_receiving
230 datetime_undef_if_invalid: 1
257 =head2 uncertainprice
271 datetime_undef_if_invalid: 1
274 =head2 subscriptionid
280 =head2 parent_ordernumber
298 =head2 suppliers_reference_number
304 =head2 suppliers_reference_qualifier
310 =head2 suppliers_report
317 __PACKAGE__
->add_columns(
319 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
321 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
323 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
325 { data_type
=> "smallint", is_nullable
=> 1 },
327 { data_type
=> "varchar", is_foreign_key
=> 1, is_nullable
=> 1, size
=> 10 },
329 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
331 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
333 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
335 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
337 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
338 "unitprice_tax_excluded",
339 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
340 "unitprice_tax_included",
341 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
343 { data_type
=> "smallint", default_value
=> 0, is_nullable
=> 0 },
344 "datecancellationprinted",
345 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
346 "cancellationreason",
347 { data_type
=> "text", is_nullable
=> 1 },
348 "order_internalnote",
349 { data_type
=> "mediumtext", is_nullable
=> 1 },
351 { data_type
=> "mediumtext", is_nullable
=> 1 },
352 "purchaseordernumber",
353 { data_type
=> "mediumtext", is_nullable
=> 1 },
355 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
358 data_type
=> "timestamp",
359 datetime_undef_if_invalid
=> 1,
360 default_value
=> \"current_timestamp
",
364 { data_type => "decimal
", is_nullable => 1, size => [13, 2] },
366 { data_type => "decimal
", is_nullable => 1, size => [28, 6] },
368 { data_type => "decimal
", is_nullable => 1, size => [28, 6] },
370 { data_type => "decimal
", is_nullable => 1, size => [13, 2] },
371 "ecost_tax_excluded
",
372 { data_type => "decimal
", is_nullable => 1, size => [28, 6] },
373 "ecost_tax_included
",
374 { data_type => "decimal
", is_nullable => 1, size => [28, 6] },
376 { data_type => "decimal
", is_nullable => 1, size => [6, 4] },
377 "tax_rate_on_ordering
",
378 { data_type => "decimal
", is_nullable => 1, size => [6, 4] },
379 "tax_rate_on_receiving
",
380 { data_type => "decimal
", is_nullable => 1, size => [6, 4] },
382 { data_type => "decimal
", is_nullable => 1, size => [28, 6] },
383 "tax_value_on_ordering
",
384 { data_type => "decimal
", is_nullable => 1, size => [28, 6] },
385 "tax_value_on_receiving
",
386 { data_type => "decimal
", is_nullable => 1, size => [28, 6] },
388 { data_type => "float
", is_nullable => 1, size => [6, 4] },
390 { data_type => "integer
", is_foreign_key => 1, is_nullable => 0 },
392 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
394 { data_type => "varchar
", is_nullable => 1, size => 80 },
396 { data_type => "varchar
", is_nullable => 1, size => 80 },
398 { data_type => "varchar
", is_nullable => 1, size => 10 },
400 { data_type => "varchar
", is_nullable => 1, size => 10 },
402 { data_type => "tinyint
", is_nullable => 1 },
404 { data_type => "integer
", default_value => 0, is_nullable => 1 },
406 { data_type => "date
", datetime_undef_if_invalid => 1, is_nullable => 1 },
408 { data_type => "integer
", is_foreign_key => 1, is_nullable => 1 },
409 "parent_ordernumber
",
410 { data_type => "integer
", is_nullable => 1 },
413 data_type => "varchar
",
414 default_value => "new
",
419 { data_type => "varchar
", is_nullable => 1, size => 35 },
420 "suppliers_reference_number
",
421 { data_type => "varchar
", is_nullable => 1, size => 35 },
422 "suppliers_reference_qualifier
",
423 { data_type => "varchar
", is_nullable => 1, size => 3 },
425 { data_type => "text
", is_nullable => 1 },
432 =item * L</ordernumber>
438 __PACKAGE__->set_primary_key("ordernumber
");
446 Related object: L<Koha::Schema::Result::AqorderUser>
450 __PACKAGE__->has_many(
452 "Koha
::Schema
::Result
::AqorderUser
",
453 { "foreign
.ordernumber
" => "self
.ordernumber
" },
454 { cascade_copy => 0, cascade_delete => 0 },
457 =head2 aqorders_items
461 Related object: L<Koha::Schema::Result::AqordersItem>
465 __PACKAGE__->has_many(
467 "Koha
::Schema
::Result
::AqordersItem
",
468 { "foreign
.ordernumber
" => "self
.ordernumber
" },
469 { cascade_copy => 0, cascade_delete => 0 },
472 =head2 aqorders_transfers_ordernumber_from
476 Related object: L<Koha::Schema::Result::AqordersTransfer>
480 __PACKAGE__->might_have(
481 "aqorders_transfers_ordernumber_from
",
482 "Koha
::Schema
::Result
::AqordersTransfer
",
483 { "foreign
.ordernumber_from
" => "self
.ordernumber
" },
484 { cascade_copy => 0, cascade_delete => 0 },
487 =head2 aqorders_transfers_ordernumber_to
491 Related object: L<Koha::Schema::Result::AqordersTransfer>
495 __PACKAGE__->might_have(
496 "aqorders_transfers_ordernumber_to
",
497 "Koha
::Schema
::Result
::AqordersTransfer
",
498 { "foreign
.ordernumber_to
" => "self
.ordernumber
" },
499 { cascade_copy => 0, cascade_delete => 0 },
506 Related object: L<Koha::Schema::Result::Aqbasket>
510 __PACKAGE__->belongs_to(
512 "Koha
::Schema
::Result
::Aqbasket
",
513 { basketno => "basketno
" },
517 on_delete => "CASCADE
",
518 on_update => "CASCADE
",
526 Related object: L<Koha::Schema::Result::Biblio>
530 __PACKAGE__->belongs_to(
532 "Koha
::Schema
::Result
::Biblio
",
533 { biblionumber => "biblionumber
" },
537 on_delete => "SET NULL
",
538 on_update => "CASCADE
",
546 Related object: L<Koha::Schema::Result::Aqbudget>
550 __PACKAGE__->belongs_to(
552 "Koha
::Schema
::Result
::Aqbudget
",
553 { budget_id => "budget_id
" },
554 { is_deferrable => 1, on_delete => "CASCADE
", on_update => "CASCADE
" },
561 Related object: L<Koha::Schema::Result::Currency>
565 __PACKAGE__->belongs_to(
567 "Koha
::Schema
::Result
::Currency
",
568 { currency => "currency
" },
572 on_delete => "SET NULL
",
573 on_update => "SET NULL
",
581 Related object: L<Koha::Schema::Result::Aqinvoice>
585 __PACKAGE__->belongs_to(
587 "Koha
::Schema
::Result
::Aqinvoice
",
588 { invoiceid => "invoiceid
" },
592 on_delete => "SET NULL
",
593 on_update => "CASCADE
",
597 =head2 subscriptionid
601 Related object: L<Koha::Schema::Result::Subscription>
605 __PACKAGE__->belongs_to(
607 "Koha
::Schema
::Result
::Subscription
",
608 { subscriptionid => "subscriptionid
" },
612 on_delete => "CASCADE
",
613 on_update => "CASCADE
",
617 =head2 borrowernumbers
621 Composing rels: L</aqorder_users> -> borrowernumber
625 __PACKAGE__->many_to_many("borrowernumbers
", "aqorder_users
", "borrowernumber
");
628 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2016-10-28 15:05:37
629 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:FyZsBWGJ8wsPkFdYUAetmg
632 # You can replace this text with custom code or comments, and it will be preserved on regeneration