-
Notifications
You must be signed in to change notification settings - Fork 99
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
fix(stock): improve movements registry #2074
fix(stock): improve movements registry #2074
Conversation
f2ec4e8
to
108c4d1
Compare
@jniles |
This commit fixes a number of bugs on the movements registry. 1. The input/output search parameter now actually filters correctly. 2. The "reason" ui-select actually filters the registry. 3. The "actions" column does not present a dropdown on header rows. 4. The date and unit cost columns sort properly. 5. The grid footer no longer gives untranslated english text in the footer. It also improves the performance of the registry by pre-computing costs in the same way that it pre-computes the flux mappings. Closes IMA-WorldHealth#2073. Closes IMA-WorldHealth#2072.
108c4d1
to
b4af85d
Compare
@DedrickEnc, done. |
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.
The cleaning in this P.R is helpful, I am okay to pull it on master.
LGTM
<span translate>STOCK.INPUT</span> | ||
</label> | ||
</div> | ||
<div class="radio"> | ||
<label> | ||
<input type="radio" name="is_exit" value="0" ng-model="$ctrl.searchQueries.is_exit"> | ||
<input type="radio" name="is_exit" value="1" ng-model="$ctrl.searchQueries.is_exit"> |
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.
👍 Good catch
<ui-select name="inventory" ng-model="$ctrl.searchQueries.flux_id"> | ||
<ui-select-match> | ||
<span translate>{{$select.selected.label}}</span> | ||
</ui-select-match> | ||
<ui-select-choices ui-select-focus-patch repeat="flux as flux in $ctrl.fluxes | filter:{ 'label': $select.search }"> | ||
<ui-select-choices ui-select-focus-patch repeat="flux.id as flux in $ctrl.fluxes | filter:{ 'label': $select.search }"> |
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.
👍
@@ -1,4 +1,4 @@ | |||
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body uib-dropdown-toggle> | |||
<div class="ui-grid-cell-contents text-action" uib-dropdown dropdown-append-to-body uib-dropdown-toggle ng-if="!row.groupHeader"> |
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.
As you suggested in the email, this enhancement should be done in every registry with grouping option. So an issue should be better.
bors r+ |
2074: fix(stock): improve movements registry r=DedrickEnc a=jniles This commit fixes a number of bugs on the movements registry. 1. The input/output search parameter now actually filters correctly. 2. The "reason" ui-select actually filters the registry. 3. The "actions" column does not present a dropdown on header rows. 4. The date and unit cost columns sort properly. 5. The grid footer no longer gives untranslated english text in the footer. It also improves the performance of the registry by pre-computing costs in the same way that it pre-computes the flux mappings. Closes #2073. Closes #2072. ---
Build failed |
bors r+ |
2074: fix(stock): improve movements registry r=jniles a=jniles This commit fixes a number of bugs on the movements registry. 1. The input/output search parameter now actually filters correctly. 2. The "reason" ui-select actually filters the registry. 3. The "actions" column does not present a dropdown on header rows. 4. The date and unit cost columns sort properly. 5. The grid footer no longer gives untranslated english text in the footer. It also improves the performance of the registry by pre-computing costs in the same way that it pre-computes the flux mappings. Closes #2073. Closes #2072. ---
Build succeeded |
This commit fixes a number of bugs on the movements registry.
footer.
It also improves the performance of the registry by pre-computing costs
in the same way that it pre-computes the flux mappings.
Closes #2073. Closes #2072.
Thank you for contributing!
Before submitting this pull request, please verify that you have:
For a more detailed checklist, see the online review checklist that this PR will be evaluated against.
Ensuring that the above checkboxes are completed will help speed the review process and help build a stronger application. Thanks!