-
-
Notifications
You must be signed in to change notification settings - Fork 527
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
Custom units docs #5082
Open
awwaiid
wants to merge
7
commits into
main
Choose a base branch
from
custom-units-docs
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
Custom units docs #5082
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
fc4c766
Add custom units docs and screenshots
awwaiid 333bda1
Show units on partner request history and validate pages
awwaiid eb68e6f
Add a contextual introduction section
awwaiid 849d3e2
Update wording a bit
awwaiid fb21d72
Clarify units as individual qty
awwaiid d247a3e
Chop out the top bit, it is confusing
awwaiid 8bc8260
Re-organize a bit
awwaiid 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 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 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 |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
<td><%= line_item.name %></td> | ||
<td><%= line_item.quantity %></td> | ||
<% if Flipper.enabled?(:enable_packs) && @partner_request.item_requests.any?( &:request_unit ) %> | ||
<td><%= line_item.request_unit %></td> | ||
<td><%= line_item.request_unit&.capitalize&.pluralize(line_item.quantity.to_i) %></td> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Bug fix 2 - the partner request review pop-up didn't pluralize units |
||
<% end %> | ||
</tr> | ||
<% end %> | ||
|
Binary file added
BIN
+36.9 KB
...guide/bank/images/special_custom_units/Distribution_creation_from_a_request.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+29.9 KB
docs/user_guide/bank/images/special_custom_units/Email_with_units.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+72 KB
docs/user_guide/bank/images/special_custom_units/Item_config_edit_button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+62.7 KB
docs/user_guide/bank/images/special_custom_units/Item_config_list_shows_units.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+53.9 KB
...guide/bank/images/special_custom_units/Item_config_request_units_checkboxes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+36.9 KB
docs/user_guide/bank/images/special_custom_units/New_Request_units.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+45.3 KB
...bank/images/special_custom_units/New_Request_units_only_on_configured_items.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+63.3 KB
docs/user_guide/bank/images/special_custom_units/Open_requests_with_units.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+61 KB
...ser_guide/bank/images/special_custom_units/Organization_level_units_setting.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+14.8 KB
docs/user_guide/bank/images/special_custom_units/Product_totals_calculation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+30.5 KB
docs/user_guide/bank/images/special_custom_units/Request_confirmation_popup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+20.6 KB
docs/user_guide/bank/images/special_custom_units/Request_history_units.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+64.1 KB
...ser_guide/bank/images/special_custom_units/Request_pick_list_pdf_with_units.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 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,16 +1,106 @@ | ||
READY FOR REVIEW | ||
# Coming Soon -- Custom Units (opt-in feature) | ||
# Custom Units (opt-in feature) | ||
|
||
The number of items throughout the bank's view of the system is the number of units (e.g. diapers), but | ||
Partners often think in terms of packs of diapers. Because Banks were getting a lot of partners requesting the number of packs of diapers, instead of the number of diapers, we are introducing the ability for banks to allow the partners to request other units (e.g. packs) | ||
Custom Units addresses a long-standing problem that diaper banks, in particular, experience: | ||
|
||
In short, you'll be able to add custom units that they partners can request. The partners then can ask for, say, 'packs' of diapers. You will still have to translate those to the number of items when distributing, because there is a lot of variety in pack size across brands. | ||
- On the one hand, when you are tracking raw inventory, writing grant proposals, or working with the NDBN, you need to know how many individual diapers you distribute. | ||
- On the other hand, partners often want to work in terms of "packs" of diapers. | ||
|
||
Unfortunately, there isn't a standard number of diapers in a "pack", even in the same size (sometimes not even with the same manufacturer!), so we can't just convert one to the other. | ||
|
||
Custom Units is our solution so that the partners can order in terms of "packs", "boxes", "flats", etc, but you as the Bank still work in terms of individual diapers. | ||
|
||
You can specify different units (e.g. packs, boxes, flats) that the partners can use to order items, or the partner can still request them by the number of individual items ("units"). | ||
|
||
You'll see the number of "packs" that the partner requested, but when creating the distribution you'll enter the number of individual items you actually distribute. | ||
|
||
(It's not a perfect solution!) | ||
|
||
We call this approach "Custom Unit" Requests. | ||
|
||
## Setting up Custom Units | ||
|
||
For a Bank to allow **Custom Units** to be used for Partner Requests, they must first configure which units are allowed and which items use custom units. | ||
|
||
### Set up your organization units | ||
|
||
First, set up all of the units that you want to use. | ||
|
||
- Click `My Organization` | ||
- Click `Edit` | ||
- In the "Custom Units" section, add in all of the custom units that you want to use | ||
- Use lower-case singular names | ||
- For example "pack", "box", and "flat" | ||
- You can make up your own unit names | ||
- Other unit ideas: "large pack", "small box", "1-month box" | ||
- Save changes | ||
|
||
 | ||
|
||
### Set up units for specific items | ||
|
||
Next, you need to indicate which items should use custom units. | ||
|
||
- Go into the Inventory → Items & Inventory page, in the "Item List" section | ||
- Select an item, for example "Kids Pull-Ups (5T-6T)", click `Edit` | ||
|
||
 | ||
|
||
- Indicate what units you would like Partners to use for requests of this item | ||
- For example, you can select "pack" and "flat" | ||
|
||
 | ||
|
||
Allowed units are then shown in the "Custom Request Units" column of the Item List. | ||
|
||
 | ||
|
||
## How Partners use Custom Units in Requests | ||
|
||
When a Partner places a request, they fill out a form indicating the items they are requesting. If the item is configured to have Custom Units, they must now select what is the units of their request. | ||
|
||
 | ||
|
||
Units are only required for items that hae custom units configured. The request can also use "Units" to indicate that they want that number of unique items no matter the packaging. | ||
|
||
 | ||
|
||
The confirmation screen shows the requested units. | ||
|
||
 | ||
|
||
Once the request is confirmed, the Partner will receive a success page with the requested units. | ||
|
||
<img src="images/special_custom_units/Success_page.png" border=1 /> | ||
|
||
The email sent to the Partner will also contain the requested units. | ||
|
||
<img src="images/special_custom_units/Email_with_units.png" border=1> | ||
|
||
The Request History page shows the units alongside the item quantities. | ||
|
||
 | ||
|
||
## Processing Requests with Units | ||
|
||
The request detail includes the units for each item. | ||
|
||
 | ||
|
||
From the Request list, clicking `Print Unfulfilled Picklists` button generates a picklist. The request picklist PDF lists units when they are specified in the request. | ||
|
||
 | ||
|
||
When you create a distribution from a request with units, you must enter the quantity of the items that are being distributed. **NOTE! The "Quantity - Total Units" is individual units!**. So if the Partner requested "9 boxes" of Pads, and each box has 10 Pads, then you should put "90" in the "Quantity - Total Units" field. | ||
|
||
 | ||
|
||
Distributions are always created in terms of raw quantity, not requested units. | ||
|
||
## Other reporting | ||
|
||
From the list of requests, you can click on `Calculate Product Totals` to get a summary of the request quantities. These are separated out by the different units requested. | ||
|
||
 | ||
|
||
Similarly you can export requests as a CSV and there are separate columns for each allowed item and unit. | ||
|
||
When this is ready for release, we will update this page, but to preview: | ||
[!NOTE] None of the following steps are available yet. | ||
- A bank that wishes to use custom units will add those units on their organization page | ||
- Then, for any Items that will use the custom units (you are not going to have the same units for car seats and diapers), you add them to that Item | ||
- At that point, the Partners will see a slightly different screen that will have them pick between "units" and the custom units (say, "packs") | ||
- When the bank sees the request, they will see the units that were chosen, but have to enter the total quantity for that item (in our example, the number of diapers) | ||
- The units the partner chose will show wherever we are showing the requested amounts (e.g. when viewing the request, when calculating Product Totals, when fulfilling the request, and in the pdf that is attached to their Distribution email. |
Oops, something went wrong.
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.
Bug fix 1 - the partner request view didn't include the units