Skip to content

Commit

Permalink
Merge pull request #6600 from hmislk/Issue#6573
Browse files Browse the repository at this point in the history
Issue#6573 Closes #6573
  • Loading branch information
DeshaniPubudu authored Jul 26, 2024
2 parents 05a668c + 056a335 commit b852be2
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 6 deletions.
16 changes: 14 additions & 2 deletions src/main/java/com/divudi/bean/common/BillSearch.java
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ public class BillSearch implements Serializable {
CommonFunctionsController commonFunctionsController;
@Inject
PharmacyBillSearch pharmacyBillSearch;

@Inject
ConfigOptionApplicationController configOptionApplicationController;
/**
* Class Variables
*/
Expand Down Expand Up @@ -238,6 +241,14 @@ public class BillSearch implements Serializable {
public String navigateToBillPaymentOpdBill() {
return "bill_payment_opd?faces-redirect=true";
}

public void fillBillFees(){
for(BillItem bi : getRefundingBill().getBillItems()){
for(BillFee bfee : bi.getBillFees()){
bfee.setFeeValue(bfee.getReferenceBillFee().getFeeValue());
}
}
}

public void editBillDetails() {
Bill editedBill = bill;
Expand Down Expand Up @@ -2895,8 +2906,9 @@ public String navigateToRefundOpdBill() {
JsfUtil.addErrorMessage(ex.getMessage());
return "";
}
// boolean flag = billController.checkBillValues(bill);
// bill.setTransError(flag);
if(configOptionApplicationController.getBooleanValueByKey("To Refunded the Full Value of the Bill")){
fillBillFees();
}
printPreview = false;
return "/opd/bill_refund?faces-redirect=true;";
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<persistence version="2.2" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_2.xsd">
<persistence-unit name="hmisPU" transaction-type="JTA">

<jta-data-source>jdbc/hims</jta-data-source>
<jta-data-source>jdbc/arogya</jta-data-source>

<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
Expand All @@ -13,7 +13,7 @@
</persistence-unit>
<persistence-unit name="hmisAuditPU" transaction-type="JTA">

<jta-data-source>jdbc/himsAduit</jta-data-source>
<jta-data-source>jdbc/arogyaAudit</jta-data-source>

<exclude-unlisted-classes>false</exclude-unlisted-classes>

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/VERSION.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0.0.20240726.2
3.0.0.20240720.4
2 changes: 1 addition & 1 deletion src/main/webapp/opd/opd_bill.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -953,7 +953,7 @@
</h:panelGrid>
</p:panel>

<p:panel id="panelWorkingStaff" class="m-1">
<p:panel id="panelWorkingStaff" class="m-1" >
<f:facet name="header" >
<h:outputText styleClass="fa fa-money-bill-wave" /> <!-- FontAwesome Icon -->
<h:outputText value="Doctor Details" class="mx-4"></h:outputText>
Expand Down

0 comments on commit b852be2

Please sign in to comment.