From fdcb2f43c671504f70e3e93e5caa8d2aa7e3d61e Mon Sep 17 00:00:00 2001 From: Michal Kuklis Date: Thu, 21 Sep 2023 21:08:46 -0400 Subject: [PATCH] UICIRC-983: Add hour to the time frequency for reminder fees --- CHANGELOG.md | 1 + src/constants.js | 5 +++++ translations/ui-circulation/en.json | 1 + 3 files changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 94a11a78..177bd5e1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -46,6 +46,7 @@ * *BREAKING* bump `react-intl` to `v6.4.4`. Refs UICIRC-977. * Add informational message for Holds to New Request Policy page. Refs UICIRC-981. * Restore previously deleted Jest/RTL tests that were failing. Refs UICIRC-971. +* Add "hour" to the time frequency for reminder fees. Fixes UICIRC-983. ## [8.0.1](https://github.com/folio-org/ui-circulation/tree/v8.0.1) (2023-03-07) [Full Changelog](https://github.com/folio-org/ui-circulation/compare/v8.0.0...v8.0.1) diff --git a/src/constants.js b/src/constants.js index dd99ec68..e62878e1 100644 --- a/src/constants.js +++ b/src/constants.js @@ -378,6 +378,7 @@ export const closingTypesMap = { }; export const timeUnitsMap = { + HOUR: 'hour', DAY: 'day', WEEK: 'week', }; @@ -409,6 +410,10 @@ export const closedLoansRules = { }; export const timeUnits = [ + { + value: timeUnitsMap.HOUR, + label: 'ui-circulation.settings.finePolicy.reminderFees.timeUnit.hours', + }, { value: timeUnitsMap.DAY, label: 'ui-circulation.settings.finePolicy.reminderFees.timeUnit.days', diff --git a/translations/ui-circulation/en.json b/translations/ui-circulation/en.json index b20300d6..db10be68 100644 --- a/translations/ui-circulation/en.json +++ b/translations/ui-circulation/en.json @@ -440,6 +440,7 @@ "settings.finePolicy.reminderFees.selectNoticeMethod": "Select notice method", "settings.finePolicy.reminderFees.selectNoticeTemplate": "Select notice template", "settings.finePolicy.reminderFees.selectBlockTemplate": "Select block template", + "settings.finePolicy.reminderFees.timeUnit.hours": "Hour(s)", "settings.finePolicy.reminderFees.timeUnit.days": "Day(s)", "settings.finePolicy.reminderFees.timeUnit.weeks": "Week(s)", "settings.finePolicy.reminderFees.noticeMethods.email": "Email",