From e6d0b733da733ec7eeed7f116b2f5b36bcee5070 Mon Sep 17 00:00:00 2001 From: Matt Blenkinsop Date: Thu, 19 Feb 2026 13:24:26 +0000 Subject: [PATCH] Bug 26355: DBIC file --- Koha/Schema/Result/Category.pm | 61 ++++++++++++++++++++++++++++++++-- 1 file changed, 59 insertions(+), 2 deletions(-) diff --git a/Koha/Schema/Result/Category.pm b/Koha/Schema/Result/Category.pm index c615395fcc2..765e22e857b 100644 --- a/Koha/Schema/Result/Category.pm +++ b/Koha/Schema/Result/Category.pm @@ -222,6 +222,50 @@ define maximum amount that the guarantors with guarantees of a patron in this ca enforce the patron expiry notice for this category +=head2 self_renewal_enabled + + data_type: 'tinyint' + default_value: 0 + is_nullable: 0 + +allow self renewal for this category + +=head2 self_renewal_availability_start + + data_type: 'smallint' + is_nullable: 1 + +how long before the patron expiry date self-renewal should be made available (overrides system default of NotifyBorrowerDeparture) + +=head2 self_renewal_fines_block + + data_type: 'integer' + is_nullable: 1 + +the amount owed in fines before self renewal is blocked (overrides system default of noissuescharge) + +=head2 self_renewal_if_expired + + data_type: 'smallint' + default_value: 0 + is_nullable: 1 + +how long after expiry a patron can self renew their account + +=head2 self_renewal_failure_message + + data_type: 'mediumtext' + is_nullable: 1 + +the message to display if self renewal is not successful + +=head2 self_renewal_information_message + + data_type: 'mediumtext' + is_nullable: 1 + +the message to display before the self renewal process starts + =cut __PACKAGE__->add_columns( @@ -293,6 +337,18 @@ __PACKAGE__->add_columns( { data_type => "integer", is_nullable => 1 }, "enforce_expiry_notice", { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "self_renewal_enabled", + { data_type => "tinyint", default_value => 0, is_nullable => 0 }, + "self_renewal_availability_start", + { data_type => "smallint", is_nullable => 1 }, + "self_renewal_fines_block", + { data_type => "integer", is_nullable => 1 }, + "self_renewal_if_expired", + { data_type => "smallint", default_value => 0, is_nullable => 1 }, + "self_renewal_failure_message", + { data_type => "mediumtext", is_nullable => 1 }, + "self_renewal_information_message", + { data_type => "mediumtext", is_nullable => 1 }, ); =head1 PRIMARY KEY @@ -400,8 +456,8 @@ __PACKAGE__->has_many( ); -# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-09 19:45:59 -# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:MArdX4M/RMcRQT/lA/rWAA +# Created by DBIx::Class::Schema::Loader v0.07051 @ 2026-02-19 11:48:23 +# DO NOT MODIFY THIS OR ANYTHING ABOVE! md5sum:v73KLGwTJPCn0pH+zpiaHg # You can replace this text with custom code or comments, and it will be preserved on regeneration @@ -437,6 +493,7 @@ __PACKAGE__->add_columns( '+require_strong_password' => { is_boolean => 1 }, '+reset_password' => { is_boolean => 1 }, '+enforce_expiry_notice' => { is_boolean => 1 }, + '+self_renewal_enabled' => { is_boolean => 1 }, ); 1; -- 2.39.5