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

closes#6343 #6345

Merged
merged 11 commits into from
Jul 12, 2024
2 changes: 1 addition & 1 deletion .github/counter.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9
2
2 changes: 1 addition & 1 deletion .github/last_date.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20240709
20240710
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Developed using Java Enterprise Edition, the system offers both a web applicatio

## Current Version

Current Version: 3.0.0.20240709.9 (This line will be automatically updated to reflect the latest version)
Current Version: 3.0.0.20240710.2 (This line will be automatically updated to reflect the latest version)

## History

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1529,6 +1529,14 @@ public String navigateToCollectingCenterBillingromMenu() {

public String navigateToCollectingCenterBillingromCollectingCenterBilling() {
prepareNewBillKeepingCollectingCenter();
fillAvailableAgentReferanceNumbers(collectingCentre);
setPatient(getPatient());
return "/collecting_centre/bill?faces-redirect=true";
}

public String navigateToCollectingCenterBillingfromBillPriview() {
prepareNewBillKeepingCollectingCenter();
fillAvailableAgentReferanceNumbers(collectingCentre);
setPatient(getPatient());
return "/collecting_centre/bill?faces-redirect=true";
}
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/com/divudi/bean/common/EnumController.java
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,9 @@ public InwardChargeType[] getInwardChargeTypesForSetting() {
InwardChargeType.Procedure,
InwardChargeType.Radiology,
InwardChargeType.ReportingCharges,
InwardChargeType.WardProcedure};
InwardChargeType.WardProcedure,
InwardChargeType.BabyCare,
};

return b;
}
Expand Down
10 changes: 10 additions & 0 deletions src/main/java/com/divudi/bean/common/SearchController.java
Original file line number Diff line number Diff line change
Expand Up @@ -6884,6 +6884,16 @@ public void createCCBillTableByKeyword(BillType billType, Institution ins, Depar
sql += " and bill.department=:dep ";
temMap.put("dep", dep);
}

if (getInstitution() != null) {
sql += " and ((bill.fromInstitution) =:ccName )";
temMap.put("ccName", getInstitution());
}

if (getSearchKeyword().getCode()!= null && !getSearchKeyword().getCode().trim().equals("")) {
sql += " and ((bill.fromInstitution.institutionCode) like :code )";
temMap.put("code", "%" + getSearchKeyword().getCode().trim().toUpperCase() + "%");
}

if (getSearchKeyword().getPatientName() != null && !getSearchKeyword().getPatientName().trim().equals("")) {
sql += " and ((bill.patient.person.name) like :patientName )";
Expand Down
3 changes: 1 addition & 2 deletions src/main/java/com/divudi/data/inward/InwardChargeType.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ public enum InwardChargeType {
@Deprecated
MedicalCare("MedicalCare"),



BabyCare("BabyCare Charges"),

// New enum values
Andrology("Andrology"),
Expand Down
4 changes: 1 addition & 3 deletions src/main/java/com/divudi/entity/pharmacy/Stock.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ public class Stock implements Serializable {
@Transient
private Double transItemStockQty;

@Transient
private Double transItemStockQty;


public List<Stock> getChildStocks() {
return childStocks;
}
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
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<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/digasiri</jta-data-source>
<jta-data-source>jdbc/arogya</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.logging.level.sql" value="SEVERE"/>
Expand All @@ -10,7 +10,7 @@
</properties>
</persistence-unit>
<persistence-unit name="hmisAuditPU" transaction-type="JTA">
<jta-data-source>jdbc/digasiriAudit</jta-data-source>
<jta-data-source>jdbc/arogyaAudit</jta-data-source>
<class>com.divudi.entity.AuditEvent</class>
<exclude-unlisted-classes>true</exclude-unlisted-classes>
<properties>
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.20240709.9
3.0.0.20240710.2
4 changes: 4 additions & 0 deletions src/main/webapp/admin/institutions/collecting_centre.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@
<p:inputText autocomplete="off" id="txtChqPrnName"
class="w-100"
value="#{collectingCentreController.current.chequePrintingName}" ></p:inputText>

<h:outputText value="Institution Code" ></h:outputText>
<p:inputText autocomplete="off" class="w-100 form-control m-1"
value="#{collectingCentreController.current.institutionCode}"></p:inputText>

<h:outputText value="Code" >
</h:outputText>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/collecting_centre/bill.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -564,7 +564,7 @@
class="ui-button-success m-1"
icon="fa fa-plus-circle"
ajax="false"
action="#{collectingCentreBillController.prepareNewBillKeepingCollectingCenter()}" >
action="#{collectingCentreBillController.navigateToCollectingCenterBillingfromBillPriview()}" >
</p:commandButton>
<p:commandButton
ajax="false"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,33 @@
</p:calendar>
<p:spacer height="10"/>
<div class="d-grid gap-2">
<p:commandButton id="btnSearch" class="ui-button-warning" icon="fas fa-search" ajax="false" value="Search" action="#{searchController.createCollectingCentreBillSearch}"/>
<p:commandButton
id="btnSearch"
class="ui-button-warning"
icon="fas fa-search"
ajax="false"
value="Search"
action="#{searchController.createCollectingCentreBillSearch}"/>

</div>
<h:outputLabel value="Collecting Center Name"/>
<p:autoComplete
converter="deal"
value="#{searchController.institution}"
forceSelection="true"
id="acColl"
completeMethod="#{institutionController.completeCollectingCenter}"
var="vt"
itemLabel="#{vt.name}"
itemValue="#{vt}"
maxResults="20"
class="w-100 mb-1"
inputStyleClass="form-control">
<p:column style="padding: 4px;">#{vt.institutionCode}</p:column>
<p:column style="padding: 4px;">#{vt.name}</p:column>
</p:autoComplete>
<h:outputLabel value="Collecting Center Code"/>
<p:inputText autocomplete="off" value="#{searchController.searchKeyword.code}" class="w-100"/>
<h:outputLabel value="Bill No"/>
<p:inputText autocomplete="off" value="#{searchController.searchKeyword.billNo}" class="w-100" />
<h:outputLabel value="Patient Name"/>
Expand Down