From 84c0339acc4811ab405b917cdcb0d753adaa6b26 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 3 Mar 2021 14:50:39 +0100 Subject: [PATCH] Bug 26057: DBIC schema changes Signed-off-by: Jonathan Druart --- Koha/Schema/Result/Branchtransfer.pm | 44 ++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Branchtransfer.pm b/Koha/Schema/Result/Branchtransfer.pm index 4df4ab1d66..b4bf37b55c 100644 --- a/Koha/Schema/Result/Branchtransfer.pm +++ b/Koha/Schema/Result/Branchtransfer.pm @@ -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'; -- 2.39.5