-
-
Notifications
You must be signed in to change notification settings - Fork 491
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
[BUG] able to enter negative values in distributions and donations. Shouldn't be able to #4487
Comments
Can I work on this @cielf ? |
Hi @mgrigoriev8109, I would love to be able to join you on a video call, and see you work on this by sharing your screen. If we can collaborate, I'll love to do that also. |
@mgrigoriev8109 Please do! |
Sorry @topeogunleye , I don't have much bandwidth at the moment so I'm mostly trying to contribute asynchronously. Are you comfortable working in Ruby, or do you need some resources to familiarize yourself with the language? In general open source projects are great learning opportunities - but it's helpful to have familiarity with a language before diving into a large codebase. |
Hi @mgrigoriev8109, Yes!, I have more than a year of working with Ruby and Ruby on Rails and more than 6 months experience of being a code reviewer for Ruby and Ruby on Rails projects. With this experience, I feel more than comfortable with Ruby. |
@cielf Figured I'd ask about the other inputs in the codebase since this issue mentions most of them already. So these questions are when a user is logged in as an Organization Admin (
And then the follow-up question is if these fields also require validation, if I should add it in the same PR, or do a new PR. |
Thanks for catching these -- most are out of out of scope for this change, |
Kit allocations should be allowed to have a negative quantity, though. This represents a bank de-constructing some kits and putting the components back into inventory. Doesn't happen very often at all, but it can. The rest should not be negative. |
And, I'll followup by checking the rest of those and putting any that aren't right in out backlog of issues (they'll mostly be Good First Issue fodder, I think.) |
Sounds good. Just realized this issue only dealt with
|
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned. |
Have checked the above, and added those that are not right to our deep backlog of issues to be written up. |
This issue is marked as stale due to no activity within 30 days. If no further activity is detected within 7 days, it will be unassigned. |
Automatically unassigned after 7 days of inactivity. |
Summary
Should not be able to have negative values for line items in distributions, donations, purchases, transfers, audits, kits
Why
Those values are just invalid in context.
Details
Note that there are line items where we should be able to have negative values, though. Specifically Inventory Adjustments and kit allocations. All other line items should not have negative values in them.
We consider this a high beginner difficulty -- manual testing it out will give you a lot of exercise of the system.
Criteria for completion
The text was updated successfully, but these errors were encountered: