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

O3-2996: Add billing module to openmrs distro pom file and spa config #852

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

alaboso
Copy link
Contributor

@alaboso alaboso commented Oct 17, 2024

Description of what I changed

This PR is to introduce the Billing and StockManagement modules to the reference application. Billing requires Stock Management as a dependency. It replaces this PR.

  • Added stock management backend module (+ roles and privileges)
  • Added billing backend module (+ metadata)
  • Added stock management frontend module
  • Added billing frontend module
  • Renamed DemoQueueConcepts - Clinical consultation to Clinical Consult
  • Updated initializer version from 2.7.0 to 2.8.0-SNAPSHOT - (bug fix for privileges and roles bug)
  • Updated openmrs-packager-maven-plugin from 1.7.0 to 1.9.0-SNAPSHOT - to use openconceptlab module version 2.4.0

Issue I worked on

https://openmrs.atlassian.net/browse/O3-2996

Checklist: I completed these to help reviewers :)

  • My IDE is configured to follow the code style of this project.

    No? Unsure? -> configure your IDE, format the code and add the changes with git add . && git commit --amend

  • I have added tests to cover my changes. (If you refactored
    existing code that was well tested you do not have to add tests)

    No? -> write tests and add them to this commit git add . && git commit --amend

  • I ran mvn clean package right before creating this pull request and
    added all formatting changes to my commit.

mvn --batch-mode --update-snapshots --activate-profiles distro,validator clean package

No? -> execute above command

  • All new and existing tests passed.

    No? -> figure out why and add the fix to your commit. It is your responsibility to make sure your code works.

  • My pull request is based on the latest changes of the master branch.

    No? Unsure? -> execute command git pull --rebase upstream master

@ODORA0
Copy link
Member

ODORA0 commented Oct 17, 2024

@dkayiwa PR For your Review

@dkayiwa
Copy link
Member

dkayiwa commented Oct 17, 2024

@ODORA0 did you get a chance to look into the merge conflicts?

@alaboso
Copy link
Contributor Author

alaboso commented Oct 17, 2024

@ODORA0 did you get a chance to look into the merge conflicts?

@dkayiwa - As of the time of making this PR, there was no merge conflict. The merge conflict has been resolved. @eudson @ODORA0

@dkayiwa dkayiwa merged commit 6f44b01 into openmrs:main Oct 17, 2024
13 checks passed
@dkayiwa
Copy link
Member

dkayiwa commented Oct 18, 2024

@alaboso @ODORA0 the O3 server side log is filled with so many exceptions that look like this: https://pastebin.com/R6cvEiRU
Can you look into them?

@alaboso
Copy link
Contributor Author

alaboso commented Oct 18, 2024

@ODORA0 is looking into this and will issue an update

@dkayiwa
Copy link
Member

dkayiwa commented Oct 18, 2024

@ODORA0 is looking into this and will issue an update

Thanks! I look forward to reviewing and testing it again. 😊

@ibacher
Copy link
Member

ibacher commented Oct 18, 2024

The issue here is really straight-forward: the AOP controller assumes that Utils.getDefaultLocation() returns a valid object whereas Utils.getDefaultLocation() can explicitly return null.

By itself, this should be solvable using simple metadata to define the missing GP.

A couple of comments on the design here:

  1. Why would we use a GP instead of a Location Tag ("Default Cashpoint" or something)?
  2. The code doesn't seem to actually do anything useful with that value (or the cashierUUID) so it's unclear to me why it's defined at all (it's always passed to addBillItemToBill(), but that function does nothing with it)
  3. It's really weird to me that we assume that the active user is the cashier when the event we're handling is an order being placed, so the active user is the provider placing the order. But maybe this is just a badly named field?
  4. What's the point of the CashPoint class rather than, again, just tagging a specific location as a CashPoint?

@alaboso
Copy link
Contributor Author

alaboso commented Oct 24, 2024

@dkayiwa @ibacher - The issue has been fixed and a new artifact published. Is it ok to re-run, manually, the distro CI to redeploy to dev3? I can trigger it

@dkayiwa
Copy link
Member

dkayiwa commented Oct 29, 2024

@alaboso i have tested your changes and confirmed that we no longer have the former startup exceptions. Thanks for looking into this.

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.

5 participants