Skip to content

Commit

Permalink
Merge pull request #6647 from hmislk/Issue#6198
Browse files Browse the repository at this point in the history
Issue#6198 Closes #6198
  • Loading branch information
DeshaniPubudu authored Jul 28, 2024
2 parents 3a6dfaa + fffbfe2 commit 897354e
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/counter.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1
1
5 changes: 2 additions & 3 deletions nb-configuration.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Any value defined here will override the pom.xml file value but is only applicab
<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>
<org-netbeans-modules-javascript2-requirejs.enabled>true</org-netbeans-modules-javascript2-requirejs.enabled>
<org-netbeans-modules-projectapi.jsf_2e_language>JSP</org-netbeans-modules-projectapi.jsf_2e_language>
<netbeans.compile.on.save>none</netbeans.compile.on.save>
<netbeans.compile.on.save>all</netbeans.compile.on.save>
<org-netbeans-modules-css-prep.less_2e_mappings>/less:/css</org-netbeans-modules-css-prep.less_2e_mappings>
<org-netbeans-modules-css-prep.less_2e_enabled>false</org-netbeans-modules-css-prep.less_2e_enabled>
<org-netbeans-modules-css-prep.sass_2e_enabled>false</org-netbeans-modules-css-prep.sass_2e_enabled>
Expand All @@ -27,7 +27,6 @@ Any value defined here will override the pom.xml file value but is only applicab
<org-netbeans-modules-css-prep.sass_2e_mappings>/scss:/css</org-netbeans-modules-css-prep.sass_2e_mappings>
<org-netbeans-modules-web-clientproject-api.js_2e_libs_2e_folder>js/libs</org-netbeans-modules-web-clientproject-api.js_2e_libs_2e_folder>
<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>
<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>
<netbeans.compile.on.save>none</netbeans.compile.on.save>
<netbeans.hint.jdkPlatform>JDK_11</netbeans.hint.jdkPlatform>
</properties>
</project-shared-configuration>
10 changes: 9 additions & 1 deletion src/main/java/com/divudi/bean/opd/OpdBillController.java
Original file line number Diff line number Diff line change
Expand Up @@ -1687,6 +1687,13 @@ public boolean validatePaymentMethodDeta() {
JsfUtil.addErrorMessage("Please Enter a Slip Comment..");
error = true;
}
} else if (getPaymentMethod() == PaymentMethod.Credit) {
System.out.println("Credit");
if (getPaymentMethodData().getCredit().getComment().trim().equals("") && configOptionApplicationController.getBooleanValueByKey("OPD Billing - Credit Comment is Mandatory", false)) {
System.out.println("Error");
JsfUtil.addErrorMessage("Please Enter a Credit Comment..");
error = true;
}
}
return error;
}
Expand Down Expand Up @@ -3171,7 +3178,7 @@ public List<Payment> createPayment(Bill bill, PaymentMethod pm) {
case Agent:
case Credit:
p.setReferenceNo(cd.getPaymentMethodData().getCredit().getReferralNo());

p.setComments(cd.getPaymentMethodData().getCredit().getComment());
case PatientDeposit:
if (getPatient().getRunningBalance() != null) {
getPatient().setRunningBalance(getPatient().getRunningBalance() - cd.getPaymentMethodData().getPatient_deposit().getTotalValue());
Expand Down Expand Up @@ -3226,6 +3233,7 @@ public List<Payment> createPayment(Bill bill, PaymentMethod pm) {
case Agent:
case Credit:
p.setReferenceNo(paymentMethodData.getCredit().getReferralNo());
p.setComments(paymentMethodData.getCredit().getComment());
case PatientDeposit:
case Slip:
p.setBank(paymentMethodData.getSlip().getInstitution());
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.20240728.1
3.0.0.20240728.1
9 changes: 8 additions & 1 deletion src/main/webapp/resources/paymentMethod/credit.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,17 @@

<p:inputText
id="polNo"
style="width: 250px;"
style="width: 200px;"
value="#{cc.attrs.paymentMethodData.credit.referralNo}"
placeholder="Policy NO" >
</p:inputText>

<p:inputText
id="memo"
style="width: 300px;"
value="#{cc.attrs.paymentMethodData.credit.comment}"
placeholder="Memo" >
</p:inputText>

<p:commandLink
id="btnAddNewCreditCom"
Expand Down

0 comments on commit 897354e

Please sign in to comment.