Skip to content

Commit

Permalink
Merge pull request #6768 from hmislk/issue#6767
Browse files Browse the repository at this point in the history
Issue#6767 Closes #6767
  • Loading branch information
DeshaniPubudu committed Aug 7, 2024
2 parents 85a3d3e + a487c0d commit 104aa8e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
8 changes: 4 additions & 4 deletions src/main/java/com/divudi/bean/common/TokenController.java
Original file line number Diff line number Diff line change
Expand Up @@ -358,10 +358,10 @@ public String settlePharmacyToken() {
JsfUtil.addErrorMessage("Wrong Token");
return "";
}
if (getPatient().getId() == null) {
JsfUtil.addErrorMessage("Please select a patient");
return "";
} else if (getPatient().getPerson().getName() == null) {
// if (getPatient().getId() == null) {
// JsfUtil.addErrorMessage("Please select a patient");
// return "";
if (getPatient().getPerson().getName() == null) {
JsfUtil.addErrorMessage("Please select a patient");
return "";
} else if (getPatient().getPerson().getName().trim().equals("")) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1745,9 +1745,9 @@ public void settlePreBill() {
}

}
if (getToken() != null) {
getToken().setBill(getPreBill());
tokenFacade.edit(getToken());
if (getCurrentToken() != null) {
getCurrentToken().setBill(getPreBill());
tokenFacade.edit(getCurrentToken());
}

markToken();
Expand Down
1 change: 1 addition & 0 deletions src/main/webapp/token/pharmacy_tokens.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
rendered="#{token.bill eq null}"
title="Pharmacy Bill for Cashier"
action="#{tokenController.navigateToNewPharmacyBillForCashier()}">
<f:setPropertyActionListener target="#{pharmacySaleController.currentToken}" value="#{token}" />
<f:setPropertyActionListener target="#{tokenController.currentToken}" value="#{token}" />
</p:commandButton>
<p:tooltip value="Bill For Cashier" />
Expand Down

0 comments on commit 104aa8e

Please sign in to comment.