Skip to content

Commit

Permalink
UICIRC-983: Add hour to the time frequency for reminder fees
Browse files Browse the repository at this point in the history
  • Loading branch information
mkuklis committed Sep 22, 2023
1 parent 7194d98 commit fdcb2f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
5 changes: 5 additions & 0 deletions src/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export const closingTypesMap = {
};

export const timeUnitsMap = {
HOUR: 'hour',
DAY: 'day',
WEEK: 'week',
};
Expand Down Expand Up @@ -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',
Expand Down
1 change: 1 addition & 0 deletions translations/ui-circulation/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit fdcb2f4

Please sign in to comment.