FE | Package record | Display Summary Table

Priority

Environment

None

Template

None

Description

As a collection development librarian
I want to view a summary of cost and usage information
So that I can quickly assess package cost/usage details

Requirement

  • Once a year is selected then a summary table should display on a package record with the following information
    ||Column header||Details||Display format||
    |Package cost|Total cost of package returned in response or Total cost of selected titles in a package for the selected year| <<currency symbol>> Total package cost in selected currency format (<<Currency code>> )|
    |Total usage|total usage for all selected titles in package for the selected year |display as number must comply to selected language/localization rules|
    |Cost per use|Package cost divided by Total Usage| <<currency symbol>>Cost per use in selected currency format (<<Currency code>> )|

  • If no value is returned then display "-"

  • If zero value is returned then display "0" in the format specified in the applicable Display format column

  • Mockup includes additional columns % of budget, POs. and Fund codes. WE will not support/implement these columns in this story.

  • If no cost and usage (for a selected year) is returned for the package then do not display the table. Instead display this message: This package contains no cost or usage data for <<selected year>>.

Mockup

https://drive.google.com/file/d/1G2pH0IRMW9pZ0x7CjMVnVePRVFGwjqVT/view?usp=sharing

Acceptance Criteria

If a year is selected on a package record

Then display a summary table that includes the following information: Package cost, Total usage, Cost per use

If I view package cost
Then the cost represents the total package cost whether returned in or the sum of cost for all titles in the package
AND the display represents selected currency symbol, format, and code

If I view Total usage
Then the total usage represents total usage across all titles returned in response
AND the display aligns with selected language and localization rules

If I view cost per use
Then cost per use represents
AND the display represents selected currency symbol, format, and code

If package cost/total usage/cost per use returns no value
Then display "-"

If package cost/total usage/cost per use returns zero
Then display zero in the format specified for package cost/total usage/cost per use

Given package cost, total usage, cost per use information is not returned in the response due to an error
Then return an error message [Unable to provide summary information. ]

Development Team

Spitfire

Release

None

Story Points

Sprint

Attachments

1

Checklist

hide

TestRail: Results

Activity

Show:

Khalilah Gambrell December 14, 2020 at 3:21 PM

Setting this to Done BUT I was unable to test with a non-US currency. Created a bug https://folio-org.atlassian.net/browse/UIEH-1009
cc: , , and

Khalilah Gambrell November 29, 2020 at 11:53 PM

Also this is not the best example because I thought we could not get these statistics for a package that has no titles selected.

Khalilah Gambrell November 29, 2020 at 11:51 PM
Edited

, couple of things

  1. Costs: We should only two digits after decimal .00

  2. Costs: We need to consider rounding up

  3. Costs: We need to support display in selected currency format as described in requirements. So in the case of USD, I would expect a comma as a 000 separator.

  4. Total usage: We need to account for localized requirements. I would expect a comma as a 000 separator

cc:

Khalilah Gambrell November 25, 2020 at 2:16 PM

Done

Details

Assignee

Reporter

Fix versions

TestRail: Cases

Open TestRail: Cases

TestRail: Runs

Open TestRail: Runs

Created August 28, 2020 at 12:26 PM
Updated December 14, 2020 at 3:22 PM
Resolved December 14, 2020 at 3:22 PM
TestRail: Cases
TestRail: Runs