https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42218 --- Comment #46 from Nick Clemens (kidclamp) <nick@bywatersolutions.com> --- Created attachment 211136 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211136&action=edit Bug 42218: Create a shared UsageObject class The four usage classes (UsageTitle, UsagePlatform, UsageDatabase and UsageItem) had byte-identical monthly_usages, yearly_usages and erm_usage_*uses methods. This moves them to one base class, Koha::ERM::EUsage::UsageObject, so the yearly usage change in the next patches is made once. Each subclass keeps only _type. Assisted-by: Sonnet 5 (Anthropic) Signed-off-by: Clemens Tubach <clemens.tubach@kit.edu> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> Signed-off-by: Clemens Tubach <clemens.tubach@kit.edu> Signed-off-by: Michaela Sieber <michaela.sieber@kit.edu> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> -- You are receiving this mail because: You are watching all bug changes.