diff --git a/src/main/java/com/divudi/bean/common/SearchController.java b/src/main/java/com/divudi/bean/common/SearchController.java index 1cddbc3fad..9beb3fb9b0 100644 --- a/src/main/java/com/divudi/bean/common/SearchController.java +++ b/src/main/java/com/divudi/bean/common/SearchController.java @@ -368,6 +368,14 @@ public class SearchController implements Serializable { // // + public String navigateToMyDepartmentAllCashierSummary() { + department = sessionController.getDepartment(); + institution = sessionController.getInstitution(); + site = sessionController.getDepartment().getSite(); + webUser=null; + return "/cashier/my_department_all_cashier_summary?faces-redirect=true"; + } + public String navigateToUserDrawerDashboard() { Drawer d = drawerController.getUsersDrawer(drawer.getDrawerUser()); drawerController.setCurrent(d); @@ -17385,7 +17393,7 @@ public PharmacyAdjustmentRow(Item itm, double purchaseRate, double saleRate, dou } // - // + // public Item getItm() { return itm; } @@ -18146,5 +18154,4 @@ public void prepareDataBillsAndBillItemsDownload() { } // - } diff --git a/src/main/java/com/divudi/bean/common/UserPrivilageController.java b/src/main/java/com/divudi/bean/common/UserPrivilageController.java index 8d93a0e97f..2d51984195 100644 --- a/src/main/java/com/divudi/bean/common/UserPrivilageController.java +++ b/src/main/java/com/divudi/bean/common/UserPrivilageController.java @@ -502,15 +502,21 @@ private TreeNode createPrivilegeHolderTreeNodes() { new DefaultTreeNode(new PrivilegeHolder(Privileges.CourierViewStatistics, "Courier View Statistics"), courierNode); new DefaultTreeNode(new PrivilegeHolder(Privileges.CourierViewBillReports, "Courier View Bill Reports"), courierNode); new DefaultTreeNode(new PrivilegeHolder(Privileges.CourierViewPaymentReports, "Courier View Payment Reports"), courierNode); + + // User Menu + TreeNode userNode = new DefaultTreeNode(new PrivilegeHolder(null, "User"), allNode); + new DefaultTreeNode(new PrivilegeHolder(Privileges.UserMenu, "User Menu"), userNode); + new DefaultTreeNode(new PrivilegeHolder(Privileges.ChangeMyPassword, "Change User Password"), userNode); + new DefaultTreeNode(new PrivilegeHolder(Privileges.ChangeMyTheme, "Change User Theme"), userNode); + new DefaultTreeNode(new PrivilegeHolder(Privileges.ChangePreferece, "Change User Preferances"), userNode); + new DefaultTreeNode(new PrivilegeHolder(Privileges.ChangeMyApiKeys, "Change API Keys"), userNode); + new DefaultTreeNode(new PrivilegeHolder(Privileges.MyFinanacialTransactionManager, "User Financial Transaction Manager"), userNode); // Search Privileges TreeNode searchRootNode = new DefaultTreeNode(new PrivilegeHolder(null, "Search"), allNode); new DefaultTreeNode(new PrivilegeHolder(Privileges.Search, "Search Menu"), searchRootNode); new DefaultTreeNode(new PrivilegeHolder(Privileges.SearchGrand, "Grand Search"), searchRootNode); - // User Privileges - TreeNode userNode = new DefaultTreeNode(new PrivilegeHolder(null, "User"), allNode); - new DefaultTreeNode(new PrivilegeHolder(Privileges.ChangePreferece, "Change Theme"), userNode); // Cash Transaction Privileges TreeNode cashTransactionNode = new DefaultTreeNode(new PrivilegeHolder(null, "Cash Transaction"), allNode); diff --git a/src/main/java/com/divudi/bean/inward/AdmissionController.java b/src/main/java/com/divudi/bean/inward/AdmissionController.java index 200957a543..05334f4ac7 100644 --- a/src/main/java/com/divudi/bean/inward/AdmissionController.java +++ b/src/main/java/com/divudi/bean/inward/AdmissionController.java @@ -1169,7 +1169,15 @@ public void saveSelected() { savePatient(); savePatientAllergies(); saveGuardian(); - bhtText = getInwardBean().getBhtText(getCurrent().getAdmissionType()); + boolean bhtCanBeEdited = configOptionApplicationController.getBooleanValueByKey("BHT Number can be edited at the time of admission"); + if(bhtText==null||bhtText.trim().equals("")){ + bhtText = getInwardBean().getBhtText(getCurrent().getAdmissionType()); + }else{ + if(!bhtCanBeEdited){ + bhtText = getInwardBean().getBhtText(getCurrent().getAdmissionType()); + } + } +// bhtText = getInwardBean().getBhtText(getCurrent().getAdmissionType()); getCurrent().setBhtNo(getBhtText()); // getCurrent().setBhtNo(bhtText); diff --git a/src/main/java/com/divudi/bean/pharmacy/BhtIssueReturnController.java b/src/main/java/com/divudi/bean/pharmacy/BhtIssueReturnController.java index 704140de0f..2c9587100d 100644 --- a/src/main/java/com/divudi/bean/pharmacy/BhtIssueReturnController.java +++ b/src/main/java/com/divudi/bean/pharmacy/BhtIssueReturnController.java @@ -66,6 +66,15 @@ public class BhtIssueReturnController implements Serializable { @EJB private BillItemFacade billItemFacade; + + public String navigateToReturnPharmacyDirectIssueToInpatients(){ + if(bill==null){ + JsfUtil.addErrorMessage("No Bill Selected"); + return null; + } + return "/inward/pharmacy_bill_return_bht_issue?faces-redirect=true"; + } + public Bill getBill() { return bill; } diff --git a/src/main/java/com/divudi/bean/pharmacy/PharmacyBillSearch.java b/src/main/java/com/divudi/bean/pharmacy/PharmacyBillSearch.java index d40b96869f..104a95d0fe 100644 --- a/src/main/java/com/divudi/bean/pharmacy/PharmacyBillSearch.java +++ b/src/main/java/com/divudi/bean/pharmacy/PharmacyBillSearch.java @@ -155,6 +155,14 @@ public class PharmacyBillSearch implements Serializable { @Inject PharmacyRequestForBhtController pharmacyRequestForBhtController; + public String navigateToCancelPharmacyDirectIssueToInpatients(){ + if(bill==null){ + JsfUtil.addErrorMessage("No Bill Selected"); + return null; + } + return "/inward/pharmacy_cancel_bill_retail_bht?faces-redirect=true"; + } + public String navigatePharmacyReprintPo() { return "pharmacy_reprint_po?faces-redirect=true"; } diff --git a/src/main/java/com/divudi/bean/report/PharmacyReportController.java b/src/main/java/com/divudi/bean/report/PharmacyReportController.java index 98f48e003a..0ea1d72dd6 100644 --- a/src/main/java/com/divudi/bean/report/PharmacyReportController.java +++ b/src/main/java/com/divudi/bean/report/PharmacyReportController.java @@ -2191,12 +2191,18 @@ public void processExpiryItemReport() { if (amp != null) { item = amp; System.out.println("item = " + item); - jpql += "and s.item=:itm "; + jpql += "and s.itemBatch.item=:itm "; m.put("itm", item); } jpql += " order by s.id "; stocks = stockFacade.findByJpql(jpql, m, TemporalType.TIMESTAMP); + stockPurchaseValue = 0.0; + stockSaleValue = 0.0; + for (Stock ts : stocks) { + stockPurchaseValue = stockPurchaseValue + (ts.getItemBatch().getPurcahseRate() * ts.getStock()); + stockSaleValue = stockSaleValue + (ts.getItemBatch().getRetailsaleRate() * ts.getStock()); + } } public long calculateDaysRemaining(Date dateOfExpire) { diff --git a/src/main/java/com/divudi/data/Privileges.java b/src/main/java/com/divudi/data/Privileges.java index c2ea645b50..4090b0755c 100644 --- a/src/main/java/com/divudi/data/Privileges.java +++ b/src/main/java/com/divudi/data/Privileges.java @@ -560,6 +560,16 @@ public enum Privileges { ChangeCreditLimitInCC("Change Credit Limit in Collecting Centre"), ChangeCollectingCentre("Change Collecting Centre"), // + + // + UserMenu("User Menu"), + ChangeMyPassword("Change My Password"), + ChangeMyTheme("Change My Theme"), + ChangePreferece("Change My Preference"), + ChangeMyApiKeys("Change My Api Keys"), + MyFinanacialTransactionManager("My Finanacial Transaction Manager"), + // + // SearchGrand("Search Grand"), @@ -575,7 +585,7 @@ public enum Privileges { Developers("Developers"), // Administration SearchAll("Search All"), - ChangePreferece("Change Preference"), + SendBulkSMS("Send Bulk SMS"), SuperAdmin("Supper Admin"), EditData("Edit Data"), diff --git a/src/main/webapp/cashier/index.xhtml b/src/main/webapp/cashier/index.xhtml index b6b7ed86b5..ccc7a4b601 100644 --- a/src/main/webapp/cashier/index.xhtml +++ b/src/main/webapp/cashier/index.xhtml @@ -299,6 +299,14 @@ ajax="false" action="#{financialTransactionController.navigateToMyCashierSummary()}" > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/inward/inward_admission.xhtml b/src/main/webapp/inward/inward_admission.xhtml index 28e0b1eca3..434cce8477 100644 --- a/src/main/webapp/inward/inward_admission.xhtml +++ b/src/main/webapp/inward/inward_admission.xhtml @@ -46,6 +46,7 @@ icon="fa fa-user" > + @@ -54,53 +55,60 @@
-
- - - - - - - - - - -
- -
- -
-
-
- - - - - - - - - - - - - -
+
+ + + + + + +
+
+ + +
+
+ + +
+
+ +
-
+
@@ -242,7 +250,7 @@ - +
- - -
-
- - - - - - - - - - - - - - - - - -
-
- - - -
+ + +
+
+ + + + + + + + + + + + + + + + + +
+
+ + + +
diff --git a/src/main/webapp/inward/pharmacy_bill_issue_bht.xhtml b/src/main/webapp/inward/pharmacy_bill_issue_bht.xhtml index 8e78a97a51..ccf91abbb0 100644 --- a/src/main/webapp/inward/pharmacy_bill_issue_bht.xhtml +++ b/src/main/webapp/inward/pharmacy_bill_issue_bht.xhtml @@ -243,7 +243,6 @@ - diff --git a/src/main/webapp/inward/pharmacy_cancel_bill_retail_bht.xhtml b/src/main/webapp/inward/pharmacy_cancel_bill_retail_bht.xhtml index 03062f5fbd..4909ed20e8 100644 --- a/src/main/webapp/inward/pharmacy_cancel_bill_retail_bht.xhtml +++ b/src/main/webapp/inward/pharmacy_cancel_bill_retail_bht.xhtml @@ -5,19 +5,24 @@ xmlns:p="http://primefaces.org/ui" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:f="http://xmlns.jcp.org/jsf/core" + xmlns:common="http://xmlns.jcp.org/jsf/composite/ezcomp/common" xmlns:pharmacy="http://xmlns.jcp.org/jsf/composite/pharmacy/inward" xmlns:phi="http://xmlns.jcp.org/jsf/composite/pharmacy"> + + + + - - + +
-
+
- + @@ -39,20 +44,37 @@ - - - - + + + + + + + + + + + + + + + - + + +
- - - + + + No #{rowIndex+1} @@ -60,9 +82,22 @@ Item #{bip.item.name} - + + Qty + + + + + Rate + + + + + Value - #{bip.netValue} + + + @@ -95,12 +130,15 @@ - - + + + + + diff --git a/src/main/webapp/inward/pharmacy_reprint_bill_sale_bht.xhtml b/src/main/webapp/inward/pharmacy_reprint_bill_sale_bht.xhtml index 45b0103621..2542bf92d3 100644 --- a/src/main/webapp/inward/pharmacy_reprint_bill_sale_bht.xhtml +++ b/src/main/webapp/inward/pharmacy_reprint_bill_sale_bht.xhtml @@ -32,13 +32,13 @@ value="To Cancel" class="ui-button-danger" icon="fa fa-ban" - action="pharmacy_cancel_bill_retail_bht" + action="#{pharmacyBillSearch.navigateToCancelPharmacyDirectIssueToInpatients}" disabled="#{pharmacyBillSearch.bill.cancelled}" >
-
+
@@ -177,7 +177,7 @@
-
+
@@ -199,7 +199,7 @@
- + @@ -208,7 +208,12 @@ - + + + + + +
diff --git a/src/main/webapp/reports/inventoryReports/expiry_item.xhtml b/src/main/webapp/reports/inventoryReports/expiry_item.xhtml index 0ab770f3f3..db02740359 100644 --- a/src/main/webapp/reports/inventoryReports/expiry_item.xhtml +++ b/src/main/webapp/reports/inventoryReports/expiry_item.xhtml @@ -107,7 +107,6 @@ - @@ -297,24 +296,15 @@ - + - - - - - - - - - - - + + @@ -328,6 +318,39 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/webapp/resources/css/ohmis.css b/src/main/webapp/resources/css/ohmis.css index 706a2704fb..01818370f4 100644 --- a/src/main/webapp/resources/css/ohmis.css +++ b/src/main/webapp/resources/css/ohmis.css @@ -546,3 +546,50 @@ th.align-right-header .ui-column-title { background-color: #00a88f !important; border-color: #007f6b !important; } + +/* Ensure the condensed table class applies specifically to this DataTable */ +.condensed-table.ui-datatable { + margin: 0 !important; + padding: 0 !important; + font-size: 1rem !important; /* Adjust font size */ + line-height: 1 !important; + border-collapse: collapse !important; +} + +/* Remove spacing and padding in headers and footers */ +.condensed-table.ui-datatable .ui-datatable-header, +.condensed-table.ui-datatable .ui-datatable-footer { + padding: 0 !important; + margin: 0 !important; +} + +/* Remove padding and spacing for table cells */ +.condensed-table.ui-datatable .ui-datatable-thead > tr > th, +.condensed-table.ui-datatable .ui-datatable-tbody > tr > td { + padding: 0 !important; + margin: 0 !important; + text-align: left !important; + border: none !important; +} + +/* Remove padding from the wrapper */ +.condensed-table.ui-datatable .ui-datatable-tablewrapper { + padding: 0 !important; + margin: 0 !important; +} + +/* Specific adjustments for labels inside cells */ +.condensed-table.ui-datatable .ui-datatable-tbody > tr > td label { + margin: 0 !important; + padding: 0 !important; + font-size: inherit !important; + line-height: inherit !important; +} + +/* Ensure the table itself is tightly packed */ +.condensed-table.ui-datatable table { + border-collapse: collapse !important; + border-spacing: 0 !important; + width: 100% !important; +} + diff --git a/src/main/webapp/resources/ezcomp/common/admission_details.xhtml b/src/main/webapp/resources/ezcomp/common/admission_details.xhtml index a5149084eb..cb67f008f8 100644 --- a/src/main/webapp/resources/ezcomp/common/admission_details.xhtml +++ b/src/main/webapp/resources/ezcomp/common/admission_details.xhtml @@ -16,7 +16,7 @@ - + diff --git a/src/main/webapp/resources/ezcomp/common/patient_details.xhtml b/src/main/webapp/resources/ezcomp/common/patient_details.xhtml index 7849170fd0..0450b6f993 100644 --- a/src/main/webapp/resources/ezcomp/common/patient_details.xhtml +++ b/src/main/webapp/resources/ezcomp/common/patient_details.xhtml @@ -18,7 +18,7 @@ - + diff --git a/src/main/webapp/resources/ezcomp/common/patient_details_view.xhtml b/src/main/webapp/resources/ezcomp/common/patient_details_view.xhtml new file mode 100644 index 0000000000..89d4d99b52 --- /dev/null +++ b/src/main/webapp/resources/ezcomp/common/patient_details_view.xhtml @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/main/webapp/resources/ezcomp/menu.xhtml b/src/main/webapp/resources/ezcomp/menu.xhtml index a16cdd60a4..2bb23baaaa 100644 --- a/src/main/webapp/resources/ezcomp/menu.xhtml +++ b/src/main/webapp/resources/ezcomp/menu.xhtml @@ -1505,12 +1505,36 @@ - - - - + + + + + + No - Item Name - Rate - Qty + Item + Qty + Rate Value - - #{s.index +1} - #{item.item.name} - - - - - - + #{s.index +1} + #{item.item.name} + + + + + + - + @@ -136,33 +135,12 @@ - - - - - - - - - - - - - - -
Total: - + +
Discount: - - - -
Net Total: - - - -
No of Items: diff --git a/src/main/webapp/resources/pharmacy/inward_direct_issue_cancellation_bill_five_five_custom_3.xhtml b/src/main/webapp/resources/pharmacy/inward_direct_issue_cancellation_bill_five_five_custom_3.xhtml new file mode 100644 index 0000000000..8a7befab53 --- /dev/null +++ b/src/main/webapp/resources/pharmacy/inward_direct_issue_cancellation_bill_five_five_custom_3.xhtml @@ -0,0 +1,231 @@ + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + +
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Patient Name: + + Patient Age/Sex: + +
BHT: + + Room No: + +
+ +
Bill Date: + + + + Bill Time: + + + +
Bill No:#{cc.attrs.bill.billedBill.deptId}Department:Pharmacy
+ +
Bill Date: + + + + Bill Time: + + + +
Bill No:#{cc.attrs.bill.deptId}Department:Pharmacy
+ + +
+ + + + + + + + + + + + + + + + + + + + + + + +
NoItemQtyRateValue
#{s.index +1}#{item.item.name} + + + + + + + + + + + +
+ + +
+ + + + + + + + + + + +
Total: + + + +
No of Items: + + + +
+ + + + + + + +
+ + +
+
+ + +
+
+
+ +
+ + + + + + + + +
+ + + +
+ + + +
+ +
+ \ No newline at end of file diff --git a/src/main/webapp/resources/pharmacy/sale_bill_five_five_custom_3.xhtml b/src/main/webapp/resources/pharmacy/sale_bill_five_five_custom_3.xhtml index 99a11d7fc3..f4e285fb7c 100644 --- a/src/main/webapp/resources/pharmacy/sale_bill_five_five_custom_3.xhtml +++ b/src/main/webapp/resources/pharmacy/sale_bill_five_five_custom_3.xhtml @@ -40,13 +40,12 @@ - - + - + #{pharmacySaleController.printBill.patient.person.sex.shortLabel} @@ -62,29 +61,24 @@ - - -
Name : Age/Sex : @@ -54,7 +53,7 @@
Bill Date: - Bill Time: -
Bill No: #{cc.attrs.bill.deptId}
@@ -146,14 +140,11 @@
Discount: - -
Net Total: @@ -222,11 +213,9 @@
- -
+
- diff --git a/src/main/webapp/resources/template/template.xhtml b/src/main/webapp/resources/template/template.xhtml index 290726690d..5d0a47e65a 100644 --- a/src/main/webapp/resources/template/template.xhtml +++ b/src/main/webapp/resources/template/template.xhtml @@ -24,7 +24,7 @@ - + @@ -41,17 +41,17 @@ - +