Bug 26057: DBIC schema changes
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Mar 2021 13:50:39 +0000 (14:50 +0100)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 3 Mar 2021 14:36:13 +0000 (15:36 +0100)
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Koha/Schema/Result/Branchtransfer.pm

index 4df4ab1..b4bf37b 100644 (file)
@@ -75,6 +75,14 @@ the branch the transfer is coming from
 
 the date the transfer arrived at its destination
 
+=head2 datecancelled
+
+  data_type: 'datetime'
+  datetime_undef_if_invalid: 1
+  is_nullable: 1
+
+the date the transfer was cancelled
+
 =head2 tobranch
 
   data_type: 'varchar'
@@ -100,6 +108,14 @@ any comments related to the transfer
 
 what triggered the transfer
 
+=head2 cancellation_reason
+
+  data_type: 'enum'
+  extra: {list => ["Manual","StockrotationAdvance","StockrotationRepatriation","ReturnToHome","ReturnToHolding","RotatingCollection","Reserve","LostReserve","CancelReserve"]}
+  is_nullable: 1
+
+what triggered the transfer cancellation
+
 =cut
 
 __PACKAGE__->add_columns(
@@ -139,6 +155,12 @@ __PACKAGE__->add_columns(
     datetime_undef_if_invalid => 1,
     is_nullable => 1,
   },
+  "datecancelled",
+  {
+    data_type => "datetime",
+    datetime_undef_if_invalid => 1,
+    is_nullable => 1,
+  },
   "tobranch",
   {
     data_type => "varchar",
@@ -167,6 +189,24 @@ __PACKAGE__->add_columns(
     },
     is_nullable => 1,
   },
+  "cancellation_reason",
+  {
+    data_type => "enum",
+    extra => {
+      list => [
+        "Manual",
+        "StockrotationAdvance",
+        "StockrotationRepatriation",
+        "ReturnToHome",
+        "ReturnToHolding",
+        "RotatingCollection",
+        "Reserve",
+        "LostReserve",
+        "CancelReserve",
+      ],
+    },
+    is_nullable => 1,
+  },
 );
 
 =head1 PRIMARY KEY
@@ -229,8 +269,8 @@ __PACKAGE__->belongs_to(
 );
 
 
-# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-01-21 13:39:29
-# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:rseS0EldT7FjkmfRkgasBg
+# Created by DBIx::Class::Schema::Loader v0.07049 @ 2021-03-03 13:47:35
+# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:pL0dO9OUwImy2rv7Md3AyA
 
 sub koha_object_class {
     'Koha::Item::Transfer';