1 package Koha::Schema::Result::TransportCost;
3 # Created by DBIx::Class::Schema::Loader
4 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 use base 'DBIx::Class::Core';
14 Koha::Schema::Result::TransportCost
18 __PACKAGE__->table("transport_cost");
42 =head2 disable_transfer
50 __PACKAGE__->add_columns(
52 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
54 { data_type => "varchar", is_foreign_key => 1, is_nullable => 0, size => 10 },
56 { data_type => "decimal", is_nullable => 0, size => [6, 2] },
58 { data_type => "tinyint", default_value => 0, is_nullable => 0 },
60 __PACKAGE__->set_primary_key("frombranch", "tobranch");
68 Related object: L<Koha::Schema::Result::Branch>
72 __PACKAGE__->belongs_to(
74 "Koha::Schema::Result::Branch",
75 { branchcode => "frombranch" },
76 { on_delete => "CASCADE", on_update => "CASCADE" },
83 Related object: L<Koha::Schema::Result::Branch>
87 __PACKAGE__->belongs_to(
89 "Koha::Schema::Result::Branch",
90 { branchcode => "tobranch" },
91 { on_delete => "CASCADE", on_update => "CASCADE" },
95 # Created by DBIx::Class::Schema::Loader v0.07000 @ 2012-09-02 08:44:15
96 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:xaYbVRwPFyhljmGybBzTqA
99 # You can replace this text with custom content, and it will be preserved on regeneration