O3-5199: make Bill.cashier optional - #157
Open
RajPrakash681 wants to merge 3 commits into
Open
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #157 +/- ##
============================================
+ Coverage 27.04% 27.09% +0.04%
- Complexity 497 500 +3
============================================
Files 190 190
Lines 4337 4333 -4
Branches 492 493 +1
============================================
+ Hits 1173 1174 +1
+ Misses 3062 3057 -5
Partials 102 102 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
NethmiRodrigo
left a comment
Contributor
There was a problem hiding this comment.
A couple of things:
- Please add some tests
- In the
ReceiptGenerator, bill.getCashier() is now nullable but no null guard was added here — this NPEs when printing a receipt for a cashier-less bill - In
SequentialReceiptNumberGeneratorbill.getCashier().getId()called without null check inCASHIERandCASHIER_AND_CASH_POINTgrouping cases — NPE on bill creation when cashier is null
| onDelete="SET NULL" onUpdate="CASCADE"/> | ||
| </changeSet> | ||
|
|
||
| <changeSet id="openmrs.billing-005-make-bill-cashier-optional" author="rjnt4"> |
Contributor
There was a problem hiding this comment.
Changeset ID openmrs.billing-005-make-bill-cashier-optional is missing the date component; project convention is openmrs.billing-005-YYYYMMDD-description (see openmrs.billing-004-20260320-add-provider-id-to-bill-payment). Also the author should be your name.
RajPrakash681
force-pushed
the
make-bill-cashier-optional
branch
from
April 10, 2026 12:41
ce54a6e to
706bb0b
Compare
RajPrakash681
force-pushed
the
make-bill-cashier-optional
branch
from
April 29, 2026 14:05
9effa4f to
8b375d7
Compare
RajPrakash681
force-pushed
the
make-bill-cashier-optional
branch
from
April 29, 2026 14:07
8b375d7 to
9e9a012
Compare
Contributor
Author
|
@NethmiRodrigo could you please take another look at this? I’ve made the changes based on your suggestions. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary