Skip to content

Commit

Permalink
Issue#9822 discount report (#9954)
Browse files Browse the repository at this point in the history
* added batch cancel and refund

* changed column width

---------

Co-authored-by: imexh <chandikaranawella@gmail.com>
  • Loading branch information
ImeshRanawellaSG and imexh authored Jan 6, 2025
1 parent d091400 commit dcfb2ee
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 8 deletions.
18 changes: 12 additions & 6 deletions src/main/java/com/divudi/bean/common/ReportsController.java
Original file line number Diff line number Diff line change
Expand Up @@ -3686,16 +3686,22 @@ public void generateDiscountReport() {
opdBts.add(BillTypeAtomic.INWARD_SERVICE_BILL_CANCELLATION);
opdBts.add(BillTypeAtomic.INWARD_FINAL_BILL);
} else if (visitType.equalsIgnoreCase("OP")) {
opdBts.add(BillTypeAtomic.OPD_BILL_WITH_PAYMENT);
opdBts.add(BillTypeAtomic.OPD_BILL_PAYMENT_COLLECTION_AT_CASHIER);
opdBts.add(BillTypeAtomic.OPD_BATCH_BILL_WITH_PAYMENT);
opdBts.add(BillTypeAtomic.OPD_BATCH_BILL_PAYMENT_COLLECTION_AT_CASHIER);
opdBts.add(BillTypeAtomic.PACKAGE_OPD_BILL_WITH_PAYMENT);
opdBts.add(BillTypeAtomic.PACKAGE_OPD_BATCH_BILL_WITH_PAYMENT);
opdBts.add(BillTypeAtomic.PACKAGE_OPD_BILL_PAYMENT_COLLECTION_AT_CASHIER);
opdBts.add(BillTypeAtomic.OPD_BATCH_BILL_CANCELLATION);
opdBts.add(BillTypeAtomic.OPD_BILL_CANCELLATION);
opdBts.add(BillTypeAtomic.PACKAGE_OPD_BATCH_BILL_CANCELLATION);
opdBts.add(BillTypeAtomic.PACKAGE_OPD_BILL_CANCELLATION);
opdBts.add(BillTypeAtomic.PACKAGE_OPD_BILL_REFUND);

opdBts.add(BillTypeAtomic.OPD_BILL_WITH_PAYMENT);
opdBts.add(BillTypeAtomic.OPD_BILL_CANCELLATION);
opdBts.add(BillTypeAtomic.OPD_BILL_REFUND);

opdBts.add(BillTypeAtomic.OPD_BATCH_BILL_WITH_PAYMENT);
opdBts.add(BillTypeAtomic.OPD_BATCH_BILL_CANCELLATION);

opdBts.add(BillTypeAtomic.OPD_BILL_PAYMENT_COLLECTION_AT_CASHIER);
opdBts.add(BillTypeAtomic.OPD_BATCH_BILL_PAYMENT_COLLECTION_AT_CASHIER);
}

if (reportType.equalsIgnoreCase("detail")) {
Expand Down
4 changes: 2 additions & 2 deletions src/main/webapp/reports/financialReports/discount.xhtml
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@
<p:column headerText="Visit Type">
<h:outputText value="#{row.bill.ipOpOrCc}"/>
</p:column>
<p:column headerText="Invoice No">
<p:column headerText="Invoice No" width="13rem">
<h:outputText value="#{row.bill.deptId}" rendered="#{row.bill.patientEncounter eq null}"/>
<h:outputText value="#{row.bill.patientEncounter.finalBill.deptId}"
rendered="#{row.bill.patientEncounter ne null}"/>
Expand Down Expand Up @@ -417,7 +417,7 @@
<p:column headerText="Visit Type">
<h:outputText value="#{row.billItem.bill.ipOpOrCc}"/>
</p:column>
<p:column headerText="Invoice No">
<p:column headerText="Invoice No" width="13rem">
<h:outputText value="#{row.billItem.bill.deptId}"
rendered="#{row.billItem.patientEncounter eq null}"/>
<h:outputText value="#{row.billItem.bill.patientEncounter.finalBill.deptId}"
Expand Down

0 comments on commit dcfb2ee

Please sign in to comment.