Skip to content

Commit

Permalink
Merge branch 'master' into Issue#6551
Browse files Browse the repository at this point in the history
  • Loading branch information
DamithDeshan authored Jul 26, 2024
2 parents ecfdcc1 + 12030a8 commit 0d93a47
Show file tree
Hide file tree
Showing 16 changed files with 286 additions and 96 deletions.
2 changes: 1 addition & 1 deletion .github/counter.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
6
8
2 changes: 1 addition & 1 deletion .github/last_date.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20240725
20240726
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Developed using Java Enterprise Edition, the system offers both a web applicatio



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


## History
Expand Down
2 changes: 0 additions & 2 deletions nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,5 @@ Any value defined here will override the pom.xml file value but is only applicab
-->
<org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type>ide</org-netbeans-modules-maven-jaxws.rest_2e_config_2e_type>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>pfv5ee8</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
<netbeans.compile.on.save>none</netbeans.compile.on.save>
<org-netbeans-modules-maven-j2ee.netbeans_2e_deploy_2e_on_2e_save>false</org-netbeans-modules-maven-j2ee.netbeans_2e_deploy_2e_on_2e_save>
</properties>
</project-shared-configuration>
1 change: 1 addition & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.divudi</groupId>


<artifactId>vfs</artifactId>
<version>3.0.0</version>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,6 @@ public void debugDueFees() {
+ " and b.fee.feeType=:ftp"
+ " and b.bill.refunded=false "
+ " and b.bill.cancelled=false "
// + " and b.bill.singleBillSession.absent=false"
+ " and (b.feeValue - b.paidValue) > 0 "
+ " and b.bill.billType in :bt "
+ " and b.staff=:stf ";
Expand All @@ -366,6 +365,7 @@ public void debugDueFees() {
// + " order by b.bill.singleBillSession.serviceSession.sessionDate,"
// + " b.bill.singleBillSession.serviceSession.sessionTime,"
// + " b.bill.singleBillSession.serialNo ";

sql += " order by b.bill.singleBillSession.serviceSession.sessionDate,"
+ " b.bill.singleBillSession.serviceSession.sessionTime,"
+ " b.bill.singleBillSession.serialNo ";
Expand Down Expand Up @@ -447,7 +447,9 @@ public void calculateDueFees() {
+ " and b.fee.feeType=:ftp"
+ " and b.bill.refunded=false "
+ " and b.bill.cancelled=false "
// + " and b.bill.singleBillSession.absent=false"

// + " and b.bill.singleBillSession.absent=false"

+ " and (b.feeValue - b.paidValue) > 0 "
+ " and b.bill.billType in :bt "
+ " and b.staff=:stf ";
Expand Down Expand Up @@ -542,7 +544,6 @@ public void calculateSessionDueFees() {
+ " and b.fee.feeType=:ftp"
+ " and b.bill.refunded=false "
+ " and b.bill.cancelled=false "
// + " and b.bill.singleBillSession.absent=false"
+ " and (b.feeValue - b.paidValue) > 0 "
+ " and b.bill.billType in :bt "
+ " and b.bill.singleBillSession.sessionInstance=:si"
Expand Down Expand Up @@ -597,8 +598,8 @@ public void calculateSessionDoneFees() {
+ " and b.fee.feeType=:ftp"
+ " and b.bill.refunded=false "
+ " and b.bill.cancelled=false "
// + " and b.bill.singleBillSession.absent=false"
+ " and (b.feeValue - b.paidValue) < 1 "
+ " and b.bill.singleBillSession.absent=false"
+ " and (b.feeValue - b.paidValue) > 0 "
+ " and b.bill.billType in :bt "
+ " and b.bill.singleBillSession.sessionInstance=:si"
+ " and b.bill.singleBillSession.completed=:com";
Expand Down
18 changes: 18 additions & 0 deletions src/main/java/com/divudi/bean/common/EnumController.java
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ public class EnumController implements Serializable {
List<PaymentMethod> paymentMethodsForOpdBilling;
List<PaymentMethod> paymentMethodsForChanneling;
List<PaymentMethod> paymentMethodsForPharmacyBilling;
List<PaymentMethod> paymentMethodsForPatientDeposit;
SessionNumberType[] sessionNumberTypes;

@PostConstruct
Expand All @@ -89,6 +90,13 @@ public List<PaymentMethod> getPaymentMethodsForOpdBilling() {
}
return paymentMethodsForOpdBilling;
}

public List<PaymentMethod> getPaymentMethodsForPatientDeposit() {
if (paymentMethodsForPatientDeposit == null) {
fillPaymentMethodsForPatientDeposit();
}
return paymentMethodsForPatientDeposit;
}

public List<PaymentMethod> getPaymentMethodsForPackageBilling() {
if (paymentMethodsForOpdBilling == null) {
Expand All @@ -102,6 +110,16 @@ public void resetPaymentMethods() {
paymentMethodsForChanneling = null;
}

public void fillPaymentMethodsForPatientDeposit(){
paymentMethodsForPatientDeposit = new ArrayList<>();
for(PaymentMethod pm : PaymentMethod.values()){
boolean include = configOptionApplicationController.getBooleanValueByKey(pm.getLabel() + " is available for Patient Deposit", true);
if(include){
paymentMethodsForPatientDeposit.add(pm);
}
}
}

public void fillPaymentMethodsForOpdBilling() {
paymentMethodsForOpdBilling = new ArrayList<>();
for (PaymentMethod pm : PaymentMethod.values()) {
Expand Down
8 changes: 7 additions & 1 deletion src/main/resources/META-INF/persistence.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,22 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<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/arogya</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.logging.level.sql" value="SEVERE"/>
<property name="eclipselink.logging.parameters" value="false"/>
<property name="javax.persistence.schema-generation.database.action" value="create-or-extend-tables"/>
</properties>
</persistence-unit>
<persistence-unit name="hmisAuditPU" transaction-type="JTA">
<jta-data-source>jdbc/arogyaAudit</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.logging.level.sql" value="SEVERE"/>
<property name="eclipselink.logging.parameters" value="false"/>
<property name="javax.persistence.schema-generation.database.action" value="create-or-extend-tables"/>
</properties>
</persistence-unit>
</persistence>

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.20240720.4
3.0.0.20240726.8
2 changes: 2 additions & 0 deletions src/main/webapp/WEB-INF/glassfish-web.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app error-url="">

<context-root>/vfs</context-root>

<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
Expand Down
Loading

0 comments on commit 0d93a47

Please sign in to comment.