Details
Description
Purpose: To implement Fixed Due Date Schedule CRU (delete is in separate story). Fixed due dates are used in Loan Policies so this is a prerequisite to the completion of Loan Policy CRUD. More background on how this is used below.
Scenarios:
- Scenario
- Given the Circulation section of FOLIO Settings
- When displayed
- Then a new sub-section should display for Fixed due date schedules
- Scenario
- Given the Fixed due date schedules section
- When selected
- Then a list of existing Fixed due date schedules should display
- Sort order is alphabetical by name (case insensitive)
- Header should include a "+ New" button
- Scenario
- Given a Fixed due date schedule
- When selected from the list
- Then a read-only "preview pane" should display
- Header: <FixedDueDateScheduleName>
- Body: read-only view of the data described below
- Functions
- Pull down arrow next to the <FixedDueDateScheduleName> offers option to edit
- X in upper left closes the preview pane
- Scenario
- Given the "+ New" button
- When clicked
- Then a full-page Create form should open
- Scenario
- Given the menu next to the <FixedDueDateScheduleName> in the header
- When Edit is selected
- Then a full-page Edit form should open
- Scenario
- Given the Create or Edit page
- When displayed
- Then the the following details should display:
- About section
- Fixed due date schedule name* - Required, text
- Description - Optional, text area
- Schedule section
- Section label: Schedule
- Repeatable field set:
- Date from - date picker
- Date to - date picker
- Due date - date picker
- About section
- Scenario
- Given the Create new fixed due date schedule form
- When the schedule section is displayed
- Then two blank rows should appear
- Scenario
- Given the Schedule section
- When displayed
- Then an "Add row" button should appear as shown in the linked wireframes
- Scenario
- Given the Add row button
- When clicked
- Then a new row should be added to the top of the schedule rows in the section
- Scenario
- Given a row in the schedule section of a Fixed due date schedule
- When displayed
- Then a delete icon should display
- Scenario
- Given the delete icon for a row in the schedule section
- When clicked
- Then the row should be deleted
- Scenario
- Given dates on this page
- When in displayed
- Then date format and date pickers should correspond with locale selected in Settings > Organization > Language and localization
- Scenario
- Given a Fixed due date schedule name
- When not populated
- Then:
- Display as invalid with red X in field
- Display "Please fill this in to continue" in red text below the field
- Disallow saving of the record
- Scenario
- Given a Fixed due date schedule name
- When not unique
- Then:
- Display as invalid with red X in field
- Display "Please enter unique name" in red text below the field
- Disallow saving of the record
- Scenario
- Given a "To date"
- When set to a date before the "From date"
- Then:
- Display as invalid
- Display "To date must be after from date" in red text below the field
- Disallow saving of the record
- Scenario
- Given a "Due date"
- When set to a date before the "To date"
- Then:
- Display as invalid
- Display "Due date must be on or after to date" in red text below the field
- Disallow saving of the record
- Scenario
- Given a fixed due date schedule with unsaved changes
- When user attempts to navigate away to another part of FOLIO (within the same browser tab)
- Then the unsaved changes modal should display
UICIRC-20
Wireframes: https://drive.google.com/drive/folders/0B18Bhhmr94zaMHpzb2MtWUJuMms
Background on this feature: Every loan is associated with a loan policy. Every loan policy, assuming loanable = Y, will have a "loan profile". Options are rolling or fixed and indefinite. When fixed is selected, you need to select a fixed due date schedule (these are library-defined, but will be things like quarter, semester and year). The system will then look at the date ranges in the selected schedule to determine the due date for the item.
If you look at the loan policy metadata, you'll see that fixed due date schedules are used for more than just calculating the primary due dates. For example, they can also be used for due date limits or for calculating alternative due dates for renewals.
TestRail: Results
Attachments
Issue Links
- blocks
-
UICIRC-22 Delete Fixed Due Date Schedules
-
- Closed
-
-
UICIRC-27 Display Fixed Due Date Schedules in Loan Policies
-
- Closed
-
- is blocked by
-
CIRCSTORE-9 create an endpoint for CRUDing fixed due date schedules
-
- Closed
-
- relates to
-
CIRCSTORE-7 Implement Loan Policies web service endpoint v1
-
- Closed
-
-
STCOM-120 Datepicker shows two Xs after a validation failure
-
- Closed
-
-
STSMACOM-12 HOC for CRUD
-
- Closed
-
-
STSMACOM-15 handle form validation
-
- Closed
-
-
UICIRC-29 new "schedule" rows should appear at top of list
-
- Closed
-
-
UICIRC-30 new entries should start with two empty "schedule" rows
-
- Closed
-
-
UICIRC-33 Clicking Loan Policy Then Fixed Due Date Schedule - Loan Policy List Still Displays
-
- Closed
-