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

161 link location inventories #196

Merged
merged 4 commits into from
Jun 8, 2024
Merged

Conversation

Wambere
Copy link
Contributor

@Wambere Wambere commented Jun 6, 2024

IMPORTANT: Where possible all PRs must be linked to a Github issue

Fixes #161

Engineer Checklist

  • I have run ./gradlew spotlessApply to check my code follows the project's style guide
  • I have built and run the efsity jar to verify my change fixes the issue and/or does not break the application

@Wambere Wambere force-pushed the 161-link-location-inventories branch from fa375b6 to 0163795 Compare June 6, 2024 14:15
@Wambere Wambere enabled auto-merge (squash) June 6, 2024 15:41
importer/main.py Outdated
Comment on lines 779 to 812
entry = {
"flag": {
"coding": [
{
"system": "http://smartregister.org/codes",
"code": "22138876",
"display": "Supply Inventory List",
}
],
"text": "Supply Inventory List",
},
"date": supply_date,
"item": {"reference": "Group/" + inventory_id},
}
entries.append(entry)

except KeyError:
entry = {
"entry": [
{
"flag": {
"coding": [
{
"system": "http://smartregister.org/codes",
"code": "22138876",
"display": "Supply Inventory List",
}
],
"text": "Supply Inventory List",
},
"date": supply_date,
"item": {"reference": "Group/" + inventory_id},
}
]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you reduce the duplication here?

@Wambere Wambere requested a review from pld June 7, 2024 07:53
@Wambere Wambere merged commit f17e47e into main Jun 8, 2024
4 checks passed
@Wambere Wambere deleted the 161-link-location-inventories branch June 8, 2024 03:19
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 - Assign inventories to location
2 participants