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
41 the itemnumber that it is in transit (items.itemnumber)
45 data_type: 'timestamp'
46 datetime_undef_if_invalid: 1
47 default_value: current_timestamp
50 the date the transfer was requested
55 datetime_undef_if_invalid: 1
58 the date the transfer was initialized
63 default_value: (empty string)
68 the branch the transfer is coming from
73 datetime_undef_if_invalid: 1
76 the date the transfer arrived at its destination
81 datetime_undef_if_invalid: 1
84 the date the transfer was cancelled
89 default_value: (empty string)
94 the branch the transfer was going to
101 any comments related to the transfer
106 extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","TransferCancellation","Recall","RecallCancellation"]}
109 what triggered the transfer
111 =head2 cancellation_reason
114 extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve","ItemLost","WrongTransfer","RecallCancellation"]}
117 what triggered the transfer cancellation
121 __PACKAGE__->add_columns(
123 { data_type => "integer", is_auto_increment => 1, is_nullable => 0 },
126 data_type => "integer",
133 data_type => "timestamp",
134 datetime_undef_if_invalid => 1,
135 default_value => \"current_timestamp",
140 data_type => "datetime",
141 datetime_undef_if_invalid => 1,
146 data_type => "varchar",
154 data_type => "datetime",
155 datetime_undef_if_invalid => 1,
160 data_type => "datetime",
161 datetime_undef_if_invalid => 1,
166 data_type => "varchar",
173 { data_type => "longtext", is_nullable => 1 },
180 "StockrotationAdvance",
181 "StockrotationRepatriation",
184 "RotatingCollection",
188 "TransferCancellation",
190 "RecallCancellation",
195 "cancellation_reason",
201 "StockrotationAdvance",
202 "StockrotationRepatriation",
205 "RotatingCollection",
211 "RecallCancellation",
222 =item * L</branchtransfer_id>
228 __PACKAGE__->set_primary_key("branchtransfer_id");
236 Related object: L<Koha::Schema::Result::Branch>
240 __PACKAGE__->belongs_to(
242 "Koha::Schema::Result::Branch",
243 { branchcode => "frombranch" },
244 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
251 Related object: L<Koha::Schema::Result::Item>
255 __PACKAGE__->belongs_to(
257 "Koha::Schema::Result::Item",
258 { itemnumber => "itemnumber" },
259 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
266 Related object: L<Koha::Schema::Result::Branch>
270 __PACKAGE__->belongs_to(
272 "Koha::Schema::Result::Branch",
273 { branchcode => "tobranch" },
274 { is_deferrable => 1, on_delete => "CASCADE", on_update => "CASCADE" },
278 # Created by DBIx::Class::Schema::Loader v0.07049 @ 2022-10-03 16:48:17
279 # DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:BkhtfptiDqKKSv/hmCQy3w
281 sub koha_object_class {
282 'Koha::Item::Transfer';
284 sub koha_objects_class {
285 'Koha::Item::Transfers';