2 package Koha::Schema::Result::TransportCost;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::TransportCost
16 use base 'DBIx::Class::Core';
18 =head1 TABLE: C<transport_cost>
22 __PACKAGE__->table("transport_cost");
46 =head2 disable_transfer
54 __PACKAGE__->add_columns(
56 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
58 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
60 { data_type => "decimal", is_nullable => 0, size => [6, 2] },
62 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
69 =item * L</frombranch>
77 __PACKAGE__->set_primary_key("frombranch", "tobranch");
85 Related object: L<Koha::Schema::Result::Branch>
89 __PACKAGE__->belongs_to(
91 "Koha::Schema::Result::Branch",
92 { branchcode => "frombranch" },
93 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
100 Related object: L<Koha::Schema::Result::Branch>
104 __PACKAGE__->belongs_to(
106 "Koha::Schema::Result::Branch",
107 { branchcode => "tobranch" },
108 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
112 # Created by DBIx::Class::Schema::Loader v0.07025 @ 2013-10-14 20:56:21
113 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:gMs7dT/xK4ClGqQEHI7HOQ
116 # You can replace this text with custom content, and it will be preserved on regeneration