2 package Koha
::Schema
::Result
::Aqinvoice
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Aqinvoice
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<aqinvoices>
22 __PACKAGE__
->table("aqinvoices");
46 datetime_undef_if_invalid: 1
52 datetime_undef_if_invalid: 1
58 datetime_undef_if_invalid: 1
67 =head2 shipmentcost_budgetid
81 __PACKAGE__
->add_columns(
83 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
85 { data_type
=> "longtext", is_nullable
=> 0 },
87 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 0 },
89 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
91 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
93 { data_type
=> "date", datetime_undef_if_invalid
=> 1, is_nullable
=> 1 },
95 { data_type
=> "decimal", is_nullable
=> 1, size
=> [28, 6] },
96 "shipmentcost_budgetid",
97 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
99 { data_type
=> "integer", is_foreign_key
=> 1, is_nullable
=> 1 },
106 =item * L</invoiceid>
112 __PACKAGE__
->set_primary_key("invoiceid");
116 =head2 aqinvoice_adjustments
120 Related object: L<Koha::Schema::Result::AqinvoiceAdjustment>
124 __PACKAGE__
->has_many(
125 "aqinvoice_adjustments",
126 "Koha::Schema::Result::AqinvoiceAdjustment",
127 { "foreign.invoiceid" => "self.invoiceid" },
128 { cascade_copy
=> 0, cascade_delete
=> 0 },
135 Related object: L<Koha::Schema::Result::Aqorder>
139 __PACKAGE__
->has_many(
141 "Koha::Schema::Result::Aqorder",
142 { "foreign.invoiceid" => "self.invoiceid" },
143 { cascade_copy
=> 0, cascade_delete
=> 0 },
150 Related object: L<Koha::Schema::Result::Aqbookseller>
154 __PACKAGE__
->belongs_to(
156 "Koha::Schema::Result::Aqbookseller",
157 { id
=> "booksellerid" },
158 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
165 Related object: L<Koha::Schema::Result::EdifactMessage>
169 __PACKAGE__
->belongs_to(
171 "Koha::Schema::Result::EdifactMessage",
172 { id
=> "message_id" },
176 on_delete
=> "SET NULL",
177 on_update
=> "RESTRICT",
181 =head2 shipmentcost_budgetid
185 Related object: L<Koha::Schema::Result::Aqbudget>
189 __PACKAGE__
->belongs_to(
190 "shipmentcost_budgetid",
191 "Koha::Schema::Result::Aqbudget",
192 { budget_id
=> "shipmentcost_budgetid" },
196 on_delete
=> "SET NULL",
197 on_update
=> "CASCADE",
202 # Created by DBIx::Class::Schema::Loader v0.07042 @ 2018-07-16 13:50:45
203 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:mpdxTbkz/8WInG5Wp4q7Ug
205 sub koha_object_class
{
206 'Koha::Acquisition::Invoice';
208 sub koha_objects_class
{
209 'Koha::Acquisition::Invoices';