From 6cee2380a567fd4ef83dc5e02c218709cfe2f35b Mon Sep 17 00:00:00 2001 From: "usama.jameel" Date: Tue, 24 Dec 2024 12:27:57 +0500 Subject: [PATCH 1/7] Fix bugs and add summary report. --- .idea/jarRepositories.xml | 5 + .../utopiaindustries/auth/ReportingRole.java | 14 +++ .../controller/JobCardController.java | 2 +- .../controller/ReportingController.java | 58 +++++++++++ .../dao/ctp/SummaryInventoryReportDao.java | 45 +++++++++ .../ctp/SummaryInventoryReportRowMapper.java | 23 +++++ .../com/utopiaindustries/model/Roles.java | 3 +- .../model/ctp/SummaryInventoryReport.java | 94 ++++++++++++++++++ .../SummaryInventoryReportQueryBuilder.java | 72 ++++++++++++++ .../SummaryInventoryReportService.java | 62 ++++++++++++ .../resources/static/js/cutting/summary.js | 64 ++++++++++++ src/main/resources/templates/_fragments.html | 6 ++ .../templates/_job-card-sidebar.html | 8 +- .../templates/cutting/_bundle-sidebar.html | 2 +- .../_cutting-inventory-account-sidebar.html | 4 +- .../cutting/_master-bundle-sidebar.html | 2 +- .../cutting/inventory-transactions.html | 2 +- .../finishing/finished-item-list.html | 5 +- .../templates/inventory-account-list.html | 2 +- .../resources/templates/job-card-list.html | 2 +- .../quality-control/qc-items-list.html | 5 +- .../reporting/inventory-summary-sidebar.html | 38 +++++++ .../reporting/inventory-summary.html | 55 ++++++++++ .../stitching/_finished-item-sidebar.html | 2 +- .../stitching/receive-inventory.html | 3 +- .../stitching/stitched-offline-items.html | 2 +- .../stitching/stitching-item-form.html | 4 +- src/main/resources/templates/users.html | 2 +- .../controller/JobCardController.class | Bin 6903 -> 6894 bytes .../com/utopiaindustries/model/Roles.class | Bin 1521 -> 1584 bytes target/classes/templates/_fragments.html | 6 ++ .../classes/templates/_job-card-sidebar.html | 8 +- .../templates/cutting/_bundle-sidebar.html | 2 +- .../_cutting-inventory-account-sidebar.html | 4 +- .../cutting/_master-bundle-sidebar.html | 2 +- .../cutting/inventory-transactions.html | 2 +- .../finishing/finished-item-list.html | 5 +- .../templates/inventory-account-list.html | 2 +- target/classes/templates/job-card-list.html | 2 +- .../quality-control/qc-items-list.html | 5 +- .../stitching/_finished-item-sidebar.html | 2 +- .../stitching/receive-inventory.html | 3 +- .../stitching/stitched-offline-items.html | 2 +- .../stitching/stitching-item-form.html | 4 +- target/classes/templates/users.html | 2 +- 45 files changed, 599 insertions(+), 38 deletions(-) create mode 100644 src/main/java/com/utopiaindustries/auth/ReportingRole.java create mode 100644 src/main/java/com/utopiaindustries/controller/ReportingController.java create mode 100644 src/main/java/com/utopiaindustries/dao/ctp/SummaryInventoryReportDao.java create mode 100644 src/main/java/com/utopiaindustries/dao/ctp/SummaryInventoryReportRowMapper.java create mode 100644 src/main/java/com/utopiaindustries/model/ctp/SummaryInventoryReport.java create mode 100644 src/main/java/com/utopiaindustries/querybuilder/ctp/SummaryInventoryReportQueryBuilder.java create mode 100644 src/main/java/com/utopiaindustries/service/SummaryInventoryReportService.java create mode 100644 src/main/resources/static/js/cutting/summary.js create mode 100644 src/main/resources/templates/reporting/inventory-summary-sidebar.html create mode 100644 src/main/resources/templates/reporting/inventory-summary.html diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml index 9e4f55e..d9f4e72 100644 --- a/.idea/jarRepositories.xml +++ b/.idea/jarRepositories.xml @@ -21,5 +21,10 @@