2 package Koha
::Schema
::Result
::Branchtransfer
;
4 # Created by DBIx::Class::Schema::Loader
5 # DO NOT MODIFY THE FIRST PART OF THIS FILE
9 Koha::Schema::Result::Branchtransfer
16 use base
'DBIx::Class::Core';
18 =head1 TABLE: C<branchtransfers>
22 __PACKAGE__
->table("branchtransfers");
26 =head2 branchtransfer_id
42 datetime_undef_if_invalid: 1
48 default_value: (empty string)
56 datetime_undef_if_invalid: 1
62 default_value: (empty string)
75 extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve"]}
80 __PACKAGE__
->add_columns(
82 { data_type
=> "integer", is_auto_increment
=> 1, is_nullable
=> 0 },
85 data_type
=> "integer",
92 data_type
=> "datetime",
93 datetime_undef_if_invalid
=> 1,
98 data_type
=> "varchar",
106 data_type
=> "datetime",
107 datetime_undef_if_invalid
=> 1,
112 data_type
=> "varchar",
119 { data_type
=> "longtext", is_nullable
=> 1 },
126 "StockrotationAdvance",
127 "StockrotationRepatriation",
130 "RotatingCollection",
144 =item * L</branchtransfer_id>
150 __PACKAGE__
->set_primary_key("branchtransfer_id");
158 Related object: L<Koha::Schema::Result::Branch>
162 __PACKAGE__
->belongs_to(
164 "Koha::Schema::Result::Branch",
165 { branchcode
=> "frombranch" },
166 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
173 Related object: L<Koha::Schema::Result::Item>
177 __PACKAGE__
->belongs_to(
179 "Koha::Schema::Result::Item",
180 { itemnumber
=> "itemnumber" },
181 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
188 Related object: L<Koha::Schema::Result::Branch>
192 __PACKAGE__
->belongs_to(
194 "Koha::Schema::Result::Branch",
195 { branchcode
=> "tobranch" },
196 { is_deferrable
=> 1, on_delete
=> "CASCADE", on_update
=> "CASCADE" },
200 # Created by DBIx::Class::Schema::Loader v0.07046 @ 2020-03-20 11:24:33
201 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:50FpCj6vWH5O8MThCy/1hA
203 sub koha_object_class
{
204 'Koha::Item::Transfer';
206 sub koha_objects_class
{
207 'Koha::Item::Transfers';