Skip to content
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 duplicate location inventory when adding an inventory #1400

Merged
merged 7 commits into from
May 14, 2024

Conversation

peterMuriuki
Copy link
Collaborator

**closes #1384 **

updated the post inventory util function to only create a new location inventory list resource when editing an existing inventory, not to do so when adding a new inventory to a location that has previous assignments .

Update inventory view details section to see all inventories attached to a location even if sharing products

Checklist

  • tests are included and passing

@peterMuriuki peterMuriuki marked this pull request as ready for review May 9, 2024 20:36
@peterMuriuki peterMuriuki merged commit 1fabd0f into main May 14, 2024
0 of 2 checks passed
@peterMuriuki peterMuriuki deleted the 1384-duplicate-inventory branch May 14, 2024 08:11
sharon2719 pushed a commit that referenced this pull request May 20, 2024
* Check locationInventory list before creating new one

* Show all inventory even if they share duplicate products

* Fix how the global inventory list resource is updated

* Cleanup dockstring

* Update tests

* Add a todo

* Update snapshot test
peterMuriuki added a commit that referenced this pull request Jun 6, 2024
* Add patient list view

* Add patient list view

* Update PatientlistView

* Remove unused folder

* Fix details

* Fix duplicate location inventory when adding an inventory (#1400)

* Check locationInventory list before creating new one

* Show all inventory even if they share duplicate products

* Fix how the global inventory list resource is updated

* Cleanup dockstring

* Update tests

* Add a todo

* Update snapshot test

* Remove unchanged files

* Resolve changes

* Fix lint issues

* Finalize changes to lisyview

* Adjust view according  to designs

* fix lint

* Update index.tsx

* Rename files

* Final lint fix

* Fix build issue

* Update the designs and test

* Update tests (#1427)

* Update and fix failing tests

* Fix Linting error

* Update packages/fhir-client/src/components/PatientDetailsOverview/index.tsx

Updte PatientDetailsOverview

Co-authored-by: Peter Muriuki <pmuriuki98@gmail.com>

* Update packages/react-utils/src/components/KeyValuePairs/index.tsx

Co-authored-by: Peter Muriuki <pmuriuki98@gmail.com>

---------

Co-authored-by: Peter Muriuki <pmuriuki98@gmail.com>
Co-authored-by: Eric Musyoka <wambua.eric01@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[EUSM]: Invetory addition creates multiple List resources instead of one
2 participants