From 1eb04afe659edd07b568b635b0441c3fc159cf29 Mon Sep 17 00:00:00 2001 From: SandithP2001 Date: Mon, 16 Dec 2024 17:38:20 +0530 Subject: [PATCH 1/5] Signed-off-by: SandithP2001 --- src/main/resources/META-INF/persistence.xml | 2 +- .../inventoryReports/closing_stock_report.xhtml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/persistence.xml b/src/main/resources/META-INF/persistence.xml index 9c61bed59c..4ea5935dbf 100644 --- a/src/main/resources/META-INF/persistence.xml +++ b/src/main/resources/META-INF/persistence.xml @@ -2,7 +2,7 @@ org.eclipse.persistence.jpa.PersistenceProvider - jdbc/Ruhunu + jdbc/ruhunu false diff --git a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml index b6c6c0b4bb..b97b87c7f3 100644 --- a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml +++ b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml @@ -105,6 +105,16 @@ + + + + + Date: Mon, 16 Dec 2024 17:42:45 +0530 Subject: [PATCH 2/5] Signed-off-by: SandithP2001 --- .../closing_stock_report.xhtml | 53 ++++++++++++++++--- 1 file changed, 46 insertions(+), 7 deletions(-) diff --git a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml index b97b87c7f3..036cbadbcc 100644 --- a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml +++ b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml @@ -106,14 +106,53 @@ - + + filter="true"> + + + + + + + + + + + + + + + + + - + - + - + - - + + From 41017cb1628b31712bdcaaa62970e467d7ea74fe Mon Sep 17 00:00:00 2001 From: SandithP2001 Date: Mon, 16 Dec 2024 17:45:35 +0530 Subject: [PATCH 3/5] Signed-off-by: SandithP2001 Institution Site Department filters done --- .../closing_stock_report.xhtml | 28 +++++++++++-------- 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml index 036cbadbcc..7cf01267ac 100644 --- a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml +++ b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml @@ -136,10 +136,10 @@ itemLabel="#{dept.name}" itemValue="#{dept}" /> - + - - - - - - + + + + + From 0bcdfac65d1aea7c45b5c398d7280bb39896f735 Mon Sep 17 00:00:00 2001 From: SandithP2001 Date: Mon, 16 Dec 2024 17:50:19 +0530 Subject: [PATCH 4/5] Signed-off-by: SandithP2001 --- .../reports/inventoryReports/closing_stock_report.xhtml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml index 7cf01267ac..3bbe33467d 100644 --- a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml +++ b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml @@ -131,7 +131,7 @@ filter="true"> @@ -146,7 +146,7 @@ filter="true"> @@ -161,11 +161,13 @@ filter="true"> + + From 7ca5e51da238d3a06b40a83e0937dbca0296851f Mon Sep 17 00:00:00 2001 From: SandithP2001 Date: Mon, 16 Dec 2024 18:15:11 +0530 Subject: [PATCH 5/5] Signed-off-by: SandithP2001 closes #9658 --- .../bean/report/PharmacyReportController.java | 6 +- .../closing_stock_report.xhtml | 5 +- .../inventoryReports/stock_ledger.xhtml | 152 ++++++++++++------ 3 files changed, 110 insertions(+), 53 deletions(-) diff --git a/src/main/java/com/divudi/bean/report/PharmacyReportController.java b/src/main/java/com/divudi/bean/report/PharmacyReportController.java index 3847e2e9bf..91e1aff94f 100644 --- a/src/main/java/com/divudi/bean/report/PharmacyReportController.java +++ b/src/main/java/com/divudi/bean/report/PharmacyReportController.java @@ -1944,8 +1944,10 @@ public void processStockLedgerReport() { } jpql += ")"; } - if (item != null) { - jpql += " and s.item=:itm "; + if (amp != null) { + item = amp; + System.out.println("item = " + item); + jpql += "and s.item=:itm "; m.put("itm", item); } diff --git a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml index 3bbe33467d..e3ee8e24c0 100644 --- a/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml +++ b/src/main/webapp/reports/inventoryReports/closing_stock_report.xhtml @@ -46,6 +46,7 @@ + @@ -166,8 +167,8 @@ itemLabel="#{dept.name}" itemValue="#{dept}" /> - - + + diff --git a/src/main/webapp/reports/inventoryReports/stock_ledger.xhtml b/src/main/webapp/reports/inventoryReports/stock_ledger.xhtml index 1944797a5b..f2d9ebe8be 100644 --- a/src/main/webapp/reports/inventoryReports/stock_ledger.xhtml +++ b/src/main/webapp/reports/inventoryReports/stock_ledger.xhtml @@ -47,8 +47,26 @@ /> - - + + + + + + + + + + + + + + + + + @@ -84,7 +102,7 @@ - + @@ -92,57 +110,87 @@ - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - + - + - - - - - + minQueryLength="3" + maxResults="20" + inputStyleClass="w-100" + itemLabel="#{item.name}" + itemValue="#{item}" + > @@ -152,8 +200,14 @@
- + + @@ -172,7 +226,7 @@ paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}" currentPageReportTemplate="Showing {startRecord} to {endRecord} of {totalRecords}" rowsPerPageTemplate="5,10,15,25,50,100,500,1000"> - + @@ -258,7 +312,7 @@ - +