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");
34 data_type: 'mediumtext'
46 datetime_undef_if_invalid: 1
52 datetime_undef_if_invalid: 1
58 datetime_undef_if_invalid: 1
67 =head2 shipmentcost_budgetid
75 __PACKAGE__->add_columns(
77 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
79 { data_type => "mediumtext", is_nullable => 0 },
81 { data_type => "integer", is_foreign_key => 1, is_nullable => 0 },
83 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
85 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
87 { data_type => "date", datetime_undef_if_invalid => 1, is_nullable => 1 },
89 { data_type => "decimal", is_nullable => 1, size => [28, 6] },
90 "shipmentcost_budgetid",
91 { data_type => "integer", is_foreign_key => 1, is_nullable => 1 },
104 __PACKAGE__->set_primary_key("invoiceid");
112 Related object: L<Koha::Schema::Result::Aqorder>
116 __PACKAGE__->has_many(
118 "Koha::Schema::Result::Aqorder",
119 { "foreign.invoiceid" => "self.invoiceid" },
120 { cascade_copy => 0, cascade_delete => 0 },
127 Related object: L<Koha::Schema::Result::Aqbookseller>
131 __PACKAGE__->belongs_to(
133 "Koha::Schema::Result::Aqbookseller",
134 { id => "booksellerid" },
135 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
138 =head2 shipmentcost_budgetid
142 Related object: L<Koha::Schema::Result::Aqbudget>
146 __PACKAGE__->belongs_to(
147 "shipmentcost_budgetid",
148 "Koha::Schema::Result::Aqbudget",
149 { budget_id => "shipmentcost_budgetid" },
153 on_delete => "SET NULL",
154 on_update => "CASCADE",
159 # Created by DBIx::Class::Schema::Loader v0.07039 @ 2014-07-11 09:26:55
160 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:3se4f767VfvBKaZ8tlXwHQ
163 # You can replace this text with custom content, and it will be preserved on regeneration