From 4dbd12c6127d5b183ad61e7a9c2ff2eca9a91037 Mon Sep 17 00:00:00 2001 From: Buddhika Ariyaratne Date: Sat, 9 Nov 2024 12:00:23 +0530 Subject: [PATCH 1/3] Closes #8663 Signed-off-by: Buddhika Ariyaratne --- .../channel/BookingControllerViewScope.java | 5 ++- .../divudi/bean/common/ItemController.java | 5 +++ .../divudi/bean/inward/BillBhtController.java | 16 +++++--- src/main/webapp/analytics/bills.xhtml | 9 +++- .../webapp/inward/inward_bill_service.xhtml | 8 ++++ .../resources/ezcomp/bmsChannelBill.xhtml | 41 ++++++++++++++++--- 6 files changed, 70 insertions(+), 14 deletions(-) diff --git a/src/main/java/com/divudi/bean/channel/BookingControllerViewScope.java b/src/main/java/com/divudi/bean/channel/BookingControllerViewScope.java index 47dc426ee5..a6f8f21831 100644 --- a/src/main/java/com/divudi/bean/channel/BookingControllerViewScope.java +++ b/src/main/java/com/divudi/bean/channel/BookingControllerViewScope.java @@ -3645,7 +3645,10 @@ public void addChannelBooking(boolean reservedBooking) { } - sendSmsAfterBooking(); + boolean sendSmsAfterBooking = configOptionApplicationController.getBooleanValueByKey("Send SMS after Channel Booking", true); + if (sendSmsAfterBooking) { + sendSmsAfterBooking(); + } if (selectedSessionInstance.isStarted()) { sendChannellingStatusUpdateNotificationSms(printingBill.getSingleBillSession()); diff --git a/src/main/java/com/divudi/bean/common/ItemController.java b/src/main/java/com/divudi/bean/common/ItemController.java index 16b50787af..55190e6ffc 100644 --- a/src/main/java/com/divudi/bean/common/ItemController.java +++ b/src/main/java/com/divudi/bean/common/ItemController.java @@ -3202,6 +3202,11 @@ public List fillItemsByInstitution(Institution institution) { return insItems; } + + public void reloadItems(){ + departmentItems=null; + institutionItems=null; + } public List getDepartmentItems() { if (departmentItems == null) { diff --git a/src/main/java/com/divudi/bean/inward/BillBhtController.java b/src/main/java/com/divudi/bean/inward/BillBhtController.java index 800ece6ff3..b2555c88e5 100644 --- a/src/main/java/com/divudi/bean/inward/BillBhtController.java +++ b/src/main/java/com/divudi/bean/inward/BillBhtController.java @@ -153,7 +153,7 @@ public class BillBhtController implements Serializable { private List inwardItems; private ItemLight itemLight; - + public String navigateToAddServiceFromMenu() { resetBillData(); return "/inward/inward_bill_service?faces-redirect=true"; @@ -164,7 +164,7 @@ public String navigateToPrintLabelsForInvestigations() { stickers = convertJsonToList(json); return "/inward/inward_bill_service_investigation_label_print?faces-redirect=true"; } - + public String navigateToNewBillFromPrintLabelsForInvestigations() { resetBillData(); return "/inward/inward_bill_service?faces-redirect=true"; @@ -500,7 +500,6 @@ public void settleBill() { paymentMethod = null; settleBill(getPatientEncounter().getCurrentPatientRoom().getRoomFacilityCharge().getDepartment(), getPatientEncounter().getPaymentMethod()); - } public void settleBillSurgery() { @@ -530,7 +529,6 @@ public void settleBillSurgery() { getBillBean().saveEncounterComponents(getBills(), batchBill, getSessionController().getLoggedUser()); getBillBean().updateBatchBill(getBatchBill()); - } @EJB @@ -710,14 +708,14 @@ public void addToBill() { if (errorCheckForPatientRoomDepartment()) { return; } - + for (BillEntry bi : lstBillEntries) { if (bi.getBillItem() != null && getCurrentBillItem() != null && getCurrentBillItem().getItem() != null && bi.getBillItem().getItem().equals(getCurrentBillItem().getItem())) { JsfUtil.addErrorMessage("Can't select same item " + getCurrentBillItem().getItem()); return; } } - + if (getCurrentBillItem().getQty() == null) { getCurrentBillItem().setQty(1.0); } @@ -1282,6 +1280,12 @@ public List getInwardItems() { return inwardItems; } + public void reloadItemLights() { + itemApplicationController.reloadItems(); + itemController.reloadItems(); + fillInwardItems(); + } + public void setInwardItems(List inwardItems) { this.inwardItems = inwardItems; } diff --git a/src/main/webapp/analytics/bills.xhtml b/src/main/webapp/analytics/bills.xhtml index 72bbbcfccb..cb6702dc07 100644 --- a/src/main/webapp/analytics/bills.xhtml +++ b/src/main/webapp/analytics/bills.xhtml @@ -186,7 +186,12 @@ - + + + + @@ -203,7 +208,7 @@ - + diff --git a/src/main/webapp/inward/inward_bill_service.xhtml b/src/main/webapp/inward/inward_bill_service.xhtml index 50d357ddac..210f9f5dbb 100644 --- a/src/main/webapp/inward/inward_bill_service.xhtml +++ b/src/main/webapp/inward/inward_bill_service.xhtml @@ -276,6 +276,13 @@
+ +
+
diff --git a/src/main/webapp/resources/ezcomp/bmsChannelBill.xhtml b/src/main/webapp/resources/ezcomp/bmsChannelBill.xhtml index 075192d4db..9fa49a187b 100644 --- a/src/main/webapp/resources/ezcomp/bmsChannelBill.xhtml +++ b/src/main/webapp/resources/ezcomp/bmsChannelBill.xhtml @@ -365,7 +365,7 @@ - + @@ -379,10 +379,40 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -391,11 +421,12 @@ - - + + + From 0ae36d88e0b8ff22cae710d55773394cc4034994 Mon Sep 17 00:00:00 2001 From: Buddhika Ariyaratne Date: Sat, 9 Nov 2024 12:05:28 +0530 Subject: [PATCH 2/3] Closes #8664 Signed-off-by: Buddhika Ariyaratne --- .../java/com/divudi/bean/common/BillPackageController.java | 4 ++++ src/main/java/com/divudi/bean/common/ItemController.java | 1 + src/main/webapp/opd/opd_bill_package.xhtml | 2 +- 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/divudi/bean/common/BillPackageController.java b/src/main/java/com/divudi/bean/common/BillPackageController.java index 420d30f2e8..2b3e820fee 100644 --- a/src/main/java/com/divudi/bean/common/BillPackageController.java +++ b/src/main/java/com/divudi/bean/common/BillPackageController.java @@ -1558,6 +1558,10 @@ public List getPackaes() { private List listOfTheNonExpiredPackages; + public void reloadPackages(){ + itemController.reloadItems(); + } + private void fillPackages() { packaes = itemController.getPackaes(); if (packaes == null) { diff --git a/src/main/java/com/divudi/bean/common/ItemController.java b/src/main/java/com/divudi/bean/common/ItemController.java index 55190e6ffc..d946389363 100644 --- a/src/main/java/com/divudi/bean/common/ItemController.java +++ b/src/main/java/com/divudi/bean/common/ItemController.java @@ -3206,6 +3206,7 @@ public List fillItemsByInstitution(Institution institution) { public void reloadItems(){ departmentItems=null; institutionItems=null; + packaes=null; } public List getDepartmentItems() { diff --git a/src/main/webapp/opd/opd_bill_package.xhtml b/src/main/webapp/opd/opd_bill_package.xhtml index 2eaa4bc50c..32ecd56504 100644 --- a/src/main/webapp/opd/opd_bill_package.xhtml +++ b/src/main/webapp/opd/opd_bill_package.xhtml @@ -458,7 +458,7 @@ Date: Sat, 9 Nov 2024 12:12:34 +0530 Subject: [PATCH 3/3] Closes #8665 Signed-off-by: Buddhika Ariyaratne --- src/main/java/com/divudi/bean/opd/OpdBillController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/divudi/bean/opd/OpdBillController.java b/src/main/java/com/divudi/bean/opd/OpdBillController.java index b785b28b61..57e56366c9 100644 --- a/src/main/java/com/divudi/bean/opd/OpdBillController.java +++ b/src/main/java/com/divudi/bean/opd/OpdBillController.java @@ -4408,6 +4408,7 @@ public void fillDepartmentOpdItems() { departmentOpdItems = null; opdItems = null; itemApplicationController.reloadItems(); + itemController.reloadItems(); getDepartmentOpdItems(); }