Skip to content

Commit

Permalink
Merge pull request #6459 from hmislk/Issue#6458
Browse files Browse the repository at this point in the history
Issue#6458 Closes #6458
  • Loading branch information
DeshaniPubudu authored Jul 21, 2024
2 parents 2c34337 + 3290e20 commit f2e9bc0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -667,6 +667,11 @@ public void setSessionDate(Date sessionDate) {
}

public boolean isForeigner() {
if (configOptionApplicationController.getBooleanValueByKey("Save the Patient with Patient Status")) {
if (patient != null) {
foreigner = patient.getPerson().isForeigner();
}
}
return foreigner;
}

Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/opd/opd_pre_bill.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
id="comment"/>
</div>

<h:panelGroup id="gpLocalForeign" layout="block" class="col-md-4" >
<h:panelGroup id="gpLocalForeign" layout="block" class="col-md-4" rendered="#{!configOptionApplicationController.getBooleanValueByKey('Save the Patient with Patient Status')}">
<p:commandButton value="Mark Foreigner"
class="mx-1"
action="#{opdPreBillController.markAsForeigner}"
Expand Down

0 comments on commit f2e9bc0

Please sign in to comment.