-
-
Notifications
You must be signed in to change notification settings - Fork 571
[4987] Annual Reports range Export #5274
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
douten
wants to merge
9
commits into
rubyforgood:main
Choose a base branch
from
douten:4987-annual-report-export-range
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
4763518
[4987] feat: range annual report export
douten 90bdffc
[4987] test
douten 23f9647
[4987] revert test change
douten 31fa6bc
[4987] docs
douten 9843cc9
[4987] expand testing
douten 6ff3f76
[4987] words
douten e3f616d
Merge branch 'main' into 4987-annual-report-export-range
douten 364e2bd
Merge branch 'main' into 4987-annual-report-export-range
awwaiid a053a75
Added recalculation
cielf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+689 KB
docs/user_guide/bank/images/reports/reports-anual-survey-yearly-export.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,46 @@ | ||
| # Annual Survey | ||
|
|
||
| The annual survey contains information useful for completing the NDBN or Alliance for Period Supplies annual survey, but also for grant writing. | ||
| Each year's annual survey becomes available January 1 of the following year. | ||
|
|
||
| ## How to get the report | ||
| ## How to get all year report | ||
|
|
||
| 1. Click on “Reports” | ||
| 2. Click on “Annual Survey” | ||
| 3. Click on "Export Yearly Reports | ||
|
|
||
|  | ||
|
|
||
| ## How to get single year report | ||
|
|
||
| Click on "Reports", then "Annual Survey" in the left-hand menu. Then click on the year of the report you wish to view. | ||
| Click on "Reports", then "Annual Survey" in the left-hand menu. Then click on the year of the report you wish to view. | ||
|  | ||
|
|
||
| This brings up the report. | ||
| This brings up the report. | ||
|
|
||
|  | ||
|  | ||
|  | ||
|  | ||
|
|
||
| ### Recalculation | ||
|
|
||
| If you have added information for that year since the last time you ran the report, you should recalculate the report by clicking "Recalculate Report" (A) | ||
| You may want to recalculate older reports as they will not reflect any changes we made since they were generated. | ||
|
|
||
| ### Exporting | ||
|
|
||
| You can also extract the report to a csv file by clicking "Export Report" (B) | ||
|
|
||
| ### Calculation notes | ||
|
|
||
| 1/ We are in the process of changing the calculations so that Items in Kits appear in the totals for each value. | ||
| At time of writing, the # of disposable and cloth diapers distributed include any diapers in Kits, and period supplies also include period supplies in Kits, but adult incontinence and other do not. | ||
| At time of writing, the # of disposable and cloth diapers distributed include any diapers in Kits, and period supplies also include period supplies in Kits, but adult incontinence and other do not. | ||
| At time of writing, purchased/donated supplies do not include any Kit Purchases/Donations. ( We only know of one bank that currently has kits donated.) | ||
|
|
||
| 2/ % donated / purchased is based on the number of Items acquired, not the number of Items distributed. | ||
| 2/ % donated / purchased is based on the number of Items acquired, not the number of Items distributed. | ||
|
|
||
| 3/ How we calculate per person values: | ||
| If you have entered a non-zero value for an [Item](inventory_items.md#editing-an-item) in the quantity per individual field, we use that value. Otherwise, we assume 50 of the Item per individual. | ||
|
|
||
|
|
||
| If you have entered a non-zero value for an [Item](inventory_items.md#editing-an-item) in the quantity per individual field, we use that value. Otherwise, we assume 50 of the Item per individual. | ||
|
|
||
| [Prior: Trends](reports_trends.md) [Next: Distributions by County](reports_distributions_by_county.md) | ||
| [Prior: Trends](reports_trends.md) [Next: Distributions by County](reports_distributions_by_county.md) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi! Different reports end up having different columns. Here, instead of plucking out the values in the specific order, can you instead do a pass through all the reports and get all the headers and then build out a hash or something so that we can handle blank values and then go through and output the CSV based on that?
Something like this (note this is COMPLETELY UNTESTED SUGGESTION) :)
That way if year 1 has some headers that year 2 doesn't have (or vice-versa) then we will get all of the entries.